Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a basic caching mechanism #6

Closed
rocktimsaikia opened this issue Nov 11, 2022 · 0 comments · Fixed by #7
Closed

Implement a basic caching mechanism #6

rocktimsaikia opened this issue Nov 11, 2022 · 0 comments · Fixed by #7
Assignees
Labels
enhancement New feature or request

Comments

@rocktimsaikia
Copy link
Owner

related to #5

@rocktimsaikia rocktimsaikia added the enhancement New feature or request label Nov 11, 2022
@rocktimsaikia rocktimsaikia self-assigned this Nov 11, 2022
rocktimsaikia added a commit that referenced this issue Nov 12, 2022
A basic cachesim feature has been added. It stores newly searched words
in a file named `.cambd-cache.json` in `$HOME`. And for every new word
lookup it checks the cache file if the definition for that specfic word
already exists. If yes then return immendietly else fetch the new
definition and add in the cache file for future reference.

fixes #6
rocktimsaikia added a commit that referenced this issue Nov 12, 2022
A basic cachesim feature has been added. It stores newly searched words
in a file named `.cambd-cache.json` in `$HOME`. And for every new word
lookup it checks the cache file if the definition for that specfic word
already exists. If yes then return immendietly else fetch the new
definition and add in the cache file for future reference.

fixes #6
rocktimsaikia added a commit that referenced this issue Nov 12, 2022
A basic caching feature has been added. It stores newly searched words
in a file named .cambd-cache.json in $HOME. And for every new word
lookup, it checks the cache file if the definition for that specific word
already exists. If yes then return immediately else fetch the new
definition and add it to the cache file for future reference.

fixes #6
rocktimsaikia added a commit that referenced this issue Nov 12, 2022
A basic caching feature has been added. It stores newly searched words
in a file named .cambd-cache.json in $HOME. And for every new word
lookup, it checks the cache file if the definition for that specific word
already exists. If yes then return immediately else fetch the new
definition and add it to the cache file for future reference.

fixes #6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant