src/Assistant.php
private function _removeCacheDatas($tag)
    {
        // 删除缓存的数据
        $this->manager->deleteMultiple($this->items[$tag]);

        $key = $this->normalizeTagForKey($tag);
        // 删除缓存键
        $this->manager->delete($key);
        // 删除数据库存储的键
        try {
            Entity::where('key', '=', $key)->delete();
        } catch (\Exception $e) {
            if ($this->manager->debug()) {
                throw $e;
            } else {
                $logger = $this->manager->logger();
                if ($logger) {
                    $logger->warning($e->getMessage(), ['tag' => $tag, 'key' => $key]);
                }
            }
        }

        return $this;
    }
private function _removeCacheDatas($tag)
    {
        // 删除缓存的数据
        $this->manager->deleteMultiple($this->items[$tag]);

        $key = $this->normalizeTagForKey($tag);
        // 删除缓存键
        $this->manager->delete($key);
        // 删除数据库存储的键
        try {
            Entity::where('key', '=', $key)->delete();
        } catch (\Exception $e) {
            if ($this->manager->debug()) {
                throw $e;
            } else {
                $logger = $this->manager->logger();
                if ($logger) {
                    $logger->warning($e->getMessage(), ['tag' => $tag, 'key' => $key]);
                }
            }
        }

        return $this;
    }
Flush the cache data.

@param string $tag 标签

@return static