Este conteúdo não está disponível no idioma selecionado.
Chapter 8. Defining File-based Cache Stores
Define a file-based cache store with datagrid-service to persist data to external storage.
Use the XMLStringConfiguration class to provide XML configuration as a string through the Hot Rod interface.
- XML must be valid with the Data Grid configuration schema.
-
Location of your file store should be under the storage volume mounted at
/opt/datagrid/standalone/databecause thedatafolder is aPersistentVolumethat allows data to survive when the container restarts.
As an example, the following main method creates a cache with a distributed configuration that includes a file store:
For information about valid file-store configuration options, see the Data Grid configuration schema.
See the Javadocs for more information: