FileAccess Orion

RedisStore extends AbstractCache
in package

Table of Contents

$prefix  : string
$redis  : Client
$ttl  : int
__construct()  : mixed
RedisStore constructor.
delete()  : bool
{@inheritDoc}
deleteAll()  : bool
Delete all keys.
get()  : mixed
{@inheritDoc}
getPrefix()  : string
Get cache prefix.
getRedis()  : Client
Get redis.
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.

Properties

$prefix

protected string $prefix = 'tus:'

Prefix for cache keys

Methods

__construct()

RedisStore constructor.

public __construct([array<string|int, mixed> $options = [] ]) : mixed
Parameters
$options : array<string|int, mixed> = []
Return values
mixed

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

setTtl()

Set time to live.

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

Search results