diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index e3cf6ee..4b80de0 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -64,3 +64,4 @@ d0097bd14bf964bf4c283d07432ca52bfefa6391 430e41cb40dcd692360456fdd390c898bba8bd97 529667d80354f37d222563c9b37cff8b2e9cc3e5 5c2330998a6353dae2cc267b6deeef5e5d7a8c63 +843702b4b18a3f73efeaefb9e019ccb21f12f042 diff --git a/src/Objects/Support/StaticCache.php b/src/Objects/Support/StaticCache.php index d1a1eef..955fc5a 100644 --- a/src/Objects/Support/StaticCache.php +++ b/src/Objects/Support/StaticCache.php @@ -67,6 +67,11 @@ public static function flush(BackedEnum|string|null $partition = null): void } } + public static function purge(): void + { + self::$cache[static::class] = []; + } + public static function remember(BackedEnum|string $key, Closure $value, BackedEnum|string $partition = "default"): mixed { if (self::disabled()) {