Caching Key Generator
CachingKeyGenerator is a wrapper around KeyGenerator which allows users to avoid re-executing the key generation process when it’s called using the same salt and key_size.
Methods
- G
- N
Class Public methods
new(key_generator) Link
Source: show
# File activesupport/lib/active_support/key_generator.rb, line 52 def initialize(key_generator) @key_generator = key_generator @cache_keys = Concurrent::Map.new end