Class: LHS::Config
Instance Attribute Summary collapse
-
#request_cycle_cache ⇒ Object
Returns the value of attribute request_cycle_cache.
-
#request_cycle_cache_enabled ⇒ Object
Returns the value of attribute request_cycle_cache_enabled.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
8 9 10 11 12 13 |
# File 'lib/lhs/config.rb', line 8 def initialize self.request_cycle_cache_enabled ||= true if defined?(ActiveSupport::Cache::MemoryStore) self.request_cycle_cache ||= ActiveSupport::Cache::MemoryStore.new end end |
Instance Attribute Details
#request_cycle_cache ⇒ Object
Returns the value of attribute request_cycle_cache.
6 7 8 |
# File 'lib/lhs/config.rb', line 6 def request_cycle_cache @request_cycle_cache end |
#request_cycle_cache_enabled ⇒ Object
Returns the value of attribute request_cycle_cache_enabled.
6 7 8 |
# File 'lib/lhs/config.rb', line 6 def request_cycle_cache_enabled @request_cycle_cache_enabled end |