class ActiveSupport::CachingKeyGenerator
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/active_support/key_generator.rbs class ActiveSupport::CachingKeyGenerator def generate_key: (*Array[String] args) -> String end
key_size
.
re-executing the key generation process when it’s called using the same salt
and
CachingKeyGenerator is a wrapper around KeyGenerator which allows users to avoid
def generate_key(*args)
Experimental RBS support (using type sampling data from the type_fusion
project).
def generate_key: (*( | Integer) args) -> String
This signature was generated using 3 samples from 1 application.
def generate_key(*args) @cache_keys[args.join("|")] ||= @key_generator.generate_key(*args) end
def initialize(key_generator)
def initialize(key_generator) @key_generator = key_generator @cache_keys = Concurrent::Map.new end