Cache\Backend\File::decrement

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

Cache\Backend\File

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

Cache\Backend\Apc::save

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

Cache\Backend\Apc::queryKeys

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

Cache\Backend\Apc::increment

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

Cache\Backend\Apc::get

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

Cache\Backend\Apc::flush

public flush () Immediately invalidates all existing items.

Cache\Backend\Apc::exists

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

Cache\Backend\Apc::delete

public delete (mixed $keyName) Deletes a value from the cache by its key

Cache\Backend\Apc::decrement

public mixed decrement ([string $keyName], [long $value]) Decrement of a given key, by number $value