lithium\storage\session\adapter\Memory::check()
Checks if a value has been set in the session.
Parameters
-
string
$keyKey of the entry to be checked.
-
array
$optionsOptions array. Not used for this adapter method.
Returns
\ClosureFunction returning boolean true if the key exists, false otherwise.
Source
public function check($key, array $options = []) {
return function($params) {
return isset($this->_session[$params['key']]);
};
}