Home:ALL Converter>Angular 2 cache management best practices

Angular 2 cache management best practices

Ask Time:2017-12-15T17:11:23         Author:user2080105

Json Formatter

I am facing issues managing cache efficiently in Angular 2. I use HTTP interceptors for that. The major problem I am facing is data incoherence. Everytime I update an object, I need to loop over cache data to reflect this change to all entities that depends on this change (using complex bug prone logic).

Are their any best practices/guidlines/design patterns to manage cache efficiently in Angular 2 applications ?

Author:user2080105,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/47829057/angular-2-cache-management-best-practices
yy