<div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I like it: it makes the existence and the name of the default cache explicit to the user, with no practical drawbacks.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks,</div><div class="gmail_default" style="font-size:small">Sanne</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 10 November 2016 at 08:38, Tristan Tarrant <span dir="ltr">&lt;<a href="mailto:ttarrant@redhat.com" target="_blank">ttarrant@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In the discussion for [1] the subject of the default cache and the way<br>
it affects configuration inheritance came up.<br>
<br>
My proposal is:<br>
- remove the default cache as a special cache altogether<br>
- CacheManager.getCache()  should return the named cache specified as<br>
default in the configuration.<br>
- the programmatic GlobalConfigurationBuilder/<wbr>GlobalConfiguration should<br>
have the notion of the default named cache (currently this is handled in<br>
the parser)<br>
- Retrieving the cache named &quot;___defaultcache&quot; should actually retrieve<br>
the above named cache<br>
<br>
Opinions ?<br>
<br>
Tristan<br>
<br>
[1] <a href="https://github.com/infinispan/infinispan/pull/4631" rel="noreferrer" target="_blank">https://github.com/infinispan/<wbr>infinispan/pull/4631</a><br>
<span class="HOEnZb"><font color="#888888">--<br>
Tristan Tarrant<br>
Infinispan Lead<br>
JBoss, a division of Red Hat<br>
______________________________<wbr>_________________<br>
infinispan-dev mailing list<br>
<a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/infinispan-<wbr>dev</a><br>
</font></span></blockquote></div><br></div>