Skip to content

Commit ab5df24

Browse files
committed
Encode MEMORY USAGE key using codec #2424
Previously, we represented the key as plain string without using RedisCodec.
1 parent 3dbdbd9 commit ab5df24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/lettuce/core/RedisCommandBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1728,7 +1728,7 @@ Command<K, V, String> ltrim(K key, long start, long stop) {
17281728
}
17291729

17301730
Command<K, V, Long> memoryUsage(K key) {
1731-
return createCommand(MEMORY, new IntegerOutput<>(codec), new CommandArgs<>(codec).add(USAGE).add(key.toString()));
1731+
return createCommand(MEMORY, new IntegerOutput<>(codec), new CommandArgs<>(codec).add(USAGE).addKey(key));
17321732
}
17331733

17341734
Command<K, V, List<V>> mget(K... keys) {

0 commit comments

Comments
 (0)