lib/circuitbox.rb in circuitbox-0.10.4 vs lib/circuitbox.rb in circuitbox-0.11.0

- old
+ new

@@ -1,13 +1,15 @@ +require 'uri' require 'singleton' require 'active_support' require 'logger' require 'timeout' +require 'moneta' require 'circuitbox/version' require 'circuitbox/memcache_store' -require 'circuitbox/railtie' if defined?(Rails) +require 'circuitbox/railtie' if defined?(Rails) require 'circuitbox/circuit_breaker' require 'circuitbox/notifier' require 'circuitbox/errors/error' require 'circuitbox/errors/open_circuit_error' @@ -33,10 +35,10 @@ @@instance = nil @@configure = nil end def self.circuit_store - self.instance.circuit_store ||= ActiveSupport::Cache::MemoryStore.new + self.instance.circuit_store ||= Moneta.new(:Memory) end def self.circuit_store=(store) self.instance.circuit_store = store end