DEV Community

Nhan Nguyen
Nhan Nguyen

Posted on

Caching data in Angular using ts-cacheable

Image description

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
Image description

Global Configuration
Image description

Here you can find their NPM package:
https://www.npmjs.com/package/ts-cacheable


Let's get connected! You can find me on:

Top comments (0)