klemenp
klemenp

Reputation: 76

Infinispan cache store by value and not by reference

How to configure Infinispan in wildfly's config files (standalone.xml or domain.xml) so that cached objects are always serialized (stored by value and not by reference).

From the documentation of Infinispan storeAsBinary setting can be enabled, so that objects are stored to cache by value and not by reference (which is enabled by default). http://infinispan.org/docs/6.0.x/user_guide/user_guide.html

There is no documentation how to do that when Infinispan is part of Wildfly server.

My question is how do you enable 'storeAsBinary' when Infinispan (6.0.2) is part of Wildfly AS (8.1).

Upvotes: 2

Views: 866

Answers (1)

Radim Vansa
Radim Vansa

Reputation: 5898

When you use Infinispan in client-server mode, accessing the data through Hot Rod, Memcached or REST, the data are automatically serialized on client and the server stores them only as byte arrays.

Upvotes: 3

Related Questions