til/Development/redis.md

445 B

Redis

Docker:

docker run -d \
    -p 6379:6379 \
    --name redis \
    redis:alpine

redis-cli

redis-cli is included in:

Distribution Package
Archlinux redis
Ubuntu redis-server

Connect:

redis-cli -h localhost -p 6379

Commands

Get all keys:

KEYS *

Delete all keys:

FLUSHALL