Skip to content

Commit f966640

Browse files
committed
wip
1 parent 2055177 commit f966640

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
],
2020
"require": {
2121
"php": "^8.3",
22+
"illuminate/cache": "^11.0||^12.0",
2223
"illuminate/contracts": "^11.0||^12.0",
24+
"illuminate/filesystem": "^11.0||^12.0",
2325
"illuminate/http": "^11.0||^12.0",
2426
"illuminate/support": "^11.0||^12.0",
25-
"illuminate/filesystem": "^11.0||^12.0",
26-
"illuminate/cache": "^11.0||^12.0",
2727
"monolog/monolog": "^3.6"
2828
},
2929
"require-dev": {
@@ -35,8 +35,8 @@
3535
"pestphp/pest-plugin-arch": "^3.0",
3636
"pestphp/pest-plugin-laravel": "^3.0",
3737
"phpstan/extension-installer": "^1.3",
38-
"phpstan/phpstan-deprecation-rules": "^1.1",
39-
"phpstan/phpstan-phpunit": "^1.3"
38+
"phpstan/phpstan-deprecation-rules": "^2.0",
39+
"phpstan/phpstan-phpunit": "^2.0"
4040
},
4141
"autoload": {
4242
"psr-4": {

src/Deduplication/CacheManager.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,8 @@ public function add(string $signature): void
4545
*/
4646
public function clear(): void
4747
{
48-
// For Redis/Memcached stores that support tag-like operations
49-
if (method_exists($this->cache->getStore(), 'flush')) {
50-
$this->cache->getStore()->flush();
51-
52-
return;
53-
}
54-
55-
// For other stores, we'll have to rely on TTL cleanup
56-
// You might want to implement a more specific cleanup strategy
57-
// based on your cache store if needed
48+
// All Laravel cache stores implement the flush method
49+
$this->cache->getStore()->flush();
5850
}
5951

6052
private function composeKey(string $signature): string

0 commit comments

Comments
 (0)