add commands

This commit is contained in:
LingZhaoHui 2022-02-16 22:36:15 +08:00
parent 238e1aec12
commit 3ee26075c6
3 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,9 @@
rpush notify-queue apple banana pear
llen notify-queue
lpop notify-queue
llen notify-queue
lpop notify-queue
llen notify-queue
lpop notify-queue
llen notify-queue
lpop notify-queue

5
test/commands/ttl.txt Normal file
View File

@ -0,0 +1,5 @@
set codehole yoyo
expire codehole 600
ttl codehole
set codehole yoyo
ttl codehole

6
test/exec.sh Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
source ./exec_redis.sh
exec "127.0.0.1" "6379" "$1"