Pow v1.0.16 Pow.Store.Backend.EtsCache View Source
GenServer based key value ETS cache store with auto expiration.
This module is not recommended for production, but mostly used as an example for how to build a cache. All data is stored in-memory, so cached values are not shared between machines.
Configuration options
:ttl
- integer value in milliseconds for ttl of records. If this value is not provided, or is set to nil, the records will never expire.:namespace
- value to use for namespacing keys. Defaults to "cache".
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Link to this function
start_link(config)
View Sourcestart_link(Pow.Config.t()) :: GenServer.on_start()