moleculer-db@0.6.0
icebob
released this
12 Sep 12:35
·
172 commits
to master
since this release
Breaking changes
Updated Moleculer to the latest 0.11 version. It means, the clearCache
method is changed.
New implementation:
clearCache() {
this.broker.broadcast(`cache.clean.${this.name}`);
if (this.broker.cacher)
this.broker.cacher.clean(`${this.name}.*`);
return this.Promise.resolve();
},
So if you call this method in a users
service, the service clears the local cache with the users.*
match string and emits a broadcast event with cache.clean.users
name.