Method: Cachext::Configuration#initialize
- Defined in:
- lib/cachext/configuration.rb
#initialize ⇒ Configuration
Returns a new instance of Configuration.
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/cachext/configuration.rb', line 39 def initialize self.raise_errors = false self.default_errors = [ Faraday::Error::ConnectionFailed, Faraday::Error::TimeoutError, ] self.not_found_errors = [ Faraday::Error::ResourceNotFound, ] self.default_expires_in = 60 self.max_lock_wait = 5 self.debug = ENV['CACHEXT_DEBUG'] == "true" self.heartbeat_expires = 2 self.failure_threshold = 3 self.breaker_timeout = 60 @debug_mutex = Mutex.new end |