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

add caching feature #7

Merged
merged 1 commit into from
Nov 12, 2022
Merged

add caching feature #7

merged 1 commit into from
Nov 12, 2022

Conversation

rocktimsaikia
Copy link
Owner

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 rocktimsaikia self-assigned this 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 rocktimsaikia merged commit a524aa8 into main Nov 12, 2022
@rocktimsaikia rocktimsaikia deleted the feat-cache branch November 12, 2022 09:12
rocktimsaikia added a commit that referenced this pull request 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 pull request 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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement a basic caching mechanism
1 participant