ManaPHP\Cache\AdapterInterface::exists PHP Méthode

exists() public méthode

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

Usage Example

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