Caching data in Angular using ts-cacheable

Nhan Nguyen
Nov 19, 2023

--

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

Configuration

Global Configuration

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://www.linkedin.com/in/nhannguyendevjs/
- X (formerly Twitter): https://twitter.com/nhannguyendevjs

--

--

Nhan Nguyen
Nhan Nguyen

No responses yet