"storage" : { "binaryStorage" : { "type" : "cache", "cacheConfiguration" : "config/infinispan-persistent-binary-store.xml", "dataCacheName" : "binary-data", "metadataCacheName" : "binary-meta-data", "chunkSize" : 1000 } }
A binary store which stores binary values in one or more Infinispan caches. This type of binary store persists two kinds of information: the "main" binary data plus a metadata section.
"storage" : { "binaryStorage" : { "type" : "cache", "cacheConfiguration" : "config/infinispan-persistent-binary-store.xml", "dataCacheName" : "binary-data", "metadataCacheName" : "binary-meta-data", "chunkSize" : 1000 } }
<repository config-relative-to="${jboss.server.config.dir}"> <cache-binary-storage data-cache-name="datacache" metadata-cache-name="metadatacache" chunk-size="100" cache-config="modeshape/cache-config.xml"/> </repository>
Name |
Required |
Configuration |
Description |
cacheConfiguration |
yes |
JSON |
the path (relative or absolute) to an Infinispan configuration file which contains the cache configurations |
dataCacheName |
yes |
JSON |
the name of the Infinispan cache where the main binary data will be persisted |
metadataCacheName |
yes |
JSON |
the name of the Infinispan cache where the binary meta-data will be persisted |
chunkSize |
no |
JSON |
The size (in bytes) of a segment which dictates into how many segments a binary value is split when stored in the cache. Each chunk represents an entry in the cache |
data-cache-name |
yes |
JBoss AS |
same as dataCacheName |
metadata-cache-name |
yes |
JBoss AS |
same as metadataCacheName |
chunk-size |
no |
JBoss AS |
same as chunkSize |
cache-config |
no |
JBoss AS |
a path relative to the repository's config-relative-to attribute towards the Infinispan configuration file. If not specified, ModeShape will look in the same configuration file where the repository main cache is defined |
plus the common attributes described here