summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Fankhauser hiddenalpha.ch2024-03-28 16:04:43 +0100
committerAndreas Fankhauser hiddenalpha.ch2024-03-28 16:04:43 +0100
commitcec0b20ac371fdb9e1293d425a3f8f193391427c (patch)
tree2d995b319e4ecbacbb2dd0f45c9bdfc533a66dcc
parent9bbe320028ec4fa15824c34fa1ab44690663b492 (diff)
downloadUnspecifiedGarbage-cec0b20ac371fdb9e1293d425a3f8f193391427c.zip
UnspecifiedGarbage-cec0b20ac371fdb9e1293d425a3f8f193391427c.tar.gz
Migrate redis doc
-rw-r--r--doc/note/redis/redis.txt31
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/note/redis/redis.txt b/doc/note/redis/redis.txt
new file mode 100644
index 0000000..51bf541
--- /dev/null
+++ b/doc/note/redis/redis.txt
@@ -0,0 +1,31 @@
+
+Redis
+================
+
+
+## Run redis commands from cli
+
+redis-cli -a ***** SCAN 0
+
+
+## Example commands
+
+SCAN 0 COUNT 42
+TYPE key
+GET redisques:queues:vehicleoperation-events-for-vehicle-9942
+LRANGE key start stop
+LRANGE key 1 1 (get head)
+LRANGE key -1 -1 (get tail)
+
+
+## List all keys (WARN: do NOT in production!)
+
+KEYS *:part:inside-the:key:*
+KEYS redisques:queues:vehicleoperation-events-for-vehicle-*
+
+
+## Delete by pattern
+
+redis-cli --scan --pattern schedulers:* | xargs redis-cli del
+
+