apc_cache_driver View code

Extends \cms_cache_driver

This is a cache driver for CMSMS that stores cached data in memory using the APC library

This class will obfuscate all keys, and groups for added security.

since 2.3
package

CMS

licwnse

2.3

author

Robert Campbell

Methods

__construct(integer $ttl_seconds) 

Constructor

Arguments

integer $ttl_seconds

the number of seconds before cached items should expire.

get_prefix(string $group = '') : string

calculate a prefix for keys given a group.

Arguments

string $group

Response

string

get_key(string $key, string $group = '') : string

Given a key, and an optional group, generate an obfuscated key

Arguments

string $key

string $group

Response

string

clear(string $group = '') 

Clear all cached values in a group.

inherited abstract

If the $group parameter is not specified, use the current group

Arguments

string $group

get(string $key, string $group = '') : mixed

Retrieve a cached value If the $group parameter is not specified, use the current group

inherited abstract

Arguments

string $key

string $group

Response

mixed

exists(string $key, string $group = '') : boolean

Test if a cached value exists If the $group parameter is not specified, use the current group

inherited abstract

Arguments

string $key

string $group

Response

boolean

erase(string $key, string $group = '') 

Erase a cached value.

inherited abstract

If the $group parameter is not specified, use the current group

Arguments

string $key

string $group

set(string $key, mixed $value, string $group = '') 

Add a cached value If the $group parameter is not specified, use the current group

inherited abstract

Arguments

string $key

mixed $value

string $group

set_group(string $group) 

Set A current group

inherited abstract

Arguments

string $group

Properties

number of seconds before cached items expire.

ttl_seconds : \CMSMS\The

Type(s)

\CMSMS\The

current group

group : \CMSMS\The

Type(s)

\CMSMS\The