<p>Is this covering a different use case than having two caches k1 and k2 equally configured?<br>
My current app Scarlet is dynamically creating many different caches using the configuration names asd templates, I'm happy with that.</p>
<p><blockquote type="cite">Il giorno 19/mag/2010 16:43, "Manik Surtani" <<a href="mailto:manik@jboss.org">manik@jboss.org</a>> ha scritto:<br><br><p><font color="#500050"><br>On 13 Apr 2010, at 11:01, Manik Surtani wrote:<br>
<br>> </font></p><p><font color="#500050">> On 13 Apr 2010, at 10:50, Sanne Grinovero wrote:<br>> <br>>> rightfull concern, I wouldn't personally ha...</font></p>Here is an alternative - *do* we want to support scoping? By this, I mean:<br>
<br>
cache.withAffinityKey("k1").put("name", "Manik");<br>
cache.withAffinityKey("k1").put("country", "UK");<br>
<br>
cache.withAffinityKey("k2").put("name", "Sanne");<br>
cache.withAffinityKey("k2").put("country", "IT");<br>
<br>
will be allowed and the two will not overwrite each other, *but* you cannot retrieve stuff by simply doing:<br>
<br>
cache.get("name") anymore. You would have to do:<br>
<br>
cache.withAffinityKey("k1").get("name"). Simply doing a cache.get("name") will return a null.<br>
<br>
What do people prefer?<br>
<br>
Cheers<br>
<font color="#888888">Manik<br>
</font><p><font color="#500050"><br>--<br>Manik Surtani<br><a href="mailto:manik@jboss.org">manik@jboss.org</a><br>Lead, Infinispan<br>Lead, JBoss Cache<br><a href="http://www.infinispan.org">http://www.infinispan.org</a><br>
http:...</font></p></blockquote></p>