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

コード例 #1
0
ファイル: Cache.php プロジェクト: manaphp/manaphp
 /**
  * @param string $key
  *
  * @return bool
  */
 public function exists($key)
 {
     return $this->adapter->exists($this->_prefix . $key);
 }