Skill flagged — review recommended

ClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.

redis-tools

v1.0.0

Lookup Redis commands by category, test Redis server connections, and monitor database key counts and memory usage, with offline cheatsheet support.

0· 111· 1 versions· 0 current· 0 all-time· Updated 8h ago· MIT-0
bybytesagain4@xueyetianya

Install

openclaw skills install redis-tools

redis

Redis Command Reference & Connection Tool — Instantly look up Redis commands, test your connection, and monitor key statistics. Works offline too — shows the full cheatsheet even without a Redis instance.

Commands

CommandDescriptionExample
cheatsheetDisplay Redis command reference by categorycheatsheet / cheatsheet string
testTest a Redis connection and show server infotest / test redis://localhost:6379
monitorShow key count and memory stats per DBmonitor / monitor localhost 6379

Usage

bash script.sh cheatsheet [category]
bash script.sh test [host] [port] [password]
bash script.sh monitor [host] [port] [password]

Categories for cheatsheet

CategoryCommands Covered
stringSET, GET, MSET, INCR, APPEND, STRLEN, SETNX…
listLPUSH, RPUSH, LRANGE, LLEN, LPOP, BRPOP…
hashHSET, HGET, HMGET, HGETALL, HDEL, HKEYS…
setSADD, SMEMBERS, SISMEMBER, SUNION, SINTER…
zsetZADD, ZRANGE, ZRANK, ZSCORE, ZREM, ZCOUNT…
keyDEL, EXISTS, EXPIRE, TTL, RENAME, TYPE, SCAN…
serverINFO, DBSIZE, CONFIG GET, FLUSHDB, DEBUG…
scriptingEVAL, EVALSHA, SCRIPT LOAD/EXISTS/FLUSH

Requirements

  • bash >= 4.0
  • redis-cli (optional — required only for test and monitor commands; offline mode activates automatically if not found)

Install Redis CLI

# Debian/Ubuntu
sudo apt install redis-tools

# macOS
brew install redis

# Alpine
apk add redis

Examples

$ bash script.sh cheatsheet string

🔴 Redis Cheatsheet — Strings
─────────────────────────────────────────────
SET key value [EX seconds] [PX ms] [NX|XX]
  Set key to value. Options: EX (expire secs), NX (only if not exists)
  Example: SET user:1:name "Alice" EX 3600

GET key
  Get the value of a key. Returns nil if not exists.
  Example: GET user:1:name

MSET key value [key value ...]
  Set multiple keys atomically.
  Example: MSET k1 v1 k2 v2 k3 v3
...
$ bash script.sh test localhost 6379

🔴 Redis Connection Test
─────────────────────────────────────────────
Host     : localhost
Port     : 6379
Status   : ✅ CONNECTED

Server Info:
  redis_version  : 7.2.3
  uptime_days    : 4
  connected_clients: 3
  used_memory    : 1.23M
  maxmemory      : 0 (unlimited)
  role           : master
  aof_enabled    : 0
$ bash script.sh monitor

🔴 Redis Key Monitor
─────────────────────────────────────────────
Host     : localhost:6379

DB   Keys   Avg TTL
────────────────────
db0  1247   —
db1  89     —

Total keys : 1336
Memory     : 4.56M

Version tags

latestvk970tqpd1rqqnq2fsaypsh6kdd83v12j