module.exports = function(serviceNames) { const events = {}; serviceNames.forEach(name => { events[`cache.clean.${name}`] = function() { if (this.broker.cacher) { this.logger.debug(`Clear local '${this.name}' cache`); this.broker.cacher.clean(`${this.name}.*`); } }; }); return { events };};
--
I have used the cache cleaner mixin in my service, After updating the data, still i am getting the cached data and the mixin was not properly cleared the cache. Anyone suggest solution for this issue?