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

feat: lru-cache driver #146

Merged
merged 4 commits into from
Feb 6, 2023
Merged

feat: lru-cache driver #146

merged 4 commits into from
Feb 6, 2023

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Feb 6, 2023

Related to #15, #145 and #13 (ttl)

Implement new lru-cache driver which is almost same as memory but limits the in memory cache entries with optional feature to invalidate them on a generic timeout. later we can integrate it with #13.

@@ -46,6 +46,7 @@
"h3": "^1.1.0",
"ioredis": "^5.3.0",
"listhen": "^1.0.2",
"lru-cache": "^7.14.1",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: This is CJS but almost the best impl to use :}

@codecov
Copy link

codecov bot commented Feb 6, 2023

Codecov Report

Merging #146 (9d3bd58) into main (e24c486) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 9d3bd58 differs from pull request most recent head 4fa5ce2. Consider uploading reports for the commit 4fa5ce2 to get more accurate results

@@           Coverage Diff           @@
##             main     #146   +/-   ##
=======================================
  Coverage   89.32%   89.32%           
=======================================
  Files          15       15           
  Lines        1339     1340    +1     
  Branches      303      303           
=======================================
+ Hits         1196     1197    +1     
  Misses        143      143           
Impacted Files Coverage Δ
src/index.ts 95.65% <100.00%> (+0.19%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@pi0 pi0 merged commit 03dfb2e into main Feb 6, 2023
@pi0 pi0 deleted the feat/lru branch February 6, 2023 14:28
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.

1 participant