Skip to content

Commit

Permalink
Encode MEMORY USAGE key using codec #2424
Browse files Browse the repository at this point in the history
Previously, we represented the key as plain string without using RedisCodec.
  • Loading branch information
mp911de committed Jul 6, 2023
1 parent 3dbdbd9 commit ab5df24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/lettuce/core/RedisCommandBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -1728,7 +1728,7 @@ Command<K, V, String> ltrim(K key, long start, long stop) {
}

Command<K, V, Long> 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<K, V, List<V>> mget(K... keys) {
Expand Down

0 comments on commit ab5df24

Please sign in to comment.