src/M6Web/Component/Redis/Cache.php
public function get($key)
    {
        $redis = $this->getRedis($key);
        $start = microtime(true);
        $ret = $redis->get($this->getPatternKey().$key); // ajout du pattern
        $this->notifyEvent('get', array($this->getPatternKey().$key), microtime(true) - $start);
        if ($ret and $this->getCompress()) {
            return self::uncompress($ret);
        } else {
            return $ret;
        }
    }
public function get($key)
    {
        $redis = $this->getRedis($key);
        $start = microtime(true);
        $ret = $redis->get($this->getPatternKey().$key); // ajout du pattern
        $this->notifyEvent('get', array($this->getPatternKey().$key), microtime(true) - $start);
        if ($ret and $this->getCompress()) {
            return self::uncompress($ret);
        } else {
            return $ret;
        }
    }
get a value from the cache
@param string $key clé

@return mixed|null Null if no value available