ManaPHP\Store\AdapterInterface::exists PHP Метод

exists() публичный Метод

Checks whether a specified id exists in the store.
public exists ( string $id ) : boolean
$id string
Результат boolean
    public function exists($id);

Usage Example

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