main
Tran Hau 2020-02-24 23:04:30 +07:00
parent f884d01140
commit 74781794c7
1 changed files with 35 additions and 0 deletions

35
redis.md Normal file
View File

@ -0,0 +1,35 @@
# Redis
Assume you use Archlinux.
Read [Redis](https://wiki.archlinux.org/index.php/Redis).
Use docker:
```sh
docker run -d -p 6379:6379 --name redis redis:alpine
```
## redis-cli
Connect:
```sh
redis-cli -h localhost -p 6379
```
### After connect
Get all keys:
```sh
KEYS *
```
Delete all keys:
```sh
FLUSHALL
```
Read [Commands](https://redis.io/commands).