Skip to content

Redis Inspector ​

Browse Redis keys, view values by type, manage keys, and monitor server status.

Features ​

FeatureDescription
PingTest Redis server connection
Server infoFull INFO output (memory, clients, stats, etc.)
DB sizeNumber of keys in the current database
Key browserBrowse keys with pattern matching via SCAN
Value viewerType-aware display (string, list, set, zset, hash, stream)
DeleteRemove individual keys
Flush DBClear all keys in the current database

Key Browser ​

Browse keys using glob patterns (default: *). Uses SCAN for safe iteration (no blocking). Supports pagination with cursor and limit.

Type-Aware Value Display ​

The inspector automatically detects the Redis data type and displays values appropriately:

  • String — raw value
  • List — ordered elements
  • Set — unique members
  • Sorted Set — members with scores
  • Hash — field-value pairs
  • Stream — stream entries

API Endpoints ​

MethodPathDescription
GET/inspect/api/redis/pingTest connection
GET/inspect/api/redis/info?section=memoryServer info (optional section filter)
GET/inspect/api/redis/db-sizeKey count
GET/inspect/api/redis/keys?pattern=user:*&limit=100&cursor=0Browse keys
GET/inspect/api/redis/get?key=user:1Get value (type-aware) with TTL
DELETE/inspect/api/redis/delete?key=user:1Delete a key
POST/inspect/api/redis/flush-dbFlush current database

Requirements ​

Requires the phpredis extension (\Redis class) registered in the DI container.

WARNING

Flush DB is destructive — it removes all keys in the current database. Use with extreme care.

Released under the MIT License.