Closed guilhermemaranhao closed 7 years ago
Your app needs to create the cache every time it runs, at which point any previously cached data will be loaded. See https://github.com/jmdobry/angular-cache#cachefactorygetcacheid
Thank you, @jmdobry ! I really missed that.
Hi everyone,
In the main.js, I'm setting the default parameters to my cache as follows:
After that, the run function is declared as follows:
The browser application tab has the following local storage keys:
How am I supposed to get my previously cache created? They are all properly loaded, but anything is being returned when I invoke:
if (!CacheFactory.get('lists')){
Or
if (!CacheFactory.get('listCategory1Cache')){
Am I missing something?
Can anybody give me a hint?
Thanks,
Guilherme