re"><a href="Cache.html" title="interface in jakarta.persistence">Cache</a>&nbsp;getCache()</pre>
<div class="block">Access the cache that is associated with the entity manager 
 factory (the "second level cache").</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>instance of the <code>Cache</code> interface or null if
 no cache is in use</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/IllegalSta