Pow.Store.Backend.EtsCache (Pow v1.0.25) 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".

  • :writes - set to :async to do asynchronous writes. Defauts to :sync.

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.

Specs