Skip to content

Commit 5aea626

Browse files
mp911dechristophstrobl
authored andcommitted
DATAREDIS-1139 - Fix command constants.
Deprecate constants with typos. Fix mode of ZREMRANGEBYSCORE. Original Pull Request: #528
1 parent 15259fd commit 5aea626

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/org/springframework/data/redis/core/RedisCommand.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ public enum RedisCommand {
140140
QUIT("rw", 0, 0), //
141141
// -- R
142142
RANDOMKEY("r", 0, 0), //
143+
144+
@Deprecated
143145
RANAME("w", 2, 2), //
146+
RENAME("w", 2, 2), //
144147
RENAMENX("w", 2, 2), //
145148
RESTORE("w", 3, 3), //
146149
RPOP("rw", 1, 1), //
@@ -200,7 +203,7 @@ public enum RedisCommand {
200203
ZRANK("r", 2, 2), //
201204
ZREM("rw", 2), //
202205
ZREMRANGEBYRANK("rw", 3, 3), //
203-
ZREMRANGEBYSCORE("rm", 3, 3), //
206+
ZREMRANGEBYSCORE("rw", 3, 3), //
204207
ZREVRANGE("r", 3), //
205208
ZREVRANGEBYSCORE("r", 3), //
206209
ZREVRANK("r", 2, 2), //

0 commit comments

Comments
 (0)