lib/redis_dedupe.rb in redis_dedupe-0.0.4 vs lib/redis_dedupe.rb in redis_dedupe-0.0.5

- old
+ new

@@ -15,12 +15,12 @@ @key = key @expires_in = expires_in end def check(member) - results = redis.pipelined do - redis.sadd(key, member) - redis.expire(key, expires_in) + results = redis.pipelined do |pipeline| + pipeline.sadd(key, member) + pipeline.expire(key, expires_in) end if results[0] yield end