This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected function _set_item_in_memcache($type, $id, $obj) { | |
$mc_key = "cache_{$type}_{$id}"; | |
$this->cache->set($mc_key, json_encode($obj)); | |
} | |
protected function _populate_item_from_memcache($type, $id) { | |
$mc_key = "cache_{$type}_{$id}"; | |
$rv = $this->cache->get($mc_key); | |
if ($rv === false) return; | |
$this->_caches[$type][$id] = json_decode($rv, true); |
OlderNewer