lib/idempo/redis_backend.rb in idempo-0.1.3 vs lib/idempo/redis_backend.rb in idempo-0.2.0

- old
+ new

@@ -62,10 +62,10 @@ def with yield redis end end - def initialize(redis_or_connection_pool) + def initialize(redis_or_connection_pool = Redis.new) require 'redis' require 'securerandom' @redis_pool = redis_or_connection_pool.respond_to?(:with) ? redis_or_connection_pool : NullPool.new(redis_or_connection_pool) end