AbstractBackend

abstract class \TYPO3\CMS\Core\Cache\Backend\AbstractBackend

Implements
BackendInterface, LoggerAwareInterface
Uses
LoggerAwareTrait

An abstract caching backend

Table of Contents

Interfaces

BackendInterface
A contract for a Cache Backend
LoggerAwareInterface

Properties

$cacheIdentifier  : string
$defaultLifetime  : int
Default lifetime of a cache entry in seconds

Methods

__construct()  : mixed
setCache()  : void
Sets a reference to the cache frontend which uses this backend
setDefaultLifetime()  : void
Sets the default lifetime for this cache backend

Properties

$cacheIdentifier

protected string $cacheIdentifier

$defaultLifetime

Default lifetime of a cache entry in seconds

protected int $defaultLifetime = 3600

Methods

__construct()

public __construct([array $options = [] ]) : mixed

Parameters

$options : array = []

Configuration options - depends on the actual backend

setDefaultLifetime()

Sets the default lifetime for this cache backend

protected setDefaultLifetime(int $defaultLifetime) : void

Parameters

$defaultLifetime : int

Default lifetime in seconds, "0" means unlimited lifetime

On this page