Documentation

AbstractAdapter
in package
implements AdapterInterface, CacheInterface, LoggerAwareInterface, ResettableInterface Uses AbstractAdapterTrait, ContractsTrait

Tags
author

Nicolas Grekas p@tchwork.com

Interfaces, Classes and Traits

AdapterInterface
Interface for adapters managing instances of Symfony's CacheItem.
CacheInterface
Covers most simple to advanced caching needs.
LoggerAwareInterface
Describes a logger-aware instance.
ResettableInterface
Resets a pool's local state.

Table of Contents

$apcuSupported  : mixed
$phpFilesSupported  : mixed
commit()  : bool
{@inheritdoc}
createConnection()  : mixed
createSystemCache()  : AdapterInterface
Returns the best possible adapter that your runtime supports.
__construct()  : mixed

Properties

Methods

commit()

{@inheritdoc}

public commit() : bool
Return values
bool

createConnection()

public static createConnection(string $dsn[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
$dsn : string
$options : array<string|int, mixed> = []
Return values
mixed

createSystemCache()

Returns the best possible adapter that your runtime supports.

public static createSystemCache(string $namespace, int $defaultLifetime, string $version, string $directory[, LoggerInterface|null $logger = null ]) : AdapterInterface

Using ApcuAdapter makes system caches compatible with read-only filesystems.

Parameters
$namespace : string
$defaultLifetime : int
$version : string
$directory : string
$logger : LoggerInterface|null = null
Return values
AdapterInterface

__construct()

protected __construct([string $namespace = '' ], int $defaultLifetime) : mixed
Parameters
$namespace : string = ''
$defaultLifetime : int
Return values
mixed

Search results