public save ([int | string $keyName], [string $content], [long $lifetime], [boolean $stopBuffer]) Stores cached content into the file backend and stops the frontend
public queryKeys ([string $prefix]) Query the existing cached keys
public increment ([string $keyName], [long $value]) Increment of given $keyName by $value
public get (mixed $keyName, [mixed $lifetime]) Returns a cached content
public flush () Immediately invalidates all existing items.
public boolean exists ([string $keyName], [long $lifetime]) Checks if cache exists and it isn’t expired
public delete (int | string $keyName) Deletes a value from the cache by its key
public decrement ([string $keyName], [long $value]) Decrement of $keyName by given $value
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 redis backend This adapter uses the special redis key “_PHCR” to store all the keys internally used by the adapter use Phalcon\Cache\Backend\Redis; use Phalcon\Cache\Frontend\Data as FrontData; // Cache data for 2 days $frontCache = new FrontData([ 'lifetime' => 172800 ]); // Create the Cache setting redis connection o
Page 349 of 382