Documentation

FilesystemAdapter extends AbstractAdapter
in package
implements PruneableInterface Uses FilesystemTrait

Table of Contents

Interfaces

PruneableInterface
Interface extends psr-6 and psr-16 caches to allow for pruning (deletion) of all expired cache items.

Properties

$apcuSupported  : mixed
$phpFilesSupported  : mixed

Methods

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

Properties

Methods

__construct()

public __construct([string $namespace = '' ][, int $defaultLifetime = 0 ][, string $directory = null ][, MarshallerInterface $marshaller = null ]) : mixed
Parameters
$namespace : string = ''
$defaultLifetime : int = 0
$directory : string = null
$marshaller : MarshallerInterface = null

createConnection()

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

createSystemCache()

Returns the best possible adapter that your runtime supports.

public static createSystemCache(string $namespace, int $defaultLifetime, string $version, string $directory[, LoggerInterface $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
Return values
AdapterInterface

        
On this page

Search results