16.3. 添加持久缓存存储 您可以将持久缓存存储添加到 Data Grid 服务 pod,以将数据保存到持久性卷中。 数据网格在 /opt/infinispan/server/data 目录中创建单一文件缓存存储 .dat 文件。 流程 在 Data Grid 缓存中 的持久性 配置中添加 < file-store /> 元素,如下例所示: <distributed-cache name="persistent-cache" mode="SYNC"> <encoding media-type="application/x-protostream"/> <persistence> <file-store/> </persistence> </distributed-cache> <distributed-cache name="persistent-cache" mode="SYNC"> <encoding media-type="application/x-protostream"/> <persistence> <file-store/> </persistence> </distributed-cache> Copy to Clipboard Copied! Toggle word wrap Toggle overflow 前一个下一个