simple redis addition

This commit is contained in:
talksik
2023-11-06 13:42:39 -08:00
parent 6afcd5ced5
commit 8aabc139ff
2 changed files with 13 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
version: '3'
tasks:
redis:
cmds:
- docker run --name my-redis -d -p 6379:6379 redis
Executable
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
for key in $(redis-cli -p 6379 keys \*);
do echo "Key : '$key'"
redis-cli -p 6379 GET $key;
done