lib/async/redis/methods/lists.rb in async-redis-0.3.3 vs lib/async/redis/methods/lists.rb in async-redis-0.3.4

- old
+ new

@@ -21,18 +21,18 @@ module Async module Redis module Methods module Lists - def blpop(ttl=0, *keys) - return call('BLPOP', *keys, ttl) + def blpop(*keys, timeout: 0) + return call('BLPOP', *keys, timeout) end - def brpop(ttl=0, *keys) - return call('BRPOP', *keys, ttl) + def brpop(*keys, timeout: 0) + return call('BRPOP', *keys, timeout) end - def brpoplpush(sorce, destination, timeout) + def brpoplpush(source, destination, timeout) return call('BRPOPLPUSH', source, destination, timeout) end def lindex(key, index) return call('LINDEX', key, index)