public function has($key)
    {
        $key = $this->getKeyCode($key);

        $value = $this->memcacheObj->get($key);
        
        if (!$value) {
            return false;
        } else {
            return true;
        }
    }
public function has($key)
    {
        $key = $this->getKeyCode($key);

        $value = $this->memcacheObj->get($key);
        
        if (!$value) {
            return false;
        } else {
            return true;
        }
    }
public function has ( $ key ) { $ key = $ this -> getKeyCode ( $ key ) ; $ value = $ this -> memcacheObj -> get ( $ key ) ; if ( ! $ value ) { return false ; } else { return true ; } }
Check if the key exists in cache

@parm mixed $key
@return true if the key exist in cache
@return false if the key does not exist in cache
Check if the key exists in cache