From 47bee1eb84b574f472e967a0cb6df199d1dd0f6f Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Thu, 6 Jul 2023 12:47:40 +0200 Subject: [PATCH] Encode MEMORY USAGE key using codec #2424 Previously, we represented the key as plain string without using RedisCodec. --- src/main/java/io/lettuce/core/RedisCommandBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/lettuce/core/RedisCommandBuilder.java b/src/main/java/io/lettuce/core/RedisCommandBuilder.java index c3c5fd1baa..8abd48fecb 100644 --- a/src/main/java/io/lettuce/core/RedisCommandBuilder.java +++ b/src/main/java/io/lettuce/core/RedisCommandBuilder.java @@ -1732,7 +1732,7 @@ Command ltrim(K key, long start, long stop) { } Command memoryUsage(K key) { - return createCommand(MEMORY, new IntegerOutput<>(codec), new CommandArgs<>(codec).add(USAGE).add(key.toString())); + return createCommand(MEMORY, new IntegerOutput<>(codec), new CommandArgs<>(codec).add(USAGE).addKey(key)); } Command> mget(K... keys) {