dwyl / dwyl/quotes

How to Cache Opened File in Elixir?

Open
#20 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.