Skip to content

Latest commit

 

History

History
90 lines (72 loc) · 2.21 KB

ref_infinispan_caches.adoc

File metadata and controls

90 lines (72 loc) · 2.21 KB

Cache configuration

You can create declarative cache configuration in XML, JSON, and YAML format.

All declarative caches must conform to the {brandname} schema. Configuration in JSON format must follow the structure of an XML configuration, elements correspond to objects and attributes correspond to fields.

Important

{brandname} restricts characters to a maximum of 255 for a cache name or a cache template name. If you exceed this character limit, {brandname} throws an exception. Write succinct cache names and cache template names.

Important

A file system might set a limitation for the length of a file name, so ensure that a cache’s name does not exceed this limitation. If a cache name exceeds a file system’s naming limitation, general operations or initialing operations towards that cache might fail. Write succinct file names.

Distributed caches

XML
link:xml/distributed_cache.xml[role=include]
JSON
link:json/distributed_cache.json[role=include]
YAML
link:yaml/distributed_cache.yaml[role=include]

Replicated caches

XML
link:xml/replicated_cache.xml[role=include]
JSON
link:json/replicated_cache.json[role=include]
YAML
link:yaml/replicated_cache.yaml[role=include]

Multiple caches

XML
link:xml/infinispan_caches.xml[role=include]
YAML
link:yaml/infinispan_caches.yaml[role=include]
JSON
link:json/infinispan_caches.json[role=include]