public function fetch($key)
    {

        if (!\array_key_exists($key, $this->hash)) {
            return false;
        }

        $data = $this->hash[$key];

        //check to see if it expired
        if ($data && ($data[0] == 0 || \time() <= $data[0])) {
            return $data[1];
        } else {
            $this->delete($key);
            return false;
        }
    }
public function fetch($key)
    {

        if (!\array_key_exists($key, $this->hash)) {
            return false;
        }

        $data = $this->hash[$key];

        //check to see if it expired
        if ($data && ($data[0] == 0 || \time() <= $data[0])) {
            return $data[1];
        } else {
            $this->delete($key);
            return false;
        }
    }
public function fetch ( $ key ) { if ( ! \ array_key_exists ( $ key , $ this -> hash ) ) { return false ; } $ data = $ this -> hash [ $ key ] ; //check to see if it expired if ( $ data && ( $ data [ 0 ] == 0 || \ time ( ) <= $ data [ 0 ] ) ) { return $ data [ 1 ] ; } else { $ this -> delete ( $ key ) ; return false ; } }
Fetches the cache from memcache
Fetches the cache from memcache