Cache\Backend\Libmemcached

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 libmemcached backend. Per default persistent memcached connection pools are used. use Phalcon\Cache\Backend\Libmemcached; use Phalcon\Cache\Frontend\Data as FrontData; // Cache data for 2 days $frontCache = new FrontData([ 'lifetime' => 172800 ]); // Create the Cache setting memcached connection options $cache = new L

Cache\Backend\File::useSafeKey

public useSafeKey (mixed $useSafeKey) Set whether to use the safekey or not

Cache\Backend\File::save

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

Cache\Backend\File::queryKeys

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

Cache\Backend\File::increment

public mixed increment ([string | int $keyName], [int $value]) Increment of a given key, by number $value

Cache\Backend\File::getKey

public getKey (mixed $key) Return a file-system safe identifier for a given key

Cache\Backend\File::get

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

Cache\Backend\File::flush

public flush () Immediately invalidates all existing items.

Cache\Backend\File::exists

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

Cache\Backend\File::delete

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