lithium\storage\cache\strategy\Json::write()

public method

Write strategy method.

Encodes the passed data from an array to JSON format.

Parameters

  • mixed $data

    The data to be encoded.

Returns

string

The encoded data.

Source

	public function write($data) {
		return json_encode($data);
	}