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

protected method

Parses value from format.

Parameters

  • string $data

    Compiled data string.

Returns

array

Array with expiry and value.

Source

	protected function _parse($data) {
		preg_match('/^\{\:expiry\:(\d+)\}\\n(.*)/sS', $data, $matches);
		return array('expiry' => $matches[1], 'value' => $matches[2]);
	}