Cache\Frontend\Json::beforeStore

public string beforeStore (mixed $data) Serializes data before storing them

Cache\Frontend\Json::start

public start () Starts output frontend. Actually, does nothing

Cache\Frontend\Json::getContent

public string getContent () Returns output cached content

Cache\Frontend\Json::getLifetime

public getLifetime () Returns the cache lifetime

Cache\Frontend\Json::afterRetrieve

public mixed afterRetrieve (mixed $data) Unserializes data after retrieval

Cache\Frontend\Igbinary::stop

public stop () Stops output frontend

Cache\Frontend\Json

implements Phalcon\Cache\FrontendInterface Source on GitHub Allows to cache data converting/deconverting them to JSON. This adapter uses the json_encode/json_decode PHP’s functions As the data is encoded in JSON other systems accessing the same backend could process them <?php // Cache the data for 2 days $frontCache = new \Phalcon\Cache\Frontend\Json(array( "lifetime" => 172800 )); //Create the Cache setting memcached connection options $cache = new \Phalcon\Cache\Backend\Memc

Cache\Frontend\Json::isBuffering

public isBuffering () Check whether if frontend is buffering output

Cache\Frontend\Data::stop

public stop () Stops output frontend

Cache\Frontend\Igbinary

extends class Phalcon\Cache\Frontend\Data implements Phalcon\Cache\FrontendInterface Source on GitHub Allows to cache native PHP data in a serialized form using igbinary extension // Cache the files for 2 days using Igbinary frontend $frontCache = new \Phalcon\Cache\Frontend\Igbinary(array( "lifetime" => 172800 )); // Create the component that will cache "Igbinary" to a "File" backend // Set the cache file directory - important to keep the "/" at the end of // of the value for the folde