A simple but powerful command-line interface for Redis, written in C++.
- Display all Redis keys with their types in a formatted table
- Search keys using patterns
- Get values of any Redis data type
- Special handling for hash type values with table formatting
- Delete keys
- View database statistics and server information
- Web interface for Redis management (port 8080)
CRDIS provides a web interface for managing Redis through your browser:
- Access the web interface at
http://localhost:8080 - RESTful API endpoints for Redis operations
- View and manage Redis data through a web browser
- Default port: 8080 (configurable)
keys- List all keystype <key>- Get type of a keysearch <pattern>- Search keys by patternget <key>- Get value of a keyhget <key> <field>- Get hash field valuedel <key>- Delete a keycount- Get total key countdbsize- Get database sizeinfo- Show server informationclear- Clear screenhelp- Show help messagequit- Exit program
- C++17 compiler
- CMake 3.10 or higher
- hiredis library
mkdir build
cd build
cmake ..
make./crdisBy default, it connects to Redis on localhost:6379.
# List all keys
> keys
+----------------+--------+
| Key | Type |
+----------------+--------+
| test_key | string |
| user:1 | hash |
| products | list |
+----------------+--------+
# Get hash field
> hget user:1 name
Field value: John Doe
# Show database info
> info
=== Server ===
redis_version: 6.2.6
redis_mode: standalone
os: Darwin 21.6.0 arm64
...MIT License
type mykey
search user:*
get mykey