cms_cache_driver
in package
AbstractYes
An abstract class for various cache drivers
Tags
Table of Contents
Methods
- clear() : mixed
- Clear all cached values in a group.
- erase() : mixed
- Erase a cached value.
- exists() : bool
- Test if a cached value exists If the $group parameter is not specified, use the current group
- get() : mixed
- Retrieve a cached value If the $group parameter is not specified, use the current group
- set() : mixed
- Add a cached value If the $group parameter is not specified, use the current group
- set_group() : mixed
- Set A current group
Methods
clear()
Clear all cached values in a group.
public
abstract clear([string $group = '' ]) : mixed
If the $group parameter is not specified, use the current group
Parameters
- $group : string = ''
erase()
Erase a cached value.
public
abstract erase(string $key[, string $group = '' ]) : mixed
If the $group parameter is not specified, use the current group
Parameters
- $key : string
- $group : string = ''
exists()
Test if a cached value exists If the $group parameter is not specified, use the current group
public
abstract exists(string $key[, string $group = '' ]) : bool
Parameters
- $key : string
- $group : string = ''
Return values
boolget()
Retrieve a cached value If the $group parameter is not specified, use the current group
public
abstract get(string $key[, string $group = '' ]) : mixed
Parameters
- $key : string
- $group : string = ''
set()
Add a cached value If the $group parameter is not specified, use the current group
public
abstract set(string $key, mixed $value[, string $group = '' ]) : mixed
Parameters
- $key : string
- $value : mixed
- $group : string = ''
set_group()
Set A current group
public
abstract set_group(string $group) : mixed
Parameters
- $group : string