title: How to disable Spring/Hibernate/Hazelcast joint cache?
body: <p>We use <code>Hazelcast</code> as our <code>Hibernate</code> 2nd level cache manager and we have some configurations for it in our <code>Spring</code> context files. Our code is also instrumented by Spring <code>@Cacheable</code> annotations (for business level cache) and we configured it to use <code>Hazelcast</code>. The problem is that in development environment we have multiple database instances and sometimes we should switch our application between them. Each time we switch to another database we should also restart the Hazelcast to be filled with new data and it is a REALY annoying work :(( This is more annoying when we need to have multiple instances of our application up on different databases! so we need also multiple instances of <code>Hazelcast</code>!!   </p>
  
  <p>As our code is tightly coupled with cache stuffs, it is so hard to remove cache configurations from the code for new instances. Is there any way to tell <code>Hazelcast</code>, <code>Spring</code> and <code>Hibernate</code> do not use/fill cache in presence of our configurations?</p>