FileAccess Orion

AbstractCache
in package
implements Cacheable

Interfaces, Classes, Traits and Enums

Cacheable

Table of Contents

$prefix  : string
$ttl  : int
deleteAll()  : bool
Delete all keys.
getPrefix()  : string
Get cache prefix.
getTtl()  : int
Get time to live.
setPrefix()  : Cacheable
Set cache prefix.
setTtl()  : self
Set time to live.

Properties

$prefix

protected string $prefix = 'tus:'

Prefix for cache keys

Methods

deleteAll()

Delete all keys.

public deleteAll(array<string|int, mixed> $keys) : bool
Parameters
$keys : array<string|int, mixed>
Return values
bool

getPrefix()

Get cache prefix.

public getPrefix() : string
Return values
string

getTtl()

Get time to live.

public getTtl() : int
Return values
int

setTtl()

Set time to live.

public setTtl(int $secs) : self
Parameters
$secs : int
Return values
self

Search results