ManaPHP\Cache\AdapterInterface::exists PHP 메소드

exists() 공개 메소드

Checks whether a specified key exists in the cache.
public exists ( string $key ) : boolean
$key string
리턴 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);
 }