public function save(CCacheItem $cache_item) { $this->_stat['io_write']++; $start = microtime(true); parent::save($cache_item); apc_store($cache_item->id, $cache_item, $cache_item->expired); $end = microtime(true); $this->_stat['io_write_time'] += $end - $start; }
public function save(CCacheItem $cache_item) { $this->_stat['io_write']++; $start = microtime(true); parent::save($cache_item); $res = $this->_memcache->set(sha1($cache_item->id), $this->_encodeData($cache_item), MEMCACHE_COMPRESSED, $cache_item->expired); $end = microtime(true); $this->_stat['io_write_time'] += $end - $start; }
public function save(CCacheItem $cache_item) { parent::save($cache_item); $this->_saveFile($this->_getFilenameByKey($cache_item->id), $cache_item); }
public function save(CCacheItem $cache_item) { $this->_modified = true; parent::save($cache_item); }