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.
10 11 12 13 14 15 |
# File 'lib/lhs/config.rb', line 10 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.
8 9 10 |
# File 'lib/lhs/config.rb', line 8 def request_cycle_cache @request_cycle_cache end |
#request_cycle_cache_enabled ⇒ Object
Returns the value of attribute request_cycle_cache_enabled.
8 9 10 |
# File 'lib/lhs/config.rb', line 8 def request_cycle_cache_enabled @request_cycle_cache_enabled end |