View Source Pow.Store.Backend.EtsCache (Pow v1.0.38)

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. Defaults to :sync.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.