<p>So if I understand it correctly this is a proposal for a simplified tree API?</p>
<p>Il giorno 19/mag/2010 19:55, "Manik Surtani" <<a href="mailto:manik@jboss.org">manik@jboss.org</a>> ha scritto:<br><br><div style="word-wrap:break-word"><br><div><p><font color="#500050">On 19 May 2010, at 17:35, Sanne Grinovero wrote:<br>
<br>> Is this covering a different use case than havin...</font></p><div>Slightly different. Scoping could be useful for use cases where creating a cache per scope is too expensive. E.g., I want to cache a person's name, address and photograph. I could do this:</div>
<div><br></div><div>cache.put("person1_name", name);</div><div>cache.put("person1_address", address);</div><div>cache.put("person1_pic", pic);</div><div><br></div><div><div>cache.put("person2_name", name);</div>
<div>cache.put("person2_address", address);</div><div>cache.put("person2_pic", pic);</div><div><br></div><div><div>cache.put("person3_name", name);</div><div>cache.put("person3_address", address);</div>
<div>cache.put("person3_pic", pic);</div><div><br></div><div>and every time I need to retrieve anything I need to concatenate person_id with the "field" I am interested in. It would be too expensive to create a separate cache per person, as the system may have thousands of users.</div>
<div><br></div><div><br></div><div><br></div></div></div><div><br></div><div><br></div><br><br><blockquote type="cite"><p><font color="#500050">><br>>> Il giorno 19/mag/2010 16:43, "Manik Surtani" <<a href="mailto:manik@jboss.org">manik@jboss.org</a>> ha scritto:<br>
>><br>>><br>>> On 13 Apr 2...</font></p><p><font color="#500050">> _______________________________________________<br>> infinispan-dev mailing list<br>> infinispan-dev@lis...</font></p></blockquote>
</div><br><div>
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">
<p><font color="#500050">--<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></font></p>
<div><a href="http://www.jbosscache.org" target="_blank">http://www.jbosscache.org</a></div><div><br></div></div></span><br></span><br>
</div>
<br></div><br>_______________________________________________<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" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br></p>