此内容没有您所选择的语言版本。

12.2.3. File Cache Store Configuration (Library Mode)


In JBoss Data Grid's Library mode, configure a File Cache Store within the loaders element as follows:
<loaders>
    ...
	<fileStore location="${java.io.tmpdir}"
                   streamBufferSize="${SIZE}"
                   fsyncMode="${DEFAULT/PER_WRITE/PERIODIC}"
                   fsyncInterval="${TIME}" />
    ...
</loaders>
The fileStore element is used to configure the File Cache Store with the following parameters:
  • The location parameter provides a location on the disk where the file store can write internal files. The default value for this parameter is the Infinispan-Filestore directory in the working directory.
  • The streamBufferSize parameter sets the size of the buffered stream used to write the state to the disk. Larger buffer sizes result in faster performance but occupy more temporary memory. The default value for this parameter is 8192 bytes.
  • The fsyncMode parameter sets how the file changes synchronize with the underlying file system. Valid values for this parameter are DEFAULT (synchronize when the operating system buffer is full or when the bucket is read), PER_WRITE (synchronize after each write request) and PERIODIC (synchronizes after a defined interval or just before a bucket is read).
  • The fsyncInterval parameter specifies the time period after which the file changes in the cache are flushed. This parameter is used only when the periodic fsync mode is in use. The default value for this parameter is 1 second.
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部