Something like org.terracotta.cache.serialization.SerializedEntry
would do the trick, but with an equals/hashcode implementation working
with arrays too (currently doesn't).

WDYT?

On Tue, Sep 7, 2010 at 10:03 PM, Sergio Bossa <sergio.bo...@gmail.com> wrote:
> Hi guys,
>
> I was recently trying to use a byte[] as the key for a ClusteredMap in
> express mode, but it doesn't work (see
> https://jira.terracotta.org/jira/browse/CDV-1511 for more details).
> The workaround is obviously to convert the byte[] in String and use
> this as the key, but String has much larger memory occupation.
>
> So, in case you didn't want to fix the byte[] problem (I may
> understand the reasons), what about adding to the toolkit a
> "clustered" byte[] wrapper which actually works with ClusteredMap in
> express mode?
>
> Thanks,
> Cheers,
>
> Sergio B.
>
> --
> Sergio Bossa
> http://www.linkedin.com/in/sergiob
>



-- 
Sergio Bossa
http://www.linkedin.com/in/sergiob
_______________________________________________
tc-dev mailing list
tc-dev@lists.terracotta.org
http://lists.terracotta.org/mailman/listinfo/tc-dev

Reply via email to