Sorry misread original email. If you need to share across topologies then you should consider something like memcache. On May 15, 2015 6:52 PM, wrote:
> Lazy initialized singleton. Let the os release the memory when you're done > :). > On May 15, 2015 6:44 PM, "Dzmitry Viarzhbitski" < > dzmitry.viarzhbit...@gmail.com> wrote: > >> Let's I assume that I have several topologies in the same jar which are >> using some cache. >> I need to init cache (cache subscribed to events from different system >> and can be reloade) and release cache when the worker will be switched of. >> Is it possible to share static cache from multiple topologies and how to >> shut down it (in case if I kill one topolgy other still use the cache)? >> What should be the event release the cache (worker shutdown)? >> >> Thank you. >> >