0.0.4-rc.2 • Published 5 years ago

ngx-rim-interceptor-cache v0.0.4-rc.2

Weekly downloads
18
License
SEE LICENSE IN LI...
Repository
github
Last release
5 years ago

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);
0.0.4-rc.2

5 years ago

0.0.4-rc.1

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago