芝麻web文件管理V1.00
编辑当前文件:/home/p/r/i/prismawe/www/resuamer/site/modules/cache/classes/kohana/cache/memcachetag.php
_memcache, 'tag_add')) { throw new Cache_Exception('Memcached-tags PHP plugin not present. Please see http://code.google.com/p/memcached-tags/ for more information'); } } /** * Set a value based on an id with tags * * @param string id * @param mixed data * @param integer lifetime [Optional] * @param array tags [Optional] * @return boolean */ public function set_with_tags($id, $data, $lifetime = NULL, array $tags = NULL) { $id = $this->_sanitize_id($id); $result = $this->set($id, $data, $lifetime); if ($result and $tags) { foreach ($tags as $tag) { $this->_memcache->tag_add($tag, $id); } } return $result; } /** * Delete cache entries based on a tag * * @param string tag * @return boolean */ public function delete_tag($tag) { return $this->_memcache->tag_delete($tag); } /** * Find cache entries based on a tag * * @param string tag * @return void * @throws Cache_Exception */ public function find($tag) { throw new Cache_Exception('Memcached-tags does not support finding by tag'); } }