From 3ee26075c6ebe2c47d36ec53846e25b9c7ed51eb Mon Sep 17 00:00:00 2001 From: zeekling Date: Wed, 16 Feb 2022 22:36:15 +0800 Subject: [PATCH] add commands --- test/commands/notify-queue.txt | 9 +++++++++ test/commands/ttl.txt | 5 +++++ test/exec.sh | 6 ++++++ 3 files changed, 20 insertions(+) create mode 100644 test/commands/notify-queue.txt create mode 100644 test/commands/ttl.txt create mode 100755 test/exec.sh diff --git a/test/commands/notify-queue.txt b/test/commands/notify-queue.txt new file mode 100644 index 0000000..8a6bc24 --- /dev/null +++ b/test/commands/notify-queue.txt @@ -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 diff --git a/test/commands/ttl.txt b/test/commands/ttl.txt new file mode 100644 index 0000000..d968054 --- /dev/null +++ b/test/commands/ttl.txt @@ -0,0 +1,5 @@ +set codehole yoyo +expire codehole 600 +ttl codehole +set codehole yoyo +ttl codehole diff --git a/test/exec.sh b/test/exec.sh new file mode 100755 index 0000000..faffe64 --- /dev/null +++ b/test/exec.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +source ./exec_redis.sh + +exec "127.0.0.1" "6379" "$1" +