Documentation

AbstractDriver
in package
implements DriverInterface, LoggerAwareInterface Uses KeyValidateTrait, LoggerTrait

Base class for cache backends

Interfaces, Classes, Traits and Enums

DriverInterface
Interface for different cache backends
LoggerAwareInterface

Table of Contents

__construct()  : mixed
Common constructor interface for driver classes
getMultiple()  : array<string|int, mixed>
Retrieve a set of values by their cache key
setLogger()  : void
Set a logger to keep track of errors
setMultiple()  : bool
Set multiple cache values

Methods

__construct()

Common constructor interface for driver classes

public abstract __construct() : mixed
Return values
mixed

getMultiple()

Retrieve a set of values by their cache key

public getMultiple([array<string|int, string> $keys = [] ]) : array<string|int, mixed>
Parameters
$keys : array<string|int, string> = []
Return values
array<string|int, mixed>

setLogger()

Set a logger to keep track of errors

public setLogger(LoggerInterface $logger) : void
Parameters
$logger : LoggerInterface
Return values
void

setMultiple()

Set multiple cache values

public setMultiple(array<string|int, mixed> $items[, DateInterval|int|null $expires = NULL ]) : bool
Parameters
$items : array<string|int, mixed>
$expires : DateInterval|int|null = NULL
Return values
bool

        

Search results