class APCUCacheHandler implements CacheHandlerInterface

Cache Handler to use APCU as caching backend

Class APCUCacheHandler

Methods

check_for_clear()

Checks if a frontend cache clear is required.

mixed
clear_cache(bool $enforce_in_cmd)

No description

bool
connect()

No description

mixed
get(string $key)

No description

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 144
check_for_clear()

Checks if a frontend cache clear is required.

This is determined by config var XF_CACHE_IS_DIRTY. If the cache is cleared, it will reload the page.

at line 82
mixed clear_cache(bool $enforce_in_cmd)

No description

Parameters

bool $enforce_in_cmd

Return Value

mixed

at line 27
bool connect()

No description

Return Value

bool

Return true if connection is successful and caching can be used

at line 47
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 120
array get_detailed_status()

No description

Return Value

array

at line 99
array get_grouped_cached_keys()

No description

Return Value

array

at line 19
init()

No description

at line 168
bool is_cli_supported()

No description

Return Value

bool

True if Caching Adapter supports caching in CMD Mode

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

No description

Parameters

string $key

Cache Key

Return Value

bool|mixed|null

at line 65
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 39
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