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

public method

Read values from the cache. Will attempt to return an array of data containing key/value pairs of the requested data.

Parameters

  • array $keys

    Keys to uniquely identify the cached items.

Returns

array

Cached values keyed by cache keys on successful read, keys which could not be read will not be included in the results array.

Source

	public function read(array $keys) {
		$results = [];

		foreach ($keys as $key) {
			if (array_key_exists($key, $this->_cache)) {
				$results[$key] = $this->_cache[$key];
			}
		}
		return $results;
	}