src/M6Web/Component/Redis/Cache.php
public function exists($key)
    {
        $start = microtime(true);
        $ret = $this->getRedis($key)->exists($this->getPatternKey().$key);
        $this->notifyEvent('exists', array($this->getPatternKey().$key), microtime(true) - $start);

        return (boolean) $ret;
    }
public function exists($key)
    {
        $start = microtime(true);
        $ret = $this->getRedis($key)->exists($this->getPatternKey().$key);
        $this->notifyEvent('exists', array($this->getPatternKey().$key), microtime(true) - $start);

        return (boolean) $ret;
    }
check if a key exist

@param string $key clé

@return boolean