Documentation

Table Of Contents

Previous topic

< Class Phalcon\CLI\Task

Next topic

Class Phalcon\Cache\Backend\Apc >

This Page

Class Phalcon\Cache\Backend

This class implements common functionality for backend adapters. A backend cache adapter may extend this class

Methods

public __construct (Phalcon\Cache\FrontendInterface $frontend, [array $options])

Phalcon\Cache\Backend constructor

public mixed start (int|string $keyName, [long $lifetime])

Starts a cache. The $keyname allows to identify the created fragment

public stop ([boolean $stopBuffer])

Stops the frontend without store any cached content

public mixed getFrontend ()

Returns front-end instance adapter related to the back-end

public array getOptions ()

Returns the backend options

public boolean isFresh ()

Checks whether the last cache is fresh or cached

public boolean isStarted ()

Checks whether the cache has starting buffering or not

public setLastKey (string $lastKey)

Sets the last key used in the cache

public string getLastKey ()

Gets the last key stored by the cache

public int getLifetime ()

Gets the last lifetime set