Sha256: ac0649d1673bd8e38e3cf107daf07108cc050782d7c388fd92424b97e4e58e04

Contents?: true

Size: 530 Bytes

Versions: 36

Compression:

Stored size: 530 Bytes

Contents

# frozen_string_literal: true

require 'singleton'

class LHS::Config
  include Singleton

  attr_accessor :request_cycle_cache_enabled, :request_cycle_cache, :trace

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

  def reset
    self.request_cycle_cache_enabled = nil
    self.trace = nil
    self.request_cycle_cache = nil
    initialize
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
lhs-21.2.4 lib/lhs/config.rb
lhs-21.2.3 lib/lhs/config.rb
lhs-21.2.3.pre.preload.pre.providers.pre.too.1 lib/lhs/config.rb
lhs-21.2.2 lib/lhs/config.rb
lhs-21.2.1 lib/lhs/config.rb
lhs-21.2.0 lib/lhs/config.rb
lhs-21.1.4 lib/lhs/config.rb
lhs-21.1.3 lib/lhs/config.rb
lhs-21.1.2 lib/lhs/config.rb
lhs-21.1.2.pre.keyfix.2 lib/lhs/config.rb
lhs-21.1.2.pre.keyfix.1 lib/lhs/config.rb
lhs-21.1.2.pre.fix.pre.cant.pre.add.pre.new.pre.key.pre.during.pre.iteration.1 lib/lhs/config.rb
lhs-21.1.1.pre.pre.fix.pre.cant.pre.add.pre.new.pre.key.pre.during.pre.iteration.1 lib/lhs/config.rb
lhs-21.1.0 lib/lhs/config.rb
lhs-21.0.0 lib/lhs/config.rb
lhs-20.1.4 lib/lhs/config.rb
lhs-20.1.3.pre.paginationfix.3 lib/lhs/config.rb
lhs-20.1.3.pre.paginationfix.2 lib/lhs/config.rb
lhs-20.1.3.pre.paginationfix.1 lib/lhs/config.rb
lhs-20.1.2 lib/lhs/config.rb