ng2-cache icon indicating copy to clipboard operation
ng2-cache copied to clipboard

ng2-cache support IE10 and above?

Open MohamedSahir opened this issue 7 years ago • 1 comments

I have plan to use ng2-cache ,whether it support IE 10 and above browsers.why ng2cache data store in session storage instead of in memory?how to use it in cache memory instead of session storage.

MohamedSahir avatar Dec 02 '17 22:12 MohamedSahir

Hi, If current storage is not available - service will choose memory storage itself, btw you always able to specify the storage: providers: [ CacheService, {provide: CacheStorageAbstract, useClass:CacheMemoryStorage} ]

OR

let storage = this._cacheService.useStorage(CacheStoragesEnum.LOCAL_STORAGE);

Jackson88 avatar Dec 11 '17 10:12 Jackson88