kubiyabot avatar

redis

Redis CLI client for cache and data store operations running inside a Docker container

by kubiyabot|Open Source

Redis Skill

Redis CLI client for cache and data store operations.

Usage

# Connect to Redis
skill run redis -- -h localhost

# Set a key
skill run redis -- -h localhost SET mykey "myvalue"

# Get a key
skill run redis -- -h localhost GET mykey

# List all keys
skill run redis -- -h localhost KEYS "*"

# Monitor commands
skill run redis -- -h localhost MONITOR

# Get server info
skill run redis -- -h localhost INFO

Configuration

[skills.redis]
source = "docker:redis:7-alpine"
runtime = "docker"
description = "Redis CLI client"

[skills.redis.docker]
image = "redis:7-alpine"
entrypoint = "redis-cli"
network = "bridge"
memory = "128m"
rm = true

Security

  • Network: bridge - Required for Redis connections
  • Memory: 128MB limit
  • Authentication: Use -a flag or REDISCLI_AUTH env var

Environment Variables

VariableDescription
REDISCLI_AUTHRedis password

Common Operations

OperationCommand
Connect-h host -p port
Authenticate-a password
Set keySET key value
Get keyGET key
Delete keyDEL key
List keysKEYS pattern
Set expiryEXPIRE key seconds
TTLTTL key
Hash setHSET hash field value
Hash getHGET hash field
List pushLPUSH list value
List rangeLRANGE list 0 -1
Pub/SubPUBLISH channel message
MonitorMONITOR
InfoINFO
Flush DBFLUSHDB

Docker Image

  • Image: redis:7-alpine
  • Size: ~30MB
  • Redis: 7.x
  • Includes: redis-cli, redis-benchmark