Skip to content

Commit 5dd0079

Browse files
authored
Merge pull request #226 from dnzprmksz/patch-1
Update LPUSHX and RPUSH Comments in ListOperations
2 parents 1fc284d + 4455cc1 commit 5dd0079

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/com/redis/ListOperations.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ trait ListOperations { self: Redis =>
1010
send("LPUSH", List(key, value) ::: values.toList)(asLong)
1111

1212
// LPUSHX (Variadic: >= 2.4)
13-
// add value to the tail of the list stored at key
13+
// add value to the head of the list stored at key
1414
def lpushx(key: Any, value: Any)(implicit format: Format): Option[Long] =
1515
send("LPUSHX", List(key, value))(asLong)
1616

1717
// RPUSH (Variadic: >= 2.4)
18-
// add values to the head of the list stored at key
18+
// add values to the tail of the list stored at key
1919
def rpush(key: Any, value: Any, values: Any*)(implicit format: Format): Option[Long] =
2020
send("RPUSH", List(key, value) ::: values.toList)(asLong)
2121

0 commit comments

Comments
 (0)