cache service to share data across workers/master
var cache =;
var cache;//assume the cache is in use as abovecache;//to use the cache, we assume u've started the cluster2 with caching enabled, and you can select how cache manager should be run
Note that, we allow you to use caching w/o cluster2, if you want to enable caching from none cluster2 runtime, the feature could be enabled via:
//you can use this in unit test too as we did;
gethappens across the workers in a cluster, only one will be allowed to load while the rest will be in fact
watchtill that one finishes loading.
var cache;cache;//stop watching