ManaPHP\Store\AdapterInterface::exists PHP Method

exists() public method

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

Usage Example

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