ex_no_cache v0.1.0 ExNoCache.Cache.GenServer View Source
A cache storage using GenServer
as a backend.
Example
The storage provides two function get/1
and store/2
:
To store an etag for any path using store/2
:
ExNoCache.Cache.GenServer.store("/stair/way/to/heaven", "etag")
:ok
Then retrieve it back using get/1
:
ExNoCache.Cache.GenServer.get("/stair/way/to/heaven")
"etag"
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Link to this section Types
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.