SkillHub

redis

v3.0.2

Connect, query, and monitor Redis instances. Use when checking key health, validating data types, generating backups, formatting results, linting configs.

Sourced from ClawHub, Authored by bytesagain

Installation

Please help me install the skill `redis` from SkillHub official store. npx skills add bytesagain/redis

redis

Connect, query, and monitor Redis instances. Use when checking key health, validating data types, generating backups, formatting results, linting configs.

Commands

REDIS_HOST

(default: 127.0.0.1)

scripts/script.sh REDIS_HOST

REDIS_PORT

(default: 6379)

scripts/script.sh REDIS_PORT

REDIS_DB

(default: 0)

scripts/script.sh REDIS_DB

ping

Test Redis connectivity and latency

scripts/script.sh ping

info

Server info (sections: server, clients, memory, stats, etc.)

scripts/script.sh info [section]

get

Get value (auto-detects type: string, list, set, hash, zset)

scripts/script.sh get <key>

set

Set a key-value pair (extra opts passed to Redis SET)

scripts/script.sh set <key> <val> [opts]

del

Delete one or more keys

scripts/script.sh del <key> [key...]

keys

List keys matching pattern (default: *)

scripts/script.sh keys [pattern]

monitor

Live stream of all Redis commands

scripts/script.sh monitor

stats

Comprehensive server statistics

scripts/script.sh stats

flush-confirm

Flush current database (with confirmation)

scripts/script.sh flush-confirm

export

Export all keys to a file

scripts/script.sh export <file>

import

Import keys from an export file

scripts/script.sh import <file>

ttl

Check TTL of a key

scripts/script.sh ttl <key>

type

Check type of a key

scripts/script.sh type <key>

dbsize

Show number of keys

scripts/script.sh dbsize

slowlog

Show slow query log (default: 10 entries)

scripts/script.sh slowlog [count]

Requirements

  • redis-cli

Powered by BytesAgain | bytesagain.com | [email protected]

Configuration

Variable Required Description
REDIS_HOST No Redis host (default: 127.0.0.1)
REDIS_PORT No Redis port (default: 6379)
REDIS_DB No Redis database number (default: 0)
REDIS_PASSWORD No Redis authentication password

Data Storage

Connection history and command logs are saved to ~/.local/share/redis-helper/.

Security

Redis credentials are passed via environment variables. The password is used in redis-cli command-line arguments as required by the redis-cli interface.