Sha256: d43a67d13e08f62c658b6e76406539719a864081ccd43ae1879f144ac9b7ae91

Contents?: true

Size: 613 Bytes

Versions: 1

Compression:

Stored size: 613 Bytes

Contents

# frozen_string_literal: true

require 'active_support'
require 'redis'
require 'redis-activesupport'

require 'redis_set_store/version'
require 'active_support/cache/redis_set_store'
require 'redis_set_store/railtie' if defined? Rails

# A Rails cache implementation that is backed by redis and uses sets to track
# keys for rapid expiration of large numbers of keys.
module RedisSetStore
  mattr_accessor :logger, :cache
end

unless defined? Rails
  RedisSetStore.logger = ActiveSupport::TaggedLogging.new(Logger.new($stdout))
  RedisSetStore.cache  = ActiveSupport::Cache::RedisSetStore.new(/\A[^:]+:\d+/)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redis_set_store-1.0.0 lib/redis_set_store.rb