Module: AnyCache::Patches::DalliStore Private
- Defined in:
- lib/any_cache/patches/dalli_store.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Modules: ActiveSupportFetchWithKey
Class Method Summary collapse
- .enable! ⇒ void private
Class Method Details
.enable! ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
11 12 13 14 15 16 |
# File 'lib/any_cache/patches/dalli_store.rb', line 11 def enable! defined?(::Dalli) && defined?(::ActiveSupport::Cache::DalliStore) && Gem::Version.new(::Dalli::VERSION) <= Gem::Version.new('2.7.8') && ::ActiveSupport::Cache::DalliStore.prepend(ActiveSupportFetchWithKey) end |