0.0.8 • Published 5 years ago

angular-cache-rf v0.0.8

Weekly downloads
27
License
-
Repository
github
Last release
5 years ago

Angular Cache

angular cache is a library that help to cache data on client. the purpose is to reduced request count to api from angular application

How To Install

npm i angular-cache-rf

How to Use

use AngularCacheService for using this library.

export class SampleService{
  constructor(private angularCacheService: AngularCacheService){
}

cacheThisData(){
this.angularCacheService.GetCache(Observable, key)
}

GetCache will return data as observable. It has some options

  • ExpiresDate: time to expired
  • Location: place to save cache (localstorage or session storage

Expires Date

you can use DateExtension class to help you for set value for this option. DateExtensionhave some method

  • AddMinutes
  • Addsecond
  • AddHour
  • AddDay

Location

use AngularCacheSessionType to choose cache location

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago