extends abstract class Phalcon\Cache\Backend
implements Phalcon\Cache\BackendInterface, Serializable
Source on GitHub
Stores content in memory. Data is lost when the request is finished
use Phalcon\Cache\Backend\Memory;
use Phalcon\Cache\Frontend\Data as FrontData;
// Cache data
$frontCache = new FrontData();
$cache = new Memory($frontCache);
// Cache arbitrary data
$cache->save('my-data', [1, 2, 3, 4, 5]);
// Get data
$data = $cache->get('my-data');
Methods
public get (mixed