From 8c1946ec569f4ac5da092ec7f283eb3a9c27760a Mon Sep 17 00:00:00 2001 From: xucong <850806214@qq.com> Date: Tue, 13 May 2025 10:43:25 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=8F=90=E4=BA=A4=E7=BC=BA=E5=A4=B1=E7=9A=84?= =?UTF-8?q?=E4=B8=9C=E8=A5=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/cache/CacheBase.php | 2 +- vendor/topthink/framework/src/think/facade/Cache.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/common/cache/CacheBase.php b/app/common/cache/CacheBase.php index fbddb95..614699f 100644 --- a/app/common/cache/CacheBase.php +++ b/app/common/cache/CacheBase.php @@ -115,7 +115,7 @@ abstract class CacheBase protected function cacheRm($name) { - return Cache::rm($name); + return Cache::delete($name); } protected function cacheGet($name, $default = false) diff --git a/vendor/topthink/framework/src/think/facade/Cache.php b/vendor/topthink/framework/src/think/facade/Cache.php index 4924a5e..84e52a9 100644 --- a/vendor/topthink/framework/src/think/facade/Cache.php +++ b/vendor/topthink/framework/src/think/facade/Cache.php @@ -28,7 +28,6 @@ use think\Facade; * @method static mixed get(string $key, mixed $default = null) 读取缓存 * @method static bool set(string $key, mixed $value, int|\DateInterval|\DateTimeInterface $ttl = null) 写入缓存 * @method static bool delete(string $key) 删除缓存 - * @method static bool rm(string $name) static 删除缓存 * @method static iterable getMultiple(iterable $keys, mixed $default = null) 读取缓存 * @method static bool setMultiple(iterable $values, null|int|\DateInterval|\DateTimeInterface $ttl = null) 写入缓存 * @method static bool deleteMultiple(iterable $keys) 删除缓存