\cms_cache_driver

An abstract base class for all cache drivers.

Cache drivers should work with cache groups and should have a preset group. most implementations of a cache driver will accept the name of a default cache group in its constructor.

Summary

Methods
Properties
Constants
clear()
get()
exists()
erase()
set()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

clear()

clear(string $group)

Clear a cache group (or the default cache group).

Parameters

string $group

The cache group

get()

get(string $key, string $group)

Retrieve a cached value.

Parameters

string $key

The variable key.

string $group

The cache group

exists()

exists(string $key, string $group)

Test if a value exists in the cache

Parameters

string $key

The variable key.

string $group

The cache group

erase()

erase(string $key, string $group)

Erase a cached value.

Parameters

string $key

The variable key.

string $group

The cache group

set()

set(string $key, string $value, string $group)

Store a value into the cache.

Parameters

string $key

The variable key.

string $value

The data to store.

string $group

The cache group