arthurfiorette / axios-cache-interceptor

📬 Small and efficient cache interceptor for axios. Etag, Cache-Control, TTL, HTTP headers and more!
https://axios-cache-interceptor.js.org
MIT License
703 stars 58 forks source link

Add an example node-cache implementation in docs #841

Closed sinarck closed 5 months ago

sinarck commented 6 months ago

I recently wrote some code in my own project that utilizes node-cache, and thought it might be helpful for anyone else who stumbled across the docs. I'm not sure if my implementation is actually useful or correct, so any feedback would be helpful.

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.26%. Comparing base (a30f8d2) to head (ac727bf).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #841 +/- ## ======================================= Coverage 99.26% 99.26% ======================================= Files 19 19 Lines 2442 2442 Branches 212 211 -1 ======================================= Hits 2424 2424 Misses 17 17 Partials 1 1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

arthurfiorette commented 6 months ago

there's syntax errors in your example

sinarck commented 6 months ago

Should be good now.

arthurfiorette commented 5 months ago

thanks!