One of my favorite ways to cache API requests in Angular is using the ts-cachable library
š³ Easy to use with decorators
š³ Customizable caching strategy
š³ Mutatable cache data
š³ Caching using local storage or memory
š³ A lot of configurations
š³ Only 13.4kb bundle size
š³ Only 4ms download time
Here you can find their NPM package:
https://www.npmjs.com/package/ts-cacheable
Let's get connected! You can find me on:
- Medium: https://medium.com/@nhannguyendevjs
- dev.to: https://dev.to/nhannguyendevjs
- Linkedin: https://dev.to/nhannguyendevjs
- X (formerly Twitter): https://twitter.com/nhannguyendevjs
Top comments (0)