コード例 #1
0
ファイル: Redis.php プロジェクト: OneataBogdan/lead_coriolan
 public function get($name, $cache_level = NULL)
 {
     $data = $this->r->hGet($this->_mapTags($name), $cache_level);
     if (!empty($data)) {
         if (!empty($data) && ($cache_level != Registry::cacheLevel('time') || $cache_level == Registry::cacheLevel('time') && $data['expiry'] > TIME)) {
             return array($data['data']);
         } else {
             // clean up the cache
             $this->r->del($this->_mapTags($name));
         }
     }
     return false;
 }