From a654c058578539217a48122722544c7651fd5b34 Mon Sep 17 00:00:00 2001 From: David Castro Date: Thu, 13 Feb 2025 17:39:24 -0800 Subject: [PATCH] Update lists.md The example showing that RPUSH and LPUSH are variadic commands is incorrectly returning data from the wrong list name. The list name should be bikes:repairs, but the current example uses LRANGE on mylist. Signed-off-by: David Castro --- topics/lists.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/topics/lists.md b/topics/lists.md index 2ab023c9..25ad7007 100644 --- a/topics/lists.md +++ b/topics/lists.md @@ -156,7 +156,7 @@ multiple elements into a list in a single call: 127.0.0.1:6379> RPUSH bikes:repairs bike:1 bike:2 bike:3 (integer) 3 127.0.0.1:6379> LPUSH bikes:repairs bike:important_bike bike:very_important_bike -127.0.0.1:6379> LRANGE mylist 0 -1 +127.0.0.1:6379> LRANGE bikes:repairs 0 -1 1) "bike:very_important_bike" 2) "bike:important_bike" 3) "bike:1"