AwsEncryptionSdk.Cache.LocalCache (AWS Encryption SDK v0.7.0)
View SourceETS-based local implementation of the Cryptographic Materials Cache.
This cache stores materials in an ETS table owned by a GenServer process. Multiple Caching CMMs can share the same LocalCache instance.
Example
{:ok, cache} = LocalCache.start_link([])
LocalCache.put_cache_entry(cache, cache_id, entry)
{:ok, entry} = LocalCache.get_cache_entry(cache, cache_id)Options
:name- Optional registered name for the cache process
Summary
Functions
Returns a specification to start this module under a supervisor.
Starts a new LocalCache process.
Types
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec start_link(keyword()) :: GenServer.on_start()
Starts a new LocalCache process.
Options
:name- Optional registered name