catch (RedisException
$e) { throw new CriticalError('Cache: RedisException occurred with message (' .
$e->
getMessage() . ').'
);
} } /**
* {@inheritDoc}
*/
public function get(string
$key) { $key =
static::
validateKey($key,
$this->prefix
);
$data =
$this->redis->
hMGet($key,
['__ci_type', '__ci_value'
]);
if (!
isset($data['__ci_type'
],
$data['__ci_value'
]) ||
$data['__ci_value'
] === false
) { return null;
} switch ($data['__ci_type'
]) { case 'array':
case 'object':
return unserialize($data['__ci_value'
]);
case 'boolean':