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;
    }
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
check if a key exist