lithium\storage\cache\adapter\Memory::write()

public method

Write values to the cache.

Parameters

  • array $keys

    Key/value pairs with keys to uniquely identify the to-be-cached item.

  • mixed $data

    The value to be cached.

  • null|string $expiry

    Unused.

Returns

boolean

true on successful write, false otherwise.

Source

	public function write(array $keys, $expiry = null) {
		foreach ($keys as $key => &$value) {
			$this->_cache[$key] = $value;
		}
		return true;
	}