summaryrefslogtreecommitdiff
path: root/shell_scripts/useful_commands.sh
diff options
context:
space:
mode:
Diffstat (limited to 'shell_scripts/useful_commands.sh')
-rw-r--r--shell_scripts/useful_commands.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/shell_scripts/useful_commands.sh b/shell_scripts/useful_commands.sh
index 8ff604e2..4b46ad2c 100644
--- a/shell_scripts/useful_commands.sh
+++ b/shell_scripts/useful_commands.sh
@@ -17,3 +17,7 @@ redis-cli -h localhost -p 6379
XRANGE postgres_topic - +
XTRIM postgres_topic MAXLEN 0
# https://codesignal.com/learn/courses/mastering-redis-for-high-performance-applications-with-java-and-jedis-1/lessons/redis-streams-with-java
+#
+# Creating a group for consumers to read from stream
+XGROUP CREATE mystream mygroup 0
+