class PhpFilesCache extends AbstractCache implements PruneableInterface

Traits

Methods

hasItem($key)

{@inheritdoc}

clear()

{@inheritdoc}

deleteItem($key)

{@inheritdoc}

deleteItems(array $keys)

{@inheritdoc}

static 
handleUnserializeCallback($class)

No description

get($key, $default = null)

{@inheritdoc}

set($key, $value, $ttl = null)

{@inheritdoc}

getMultiple($keys, $default = null)

{@inheritdoc}

setMultiple($values, $ttl = null)

{@inheritdoc}

deleteMultiple($keys)

{@inheritdoc}

static 
throwError($type, $message, $file, $line)

No description

__destruct()

No description

static 
isSupported()

No description

bool
prune()

No description

__construct(string $namespace = '', int $defaultLifetime, string|null $directory = null)

No description

Details

in AbstractTrait at line line 83
hasItem($key)

{@inheritdoc}

Parameters

$key

in AbstractTrait at line line 103
clear()

{@inheritdoc}

in AbstractTrait at line line 119
deleteItem($key)

{@inheritdoc}

Parameters

$key

in AbstractTrait at line line 127
deleteItems(array $keys)

{@inheritdoc}

Parameters

array $keys

in AbstractTrait at line line 205
static handleUnserializeCallback($class)

Parameters

$class

in AbstractCache at line line 49
get($key, $default = null)

{@inheritdoc}

Parameters

$key
$default

in AbstractCache at line line 67
set($key, $value, $ttl = null)

{@inheritdoc}

Parameters

$key
$value
$ttl

in AbstractCache at line line 77
getMultiple($keys, $default = null)

{@inheritdoc}

Parameters

$keys
$default

in AbstractCache at line line 103
setMultiple($values, $ttl = null)

{@inheritdoc}

Parameters

$values
$ttl

in AbstractCache at line line 139
deleteMultiple($keys)

{@inheritdoc}

Parameters

$keys

in FilesystemCommonTrait at line line 114
static throwError($type, $message, $file, $line)

Parameters

$type
$message
$file
$line

in FilesystemCommonTrait at line line 119
__destruct()

in PhpFilesTrait at line line 31
static isSupported()

in PhpFilesTrait at line line 39
bool prune()

Return Value

bool

at line line 29
__construct(string $namespace = '', int $defaultLifetime, string|null $directory = null)

Parameters

string $namespace
int $defaultLifetime
string|null $directory

Exceptions

CacheException if OPcache is not enabled