123456789_123456789_123456789_123456789_123456789_

Module: ActiveSupport::Cache::Strategy::LocalCache::LocalCacheRegistry

Do not use. This module is for internal use only.
Relationships & Source Files
Defined in: activesupport/lib/active_support/cache/strategy/local_cache.rb

Overview

::Class for storing and registering the local caches.

Instance Method Summary

Instance Method Details

#cache_for(local_cache_key)

[ GitHub ]

  
# File 'activesupport/lib/active_support/cache/strategy/local_cache.rb', line 20

def cache_for(local_cache_key)
  registry = ActiveSupport::IsolatedExecutionState[:active_support_local_cache_registry] ||= {}
  registry[local_cache_key]
end

#set_cache_for(local_cache_key, value)

[ GitHub ]

  
# 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