Sha256: 580bb9d0f1e2c9b6d37c06950de08ef1e27cf21af4527d54a9d392f3204bf177
Contents?: true
Size: 621 Bytes
Versions: 34
Compression:
Stored size: 621 Bytes
Contents
module Workarea module Configuration module CacheStore extend self def load if Rails.env.test? Rails.application.config.cache_store = :null_store elsif !Rails.env.development? Rails.application.config.cache_store = :redis_store, Workarea::Configuration::Redis.cache.to_url require 'redis-rack-cache' Rails.application.config.action_dispatch.rack_cache = { metastore: Workarea::Configuration::Redis.cache.to_url, entitystore: Workarea::Configuration::Redis.cache.to_url } end end end end end
Version data entries
34 entries across 34 versions & 1 rubygems