til/Development/redis.md

478 B

Redis

Assume you use Archlinux.

Read Redis.

Start/enable service:

systemctl start redis.service

systemctl enable redis.service

Otherwise use docker:

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

redis-cli

Connect:

redis-cli -h localhost -p 6379

After connect

Get all keys:

KEYS *

Delete all keys:

FLUSHALL

Read Commands.