This content has been marked as final.
Show 1 reply
-
1. Re: Object as cache key -gotchas?
nadirx Nov 17, 2012 3:06 AM (in response to infiniuser)There are no limitations. You might want to use a custom marshaller to serialize your objects into byte arrays:
https://docs.jboss.org/author/display/ISPN/Java+Hot+Rod+client#JavaHotRodclient-Marshallingdata
You can also provide hints to the RemoteCacheManager about the average key/value size to optimize buffer creation:
http://docs.jboss.org/infinispan/5.2/apidocs/org/infinispan/client/hotrod/RemoteCacheManager.html
- infinispan.client.hotrod.key_size_estimate, default = 64. This hint allows sizing of byte buffers when serializing and deserializing keys, to minimize array resizing.
- infinispan.client.hotrod.value_size_estimate, default = 512. This hint allows sizing of byte buffers when serializing and deserializing values, to minimize array resizing.