此内容没有您所选择的语言版本。
18.2. Cache Store Configuration
18.2.1. Configuring the Cache Store 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Cache stores can be configured in a chain. Cache read operations checks each cache store in the order configured until a valid non-null element of data has been located. Write operations affect all cache stores unless the
ignoreModifications element has been set to "true" for a specific cache store.
The following example demonstrates cache store configuration using XML in JBoss Data Grid's Library mode:
For details about the elements and parameters used in this sample configuration, see Section 19.2, “Cache Store Configuration Details (Library Mode)”.
18.2.3. About SKIP_CACHE_LOAD Flag 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
In Red Hat JBoss Data Grid's Remote Client-Server mode, when the cache is preloaded from a cache store and eviction is disabled, read requests go to the memory. If the entry is not found in a memory during a read request, it accesses the cache store which may impact the read performance.
To avoid referring to the cache store when a key is not found in the memory, use the
SKIP_CACHE_LOAD flag.
18.2.4. About the SKIP_CACHE_STORE Flag 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
When the
SKIP_CACHE_STORE Flag is used then the cache store will not be considered for the specified cache operations. This flag can be useful to place an entry in the cache without having it included in the configured cache store, along with determining if an entry is found within a cache without retrieving it from the associated cache store.
18.2.5. About the SKIP_SHARED_CACHE_STORE Flag 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
When the
SKIP_SHARED_CACHE_STORE Flag is enabled then any shared cache store will not be considered for the specified cache operations. This flag can be useful to place an entry in the cache without having it included in the shared cache store, along with determining if an entry is found within a cache without retrieving it from the shared cache store.