protected $fields = array();
public function __construct($cbLoad);
abstract public function loadValue($field);
abstract
$field
- name of the variable queried
$value
- value to be stored
return value: true
on success or false
on failure
abstract public function storeValue($field, $value);
abstract public function preload($fields);
Preloads an array of variables. This is good to be used when cache storage is database to minimize number of queries. This function does not guarantee that all variables are loaded from cache.
abstract
return value: N/A.
abstract public function gc();
Garbage collector. When this function is called all expired variables should be deleted.
abstract public function getField($field);
abstract public function setField($field);