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?
Cheers
Manik
On 3 Feb 2012, at 18:14, Sanne Grinovero wrote:
New idea: what about implementing a memory-size based eviction
policy
which only works on values of type byte[] ?
The limitation might be strong, but actually applies quite well to
some use cases:
- Hot Rod
- Lucene
I think this could serve well more use cases, and specifically for
Lucene it would rock, as besides from some small metadata, the bulk of
stuff is big arrays of bytes.
-- Sanne
_______________________________________________
infinispan-dev mailing list
infinispan-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/infinispan-dev
--
Manik Surtani
manik(a)jboss.org
twitter.com/maniksurtani
Lead, Infinispan
http://www.infinispan.org