Sha256: 2a0b8804f5cd7325c0e26fc96c6f9e2d4326bc986b52e22f95dc00075586949a

Contents?: true

Size: 396 Bytes

Versions: 15

Compression:

Stored size: 396 Bytes

Contents

# frozen_string_literal: true

require "guard_rail"
require "switchman/open4"
require "switchman/engine"

module Switchman
  def self.config
    # TODO: load from yaml
    @config ||= {}
  end

  def self.cache
    (@cache.respond_to?(:call) ? @cache.call : @cache) || ::Rails.cache
  end

  def self.cache=(cache)
    @cache = cache
  end

  class OrderOnMultiShardQuery < RuntimeError; end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
switchman-2.2.3 lib/switchman.rb
switchman-2.2.2 lib/switchman.rb
switchman-2.2.1 lib/switchman.rb
switchman-2.2.0 lib/switchman.rb
switchman-2.1.6 lib/switchman.rb
switchman-2.1.5 lib/switchman.rb
switchman-2.1.4 lib/switchman.rb
switchman-2.1.3 lib/switchman.rb
switchman-2.1.2 lib/switchman.rb
switchman-2.1.1 lib/switchman.rb
switchman-2.1.0 lib/switchman.rb
switchman-2.0.13 lib/switchman.rb
switchman-2.0.12 lib/switchman.rb
switchman-2.0.11 lib/switchman.rb
switchman-2.0.10 lib/switchman.rb