src/PredisCache.php
public function get($key)
    {
        $key = $this->salted($key, $this->suffix);

        $raw = $this->predis->get($key);

        // every response should be a php serialized string.
        // values not matching this pattern will explode.
        // missing data should return null, which is not unserialized.

        if (is_string($raw)) {
            return unserialize($raw);
        }

        return $raw;
    }
public function get($key)
    {
        $key = $this->salted($key, $this->suffix);

        $raw = $this->predis->get($key);

        // every response should be a php serialized string.
        // values not matching this pattern will explode.
        // missing data should return null, which is not unserialized.

        if (is_string($raw)) {
            return unserialize($raw);
        }

        return $raw;
    }
public function get ( $ key ) { $ key = $ this -> salted ( $ key , $ this -> suffix ) ; $ raw = $ this -> predis -> get ( $ key ) ; // every response should be a php serialized string. // values not matching this pattern will explode. // missing data should return null, which is not unserialized. if ( is_string ( $ raw ) ) { return unserialize ( $ raw ) ; } return $ raw ; }
This cacher performs serialization and unserialization. All string responses from redis will be unserialized.

For this reason, only mcp cachers should attempt to retrieve data cached by mcp cachers.

{@inheritdoc}
This cacher performs serialization and unserialization . All string responses from redis will be unserialized .