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) 删除缓存