instance method new_local_cache

Ruby on Rails edge

Since v8.1.3.1

Available in: v8.1.3.1 edge

Signature

new_local_cache()

Set a new local cache.

Source
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 80
        def new_local_cache
          LocalCacheRegistry.set_cache_for(local_cache_key, LocalStore.new)
        end

Defined in activesupport/lib/active_support/cache/strategy/local_cache.rb line 80 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::Cache::Strategy::LocalCache

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close