function SECacheStorageFile($options = array()) { parent::SECacheStorage($options); $params =& SECacheStorageFile::getConfig(); $this->_root = isset($params['root']) ? $params['root'] : NULL; $this->_locking = isset($params['locking']) ? $params['locking'] : TRUE; }
function &_getStorage() { if (is_a($this->_handler, 'SECacheStorage')) { return $this->_handler; } $this->_handler =& SECacheStorage::getInstance($this->_options['storage'], $this->_options); return $this->_handler; }
function SECacheStorageMemcache($options = array()) { if (!$this->test()) { die("The memcache extension isn't available"); } parent::__construct($options); $params =& SECacheStorageMemcache::getConfig(); $this->_compress = isset($params['compression']) ? $params['compression'] : FALSE; $this->_db =& SECacheStorageMemcache::getConnection(); }