cache = new $hander( $config[strtolower($cacheDriver)] ); } //读取缓存 public function get($key) { return $this->cache->get($key); } //设置缓存 public function set($key, $value, $expire = 1800) { return $this->cache->set($key, $value, $expire); } //更新缓存 public function replace($key, $value, $expire = 1800) { return $this->cache->replace($key, $value, $expire); } //删除 public function rm($key) { return $this->cache->rm($key); } //清空缓存 public function clear() { return $this->cache->clear(); } }