Sorted TTL List

Travis Build StatusWindows TestsCoveralls Coverage

Hex.pm VersionDeps StatusHex.pm

A ets based list with an expire feature. So you can push keys to the list that will expire after a gven time. An example use case could be a user online list with additional data.

Installation

If available in Hex, the package can be installed as:

  1. Add sorted_ttl_list to your list of dependencies in mix.exs:

    def deps do
      [{:sorted_ttl_list, "~> 1.0.0"}]
    end
  2. Ensure sorted_ttl_list is started before your application:

    def application do
      [applications: [:sorted_ttl_list]]
    end

Config

You can set the configuration within your config.exs or just use the environment vars.