Sha256: cc14d7cda8471676e5bae959fbb5b022bf9f1aa7b8a373488ef7f725bb68b442

Contents?: true

Size: 333 Bytes

Versions: 61

Compression:

Stored size: 333 Bytes

Contents

require 'singleton'

class LHS::Config
  include Singleton

  attr_accessor :request_cycle_cache_enabled, :request_cycle_cache

  def initialize
    self.request_cycle_cache_enabled ||= true
    if defined?(ActiveSupport::Cache::MemoryStore)
      self.request_cycle_cache ||= ActiveSupport::Cache::MemoryStore.new
    end
  end
end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
lhs-16.1.5 lib/lhs/config.rb
lhs-16.1.4 lib/lhs/config.rb
lhs-16.1.3 lib/lhs/config.rb
lhs-16.1.2 lib/lhs/config.rb
lhs-16.1.1 lib/lhs/config.rb
lhs-16.1.0 lib/lhs/config.rb
lhs-16.0.1 lib/lhs/config.rb
lhs-16.0.0 lib/lhs/config.rb
lhs-15.7.0 lib/lhs/config.rb
lhs-15.6.1 lib/lhs/config.rb
lhs-15.6.0 lib/lhs/config.rb
lhs-15.5.1 lib/lhs/config.rb
lhs-15.5.0 lib/lhs/config.rb
lhs-15.4.1 lib/lhs/config.rb
lhs-15.4.0 lib/lhs/config.rb
lhs-15.4.0.pre.hasone.1 lib/lhs/config.rb
lhs-15.3.3 lib/lhs/config.rb
lhs-15.3.3.pre.fixoptions.1 lib/lhs/config.rb
lhs-15.3.2 lib/lhs/config.rb
lhs-15.3.1 lib/lhs/config.rb