ngx-rim-interceptor-cache
v0.0.4-rc.2
Published
Angular in memory or cachestorage cache using http calls interceptor
Downloads
3
Readme
Angular in memory or localstorage cache for http calls
1: Install with:
npm install ngx-rim-interceptor-cache
2: Add to your application
import { RimInterceptorCacheModule } from 'ngx-rim-interceptor-cache';
imports: [
...
RimInterceptorCacheModule,
...
]
3: Use in your application injecting the service were needed:
constructor(myCacheService: CacheService)
4: And calling setUrlCacheable (or setStorageCacheable), passing as parameters the url and the seconds that should remain in cache
myCacheService.setUrlCacheable('https://url', 360);
or
myCacheService.setStorageCacheable('https://url', 360);