getCacheClient()->keys($this->getPrefix() . $key . '*'); } /** * 模糊清除所有前缀的缓存 * @param $key */ public function removeByKey($key) { $list = $this->getCacheKeys($key); foreach($list as $item){ $this->getCacheClient()->del($item); } } }