17.4. 添加持久性缓存存储 您可以将持久性缓存存储添加到 Data Grid 服务 pod 中,将数据保存到持久性卷中。 Data Grid 在 /opt/infinispan/server/data 目录中创建单一文件缓存存储 .dat 文件。 流程 将 <file-store /> 元素添加到 Data Grid 缓存中 的持久性 配置,如下例所示: <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 前一个下一个