[infinispan-dev] Data Container Changes Part 1
Radim Vansa
rvansa at redhat.com
Tue Dec 20 11:10:57 EST 2016
Perfect! This would reduce the only limitation of dist/replicated caches
in 2LC, while I am convinced that these have much better performance
(there have been some changes recently, so I have to re-run the perf tests).
So, how should that feature be exposed to users?
1) Annotating the value class with @NonEvictable or @Evictable(false)
- What if the user can't change the class definition? That would require
us to provide alternative way as well (listing classes in configuration)
- Should we set this fixed for a value class? Inheritance?
- Should we support also @NonEvictable keys?
2) Adding Flag.NON_EVICTABLE to the write
- Flags are a bit controversial, we shouldn't add more user-facing flags
- We need a Param for functional commands as well
3) Other ways?
Should we create another type of CacheEntry (-1), add a flag to
Metadata, or something else?
Radim
On 12/20/2016 03:33 PM, William Burns wrote:
> Yes, definitely!
>
> I made sure to check when I added Caffeine [1]
>
> I was thinking we could add that later if we really need the feature.
>
> - Will
>
> [1]
> https://github.com/ben-manes/caffeine/blob/master/caffeine/src/main/java/com/github/benmanes/caffeine/cache/Caffeine.java#L347
>
> On Tue, Dec 20, 2016 at 4:16 AM Radim Vansa <rvansa at redhat.com
> <mailto:rvansa at redhat.com>> wrote:
>
> Regarding another use of Weighter in Caffeine: would it be possible to
> guarantee that an object with weight 0 (or negative one) is never
> evicted?
>
> R.
>
> On 12/19/2016 10:10 PM, William Burns wrote:
> > Check out some of the new changes to the Data Container in
> Infinispan
> > 9.0. Beta 1 [1]. Part 2 will be probably after Holiday break.
> >
> > [1]
> http://blog.infinispan.org/2016/12/data-container-changes-part-1.html
> >
> >
> > _______________________________________________
> > infinispan-dev mailing list
> > infinispan-dev at lists.jboss.org
> <mailto:infinispan-dev at lists.jboss.org>
> > https://lists.jboss.org/mailman/listinfo/infinispan-dev
>
>
> --
> Radim Vansa <rvansa at redhat.com <mailto:rvansa at redhat.com>>
> JBoss Performance Team
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org <mailto:infinispan-dev at lists.jboss.org>
> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>
>
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev
--
Radim Vansa <rvansa at redhat.com>
JBoss Performance Team
More information about the infinispan-dev
mailing list