Esempio n. 1
0
 public function __construct(array $config = null, $id = null)
 {
     if (!isset($config['cache'])) {
         $config['cache'] = 'default';
     }
     $this->cache = \Cache\Cache::ins($config['cache']);
     parent::__construct($config, $id);
 }
Esempio n. 2
0
 /**
  * 清除缓存,按需重载
  *
  * @param string $cachename
  * @return boolean
  */
 protected function removeCache($cachename)
 {
     return Cache::ins()->delete($cachename);
 }