lithium\storage\cache\adapter\File::_read()

protected method

Reads from file, parses its format and returns its expiry and value.

Parameters

  • string $key

    Key to uniquely identify the cached item.

Returns

array|boolean

Array with expiry and value or false otherwise.

Source

	protected function _read($key) {
		$path = "{$this->_config['path']}/{$key}";

		if (!is_file($path) || !is_readable($path)) {
			return false;
		}
		return $this->_parse(file_get_contents($path));
	}