Method: ActiveSupport::Cache::Strategy::LocalCache::LocalCacheRegistry#set_cache_for
- Defined in:
- activesupport/lib/active_support/cache/strategy/local_cache.rb
#set_cache_for(local_cache_key, value) ⇒ Object
25 26 27 28 |
# File 'activesupport/lib/active_support/cache/strategy/local_cache.rb', line 25 def set_cache_for(local_cache_key, value) registry = ActiveSupport::IsolatedExecutionState[:active_support_local_cache_registry] ||= {} registry[local_cache_key] = value end |