Докинул к 719eb1403f
This commit is contained in:
15
app/Services/Cache/CacheInvalidator.php
Normal file
15
app/Services/Cache/CacheInvalidator.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services\Cache;
|
||||
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
|
||||
class CacheInvalidator
|
||||
{
|
||||
public function forget(array $keys): void
|
||||
{
|
||||
foreach ($keys as $key) {
|
||||
Cache::forget($key);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user