Skip to content

Commit

Permalink
Chore: readme wording
Browse files Browse the repository at this point in the history
  • Loading branch information
mindreframer committed Sep 6, 2024
1 parent 9112090 commit 7416624
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ Generic cache for Elixir. It uses MFA tuples as keys, so you can cache any funct

By relying on `gen_statem`, it is able to prevent duplicate work on concurrent requests on the same key, while keeping the API simple.

The generation for the cache value is done in a separate process, so the GenServer loop is never blocked. Also it is possible to generate multiple diffeent expensive values in parallel, with all the callers waiting for the result. This happens transparently to the caller.
The generation of the cache value is done in a separate process, so the main GenServer loop is never blocked. Also it is possible to generate multiple different expensive values in parallel, with all the callers waiting for the result. This happens transparently to the caller.

All thanks to the awesome [gen_statem](https://www.erlang.org/doc/apps/stdlib/gen_statem.html) module.


## Usage
Expand Down

0 comments on commit 7416624

Please sign in to comment.