View Source ExKits.Storage.ETS (ex_kits v0.2.7)

ExKits.Cache.Storage implementation by ETS

Summary

Functions

Returns a specification to start this module under a supervisor.

create a new ets based storage. 2 options are supported

Types

@type t() :: %ExKits.Storage.ETS{interval: pos_integer(), name: atom()}

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

create a new ets based storage. 2 options are supported:

  • name: ets name, default to :ets_cache
  • interval: interval to clean expired keys, default to 60_000 (1 minute)