title: clearing cache using cacheManager in java
body: <p>I want to clear the cache using JAVA code.</p>
  
  <p>and for this goal I write this code:</p>
  
  <pre><code>public void clearCache(){
          CacheManager.getInstance().clearAll();
      }
  </code></pre>
  
  <p>is this code correct? 
  and is there a way to confirm that it works good?
  thanks</p>