Angular in memory or cachestorage cache using http calls interceptor
npm install ngx-rim-interceptor-cache
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);
``