The Cache UI package for Laravel provides an interactive CLI command to list, search, and delete individual cache keys without requiring the entire cache to be purged. It supports multiple cache drivers, including Redis, File, and Database.

This package provides both a CLI interface and a programmatic way to find and remove cache keys. For example, here are some methods you can use to get all of the cache keys and remove one or multiple:
use Abr4xas\CacheUiLaravel\Facades\CacheUiLaravel; // Get all cache keys from default store$keys = CacheUiLaravel::getAllKeys(); // Get all cache keys from a specific store$redisKeys = CacheUiLaravel::getAllKeys('redis'); // Delete a specific key from default store$deleted = CacheUiLaravel::forgetKey('user_1_profile'); // Delete a key from a specific store$deleted = CacheUiLaravel::forgetKey('session_data', 'redis');
Features
- Interactive search: Search cache keys by typing text
- List all keys: View all available keys in your cache
- Selective deletion: Delete individual keys without affecting the rest of the cache
- Multiple drivers: Supports Redis, File and Database
💻 You can get started with this package and see the source code on GitHub: abr4xas/cache-ui-laravel