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

protected method

Compiles value to format.

Parameters

  • string $key

    Key to uniquely identify the cached items.

  • mixed $value

    Value to store under given key.

  • integer $expires

    UNIX timestamp after which the item is invalid.

Returns

string

The compiled data string.

Source

	protected function _compile($key, $value, $expires) {
		return "{:expiry:{$expires}}\n{$value}";
	}