Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 function &_getStorage()
 {
     if (is_a($this->_handler, 'SECacheStorage')) {
         return $this->_handler;
     }
     $this->_handler =& SECacheStorage::getInstance($this->_options['storage'], $this->_options);
     return $this->_handler;
 }
Esempio n. 3
0
 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();
 }