AbstractCache
in package
implements
Cacheable
Interfaces, Classes, Traits and Enums
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
$ttl
protected
int
$ttl
= 86400
TTL in secs (default 1 day)
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 —setPrefix()
Set cache prefix.
public
setPrefix(string $prefix) : Cacheable
Parameters
- $prefix : string
Return values
Cacheable —setTtl()
Set time to live.
public
setTtl(int $secs) : self
Parameters
- $secs : int