lithium\storage\session\adapter\Memory::check()

public method

Checks if a value has been set in the session.

Parameters

  • string $key

    Key of the entry to be checked.

  • array $options

    Options array. Not used for this adapter method.

Returns

\Closure

Function returning boolean true if the key exists, false otherwise.

Source

	public function check($key, array $options = array()) {
		$session =& $this->_session;
		return function($self, $params) use (&$session) {
			return isset($session[$params['key']]);
		};
	}