lib/protocol/redis/methods/lists.rb in protocol-redis-0.3.0 vs lib/protocol/redis/methods/lists.rb in protocol-redis-0.3.1
- old
+ new
@@ -124,10 +124,10 @@
# @see https://redis.io/commands/lrem
# @param key [Key]
# @param count [Integer]
# @param element [String]
def lrem(key, count, value)
- return call('LREM', key, count)
+ return call('LREM', key, count, value)
end
# Set the value of an element in a list by its index. O(N) where N is the length of the list. Setting either the first or the last element of the list is O(1).
# @see https://redis.io/commands/lset
# @param key [Key]