&gt;&nbsp;cls,
 <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a>&nbsp;primaryKey)</span></div>
<div class="block">Whether the cache contains data for the given entity.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>cls</code> - entity class</dd>
<dd><code>primaryKey</code> - primary key</dd>
<dt>Returns:</dt>
<dd>boolean indicating whether the entity is in the cache</dd>
</dl>
</sect