This method is only available on newer versions.
The first available version (v8.1.1) is shown here.
new_local_cache()
public
Set a new local cache.
# File activesupport/lib/active_support/cache/strategy/local_cache.rb, line 72
def new_local_cache
LocalCacheRegistry.set_cache_for(local_cache_key, LocalStore.new)
end