cms_cache_driver View code

An abstract class for various cache drivers

since 2.0
author

Robert Campbell

package

CMS

license

GPL

Methods

clear(string $group = '') 

Clear all cached values in a group.

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

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

abstract

Arguments

string $key

string $group

Response

boolean

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

Erase a cached value.

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

abstract

Arguments

string $key

mixed $value

string $group

set_group(string $group) 

Set A current group

abstract

Arguments

string $group