Jackson88 / ng2-cache

Client side caching service for Angular2
MIT License
44 stars 22 forks source link

ng2-cache support IE10 and above? #18

Open MohamedSahir opened 6 years ago

MohamedSahir commented 6 years ago

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.

Jackson88 commented 6 years ago

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);