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

exists() public méthode

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

Usage Example

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