class RedisCacheHandler implements CacheHandlerInterface

Cache Handler to use REDIS as caching backend

Class RedisCacheHandler

Methods

mixed
clear_cache(bool $enforce_in_cmd = false)

No description

bool
connect()

No description

mixed
get(string $key)

No description

static string|null
getServerAuth()

Get REDIS Server AUTH Code based on CONFIG/CONSTANTS

static array
getServerURLs()

Get REDIS Server Info based on CONFIG/CONSTANTS

array
get_detailed_status()

No description

array
get_grouped_cached_keys()

No description

init()

No description

bool
is_cli_supported()

No description

bool|mixed|null
remove(string $key)

No description

int
remove_group(string $group)

No description

bool
set(string $key, mixed $value, int $time)

No description

Details

at line 261
mixed clear_cache(bool $enforce_in_cmd = false)

No description

Parameters

bool $enforce_in_cmd

Return Value

mixed

at line 39
bool connect()

No description

Return Value

bool

Return true if connection is successful and caching can be used

at line 187
mixed get(string $key)

No description

Parameters

string $key

Cache Key

Return Value

mixed

Returns the cached value of the passed Cache Key

at line 159
static string|null getServerAuth()

Get REDIS Server AUTH Code based on CONFIG/CONSTANTS

Return Value

string|null

at line 143
static array getServerURLs()

Get REDIS Server Info based on CONFIG/CONSTANTS

Return Value

array

at line 301
array get_detailed_status()

No description

Return Value

array

at line 269
array get_grouped_cached_keys()

No description

Return Value

array

at line 32
init()

No description

at line 324
bool is_cli_supported()

No description

Return Value

bool

True if Caching Adapter supports caching in CMD Mode

at line 202
bool|mixed|null remove(string $key)

No description

Parameters

string $key

Cache Key

Return Value

bool|mixed|null

at line 232
int remove_group(string $group)

No description

Parameters

string $group

Cache Group (erases all keyy in one cache group - keys must start with this group id, e.g. db or template)

Return Value

int

number of deleted keys

at line 172
bool set(string $key, mixed $value, int $time)

No description

Parameters

string $key

Cache Key

mixed $value

Cache Value

int $time

TTL in seconds

Return Value

bool