作者 lackoxygen

add:forget

@@ -22,4 +22,9 @@ class Cache @@ -22,4 +22,9 @@ class Cache
22 { 22 {
23 return LaravelCache::has(self::PREFIX . $key); 23 return LaravelCache::has(self::PREFIX . $key);
24 } 24 }
  25 +
  26 + public static function forget(string $key): bool
  27 + {
  28 + return LaravelCache::has(self::PREFIX . $key);
  29 + }
25 } 30 }
@@ -81,4 +81,9 @@ class Session extends ServiceManager @@ -81,4 +81,9 @@ class Session extends ServiceManager
81 81
82 return $this->get($key); 82 return $this->get($key);
83 } 83 }
  84 +
  85 + public function forget(): bool
  86 + {
  87 + return Cache::forget($this->name);
  88 + }
84 } 89 }