ManaPHP\Cache\AdapterInterface::exists PHP Method

exists() public method

Checks whether a specified key exists in the cache.
public exists ( string $key ) : boolean
$key string
return boolean
    public function exists($key);

Usage Example

Exemplo n.º 1
0
 /**
  * @param string $key
  *
  * @return bool
  */
 public function exists($key)
 {
     return $this->adapter->exists($this->_prefix . $key);
 }