Cache\Backend\Memcache::queryKeys

public array queryKeys ([string $prefix]) Query the existing cached keys

Cache\Backend\Memory

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

Cache\Backend\Memcache::save

public save ([int | string $keyName], [string $content], [long $lifetime], [boolean $stopBuffer]) Stores cached content into the file backend and stops the frontend

Cache\Backend\Memcache::_connect

public _connect () Create internal connection to memcached

Cache\Backend\Memcache::get

public get (mixed $keyName, [mixed $lifetime]) Returns a cached content

Cache\Backend\Memcache

extends abstract class Phalcon\Cache\Backend implements Phalcon\Cache\BackendInterface Source on GitHub Allows to cache output fragments, PHP data or raw data to a memcache backend This adapter uses the special memcached key “_PHCM” to store all the keys internally used by the adapter use Phalcon\Cache\Backend\Memcache; use Phalcon\Cache\Frontend\Data as FrontData; // Cache data for 2 days $frontCache = new FrontData([ 'lifetime' => 172800 ]); // Create the Cache setting memcache

Cache\Backend\Memcache::exists

public boolean exists ([string $keyName], [long $lifetime]) Checks if cache exists and it isn’t expired

Cache\Backend\Memcache::flush

public flush () Immediately invalidates all existing items.

Cache\Backend\Memcache::delete

public boolean delete (int | string $keyName) Deletes a value from the cache by its key

Cache\Backend\Memcache::addServers

public addServers (mixed $host, mixed $port, [mixed $persistent]) Add servers to memcache pool