ReqPollerCache (pollex v0.1.0)
View SourceProvides methods for fetching and recieving data. To use it just add the following to your applicaion.ex it needs three inputs: request, interval and name
{ReqPollerCache, [request: "https://google.com", interval: :timer.seconds(30), name: ReqPollerCache]}
Summary
Functions
Returns a specification to start this module under a supervisor.
Gets the lates fetched data.
Initalizes the process with a default state given in opts
Starts the process with a given name
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Gets the lates fetched data.
iex> cached = ReqPollerCache.get(ReqPollerCache)
iex> cached
nil
Initalizes the process with a default state given in opts
Starts the process with a given name