4 * Class CRM_Utils_Cache_Arraycache
6 class CRM_Utils_Cache_Arraycache
implements CRM_Utils_Cache_Interface
{
9 * The cache storage container, an in memory array by default
16 * @param array $config an array of configuration params
18 * @return \CRM_Utils_Cache_Arraycache
20 function __construct($config) {
21 $this->_cache
= array();
28 function set($key, &$value) {
29 $this->_cache
[$key] = $value;
38 return CRM_Utils_Array
::value($key, $this->_cache
);
44 function delete($key) {
45 unset($this->_cache
[$key]);
50 $this->_cache
= array();