feat(redis): add scheduled cleanup command for Redis keys and enhance cleanup logic

This commit is contained in:
Andras Bacsai
2025-05-07 22:09:25 +02:00
parent 64269cd7c9
commit 9d56d06352
2 changed files with 14 additions and 10 deletions

View File

@@ -51,6 +51,7 @@ class Kernel extends ConsoleKernel
}
// $this->scheduleInstance->job(new CleanupStaleMultiplexedConnections)->hourly();
$this->scheduleInstance->command('cleanup:redis')->everyTenMinutes();
if (isDev()) {
// Instance Jobs