How to Cache Opened File in Elixir?
Open
chore
good first issue
help wanted
technical
- Dominant language
- Elixir
- Stars
- 347
- Forks
- 82
- PR merge metrics
- No merged PRs in 30d
Description
At present we are doing a `File.read!/1` each time we request a random quote:
https://github.com/dwyl/quotes/blob/eaa669003394e13a23278cc63ab21633a58d456c/lib/quotes.ex#L36
This is obviously inefficient. We need to _cache_ the `JSON` data _once_.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.