Redis Manager
super-admin-org/redis-manager browses the keys of your Redis connections, shows and edits strings, lists, sets, sorted sets and hashes, sets TTLs, deletes keys, and has a console for Redis commands.
| Package | super-admin-org/redis-manager |
| Admin URLs | /admin/redis (keys), /admin/redis/console |
| Menu | Redis manager |
| Permission | ext.redis-manager (path /redis*) |
Installation
composer require super-admin-org/redis-manager
php artisan admin:import redis-manager
From release 2.0 it works with both clients Laravel supports: phpredis (the default, needs the PHP redis extension) and predis (composer require predis/predis, REDIS_CLIENT=predis). Releases 1.x work with predis only.
Using it
- Connections (left): every named connection under
database.redisinconfig/database.php(passwords are masked), with server information (version, memory, clients, keys per database). - Keys: search with a pattern (
user:*) and see each key's type and TTL, one page at a time (Next page). Click a key to edit it; Create makes a key of a chosen type; tick keys and Delete to remove them. - Console: type a Redis command (
GET user:1,SET greeting "hello world") and press Enter. Commands that can wipe or reconfigure the server (FLUSHALL,FLUSHDB,CONFIG,SHUTDOWN,KEYS,SCRIPT,ACL, ...) are refused.
The key prefix from database.redis.options.prefix is added and removed automatically.
Configuration
'extensions' => [
'redis-manager' => [
'read_only' => false, // true: browse only; the console accepts read commands only
'scan_count' => 50, // keys per page
// 'disabled_commands' => [...], // replaces the list of refused console commands
],
],
Even read-only, the panel shows every value stored in Redis (sessions, cache, queues). Grant ext.redis-manager only to people allowed to see that data, and consider read_only on production.
Compatibility
| Laravel | PHP | Redis client | State |
|---|---|---|---|
| 8 – 13 | 8.0+ | phpredis | Works from 2.0. |
| 8 – 13 | 8.0+ | predis 1.x – 3.x | Works. |
Redis Cluster connections (database.redis.clusters) are not listed.
Troubleshooting
When Redis cannot be reached, the page explains why instead of showing an error page (2.0+).
| Message | Fix |
|---|---|
Class "Redis" not found | The connection uses phpredis but the PHP extension is missing. Install it, or set REDIS_CLIENT=predis and composer require predis/predis. |
Connection refused | Redis is not running or REDIS_HOST / REDIS_PORT / REDIS_PASSWORD are wrong. |