Sha256: d26cfb53630bbcd8903822a39997de5470e4efd8cf3c204abfb3865f94da6263

Contents?: true

Size: 497 Bytes

Versions: 3

Compression:

Stored size: 497 Bytes

Contents

require "gem_config"
require "redlock"
require "simple_cache_lock/client"
require "simple_cache_lock/version"

module SimpleCacheLock
  include GemConfig::Base

  class Error < StandardError; end

  with_configuration do
    has :redis_urls, classes: Array, default: []
    has :cache_store
    has :default_lock_timeout, classes: Integer, default: 10000
    has :default_wait_lock_timeout, classes: Integer, default: 1000
    has :default_wait_timeout, classes: Integer, default: 20000
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simple_cache_lock-0.1.5 lib/simple_cache_lock.rb
simple_cache_lock-0.1.4 lib/simple_cache_lock.rb
simple_cache_lock-0.1.3 lib/simple_cache_lock.rb