This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule RequestCache do | |
| @moduledoc """ | |
| Simple ETS-based cache. | |
| """ | |
| use GenServer | |
| @type t :: %{ttl: integer, invalidators: %{}} | |
| @type cache_key :: any | |
| @type cache_value :: any |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ::States = { AK: "Alaska", | |
| AL: "Alabama", | |
| AR: "Arkansas", | |
| AS: "American Samoa", | |
| AZ: "Arizona", | |
| CA: "California", | |
| CO: "Colorado", | |
| CT: "Connecticut", | |
| DC: "District of Columbia", | |
| DE: "Delaware", |