angelnikolov / ts-cacheable

Observable/Promise Cache Decorator
https://npmjs.com/package/ts-cacheable
ISC License
340 stars 42 forks source link

How to use ngx-cacheable in server side pagination #62

Closed ravi8194 closed 4 years ago

ravi8194 commented 4 years ago

I am building a app in which i am doing server side pagination by calling a same REST API with different query string on page change event. can i use this library to cache the response of previous pages so that if i go back to previous page , no API call made.

angelnikolov commented 4 years ago

@ravi8194 You can use the maxCacheCount parameter to support multiple caches per decorated method. Check the documentation.