Spring Boot Cachable Cache Size
<p>I want to to configure my cache size. I am using <code>@EnableCaching</code>. Here is my cached repository.</p>

<p><strong>VendorRepository</strong></p>

<pre><code>public interface VendorRepository extends Repository&lt;Vendor, Long&gt; {

@Cacheable("vendorByUsername")
Vendor getVendorByUsername(String username);

@CacheEvict(value = {"vendorByUsername", "vendor", "vendors"}, allEntries = true)
Vendor save(Vendor vendor);

@Cacheable("vendor")
Vendor findOne(Long id);

@Cacheable("vendors")
List&lt;Vendor&gt; findAll();
}
</code></pre>

<p>It is working good right now but I want  to set maximum cache size. How can I configure this in my main config file?</p>