public mixed decrement ([string | int $keyName], [int $value]) Decrement of a given key, by number $value
extends abstract class Phalcon\Cache\Backend implements Phalcon\Cache\BackendInterface Source on GitHub Allows to cache output fragments using a file backend use Phalcon\Cache\Backend\File; use Phalcon\Cache\Frontend\Output as FrontOutput; // Cache the file for 2 days $frontendOptions = [ 'lifetime' => 172800 ]; // Create an output cache $frontCache = FrontOutput($frontOptions); // Set the cache directory $backendOptions = [ 'cacheDir' => '../app/cache/' ]; // Crea
public save ([string | long $keyName], [string $content], [long $lifetime], [boolean $stopBuffer]) Stores cached content into the APC backend and stops the frontend
public array queryKeys ([string $prefix]) Query the existing cached keys
public mixed increment ([string $keyName], [long $value]) Increment of a given key, by number $value
public get (mixed $keyName, [mixed $lifetime]) Returns a cached content
public flush () Immediately invalidates all existing items.
public boolean exists ([string | long $keyName], [long $lifetime]) Checks if cache exists and it hasn’t expired
public delete (mixed $keyName) Deletes a value from the cache by its key
public mixed decrement ([string $keyName], [long $value]) Decrement of a given key, by number $value
Page 355 of 382