phpDocumentor

SafeFileCache extends FileCache
in package
implements SafeCache

Class SafeFileCache

Interfaces, Classes and Traits

SafeCache
Interface SafeCache

Table of Contents

$cachedData  : array<string|int, CachedData>
$cacheInitializer  : CacheInitializerAggregate
$fileCacheRepository  : FileCacheRepository
$namespace  : string
clear()  : bool
create()  : static
delete()  : bool
deleteMultiple()  : bool
get()  : mixed
getMultiple()  : iteratable<string|int, mixed>
has()  : bool
set()  : bool
setMultiple()  : bool
__construct()  : mixed
FileCache constructor.
buildCachedDataIfPossible()  : bool
validateKey()  : bool

Properties

Methods

clear()

public clear() : bool
Tags
inheritDoc
Return values
bool

delete()

public delete(mixed $key) : bool
Parameters
$key : mixed
Tags
inheritDoc
Return values
bool

deleteMultiple()

public deleteMultiple(mixed $keys) : bool
Parameters
$keys : mixed
Tags
inheritDoc
Return values
bool

get()

public get(mixed $key[, mixed $default = null ]) : mixed
Parameters
$key : mixed
$default : mixed = null
Tags
inheritDoc
Return values
mixed

getMultiple()

public getMultiple(mixed $keys[, mixed $default = null ]) : iteratable<string|int, mixed>
Parameters
$keys : mixed
$default : mixed = null
Tags
inheritDoc
Return values
iteratable<string|int, mixed>

has()

public has(mixed $key) : bool
Parameters
$key : mixed
Tags
inheritDoc
Return values
bool

set()

public set(mixed $key, mixed $value[, mixed $ttl = null ]) : bool
Parameters
$key : mixed
$value : mixed
$ttl : mixed = null
Tags
inheritDoc
Return values
bool

setMultiple()

public setMultiple(mixed $values[, mixed $ttl = null ]) : bool
Parameters
$values : mixed
$ttl : mixed = null
Tags
inheritDoc
Return values
bool

buildCachedDataIfPossible()

private buildCachedDataIfPossible(string $key) : bool
Parameters
$key : string
Tags
throws
InvalidArgumentException
Return values
bool

validateKey()

private validateKey(string $key) : bool
Parameters
$key : string
Return values
bool

Search results