[infinispan-dev] JBoss Libra
Manik Surtani
manik at jboss.org
Mon Feb 6 13:02:38 EST 2012
On 6 Feb 2012, at 13:59, Vladimir Blagojevic wrote:
> On 12-02-04 11:57 AM, Manik Surtani wrote:
>> This is very similar to storeAsBinary. If this is set to true, then keys and values are serialized and stored as a MarshalledValue which contains the resulting byte[]. So rather than restrict to just byte[] types, we could restrict to:
>>
>> * byte[] or any other primitive, primitive array or String
>> * OR, if storeAsBinary is set to true.
>>
>> The tricky part will be to get this to work with Vladimir's LIRS container which works on number of entries. :) Vladimir?
>>
> We have to somehow translate eviction that works on number of entries into eviction that works with memory size where size of each entry is known only at runtime ! Not impossible but definitely a hard problem!
Well, this is the thing. For the container to not start evicting when a number of entries limit is reached, but instead when a different metric is used and in this case that metric is a size threshold.
By the way, Pete has agreed to look at this for 5.2.0 so expect to hear from him on this. :)
--
Manik Surtani
manik at jboss.org
twitter.com/maniksurtani
Lead, Infinispan
http://www.infinispan.org
More information about the infinispan-dev
mailing list