lib/redis/list.rb in redis-objects-0.4.1 vs lib/redis/list.rb in redis-objects-0.5.0

- old
+ new

@@ -71,10 +71,10 @@ # Delete the element(s) from the list that match name. If count is specified, # only the first-N (if positive) or last-N (if negative) will be removed. # Use .del to completely delete the entire key. # Redis: LREM def delete(name, count=0) - redis.lrem(key, count, name) # weird api + redis.lrem(key, count, to_redis(name)) # weird api end # Iterate through each member of the set. Redis::Objects mixes in Enumerable, # so you can also use familiar methods like +collect+, +detect+, and so forth. def each(&block)