fix missing cachify type

This commit is contained in:
Dennis Eichhorn 2019-12-08 01:07:46 +01:00
parent be1283d6dc
commit 0eb659ce54

View File

@ -276,7 +276,7 @@ class RedisCache extends ConnectionAbstract
*/
private function cachify($value, int $type)
{
if (\is_float($value) || \is_int($value)) {
if (\is_float($value) || \is_int($value) || \is_string($value)) {
return $value;
} elseif ($type === CacheValueType::_BOOL) {
return (string) ((int) $value);