ApcuStore
extends AbstractCache
in package
Table of Contents
- $prefix : string
- $ttl : int
- delete() : bool
- {@inheritDoc}
- deleteAll() : bool
- Delete all keys.
- get() : mixed
- {@inheritDoc}
- getPrefix() : string
- Get cache prefix.
- getTtl() : int
- Get time to live.
- keys() : array<string|int, mixed>
- {@inheritDoc}
- set() : mixed
- {@inheritDoc}
- setPrefix() : Cacheable
- Set cache prefix.
- setTtl() : self
- Set time to live.
- getActualCacheKey() : string
- Get actual cache key with prefix.
Properties
$prefix
protected
string
$prefix
= 'tus:'
Prefix for cache keys
$ttl
protected
int
$ttl
= 86400
TTL in secs (default 1 day)
Methods
delete()
{@inheritDoc}
public
delete(string $key) : bool
Parameters
- $key : string
Return values
bool —deleteAll()
Delete all keys.
public
deleteAll(array<string|int, mixed> $keys) : bool
Parameters
- $keys : array<string|int, mixed>
Return values
bool —get()
{@inheritDoc}
public
get(string $key[, bool $withExpired = false ]) : mixed
Parameters
- $key : string
- $withExpired : bool = false
Return values
mixed —getPrefix()
Get cache prefix.
public
getPrefix() : string
Return values
string —getTtl()
Get time to live.
public
getTtl() : int
Return values
int —keys()
{@inheritDoc}
public
keys() : array<string|int, mixed>
Return values
array<string|int, mixed> —set()
{@inheritDoc}
public
set(string $key, mixed $value) : mixed
Parameters
- $key : string
- $value : mixed
Return values
mixed —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
Return values
self —getActualCacheKey()
Get actual cache key with prefix.
protected
getActualCacheKey(string $key) : string
Parameters
- $key : string