Jump To Close Expand all Collapse all Table of contents Configuring Data Grid Caches Red Hat Data Grid Expand section "Red Hat Data Grid" Collapse section "Red Hat Data Grid" Data Grid documentation Data Grid downloads Making open source more inclusive Providing feedback on Red Hat documentation 1. Data Grid caches Expand section "1. Data Grid caches" Collapse section "1. Data Grid caches" 1.1. Cache API 1.2. Cache managers 1.3. Cache modes Expand section "1.3. Cache modes" Collapse section "1.3. Cache modes" 1.3.1. Comparison of cache modes 1.4. Local caches Expand section "1.4. Local caches" Collapse section "1.4. Local caches" 1.4.1. Simple caches 2. Clustered caches Expand section "2. Clustered caches" Collapse section "2. Clustered caches" 2.1. Replicated caches 2.2. Distributed caches Expand section "2.2. Distributed caches" Collapse section "2.2. Distributed caches" 2.2.1. Read consistency 2.2.2. Key ownership 2.2.3. Capacity factors Expand section "2.2.3. Capacity factors" Collapse section "2.2.3. Capacity factors" 2.2.3.1. Zero capacity nodes 2.2.4. Level one (L1) caches 2.2.5. Server hinting 2.2.6. Key affinity service 2.2.7. Grouping API 2.3. Invalidation caches 2.4. Scattered caches 2.5. Asynchronous replication Expand section "2.5. Asynchronous replication" Collapse section "2.5. Asynchronous replication" 2.5.1. Return values with asynchronous replication 2.6. Configuring initial cluster size 3. Data Grid cache configuration Expand section "3. Data Grid cache configuration" Collapse section "3. Data Grid cache configuration" 3.1. Declarative cache configuration Expand section "3.1. Declarative cache configuration" Collapse section "3.1. Declarative cache configuration" 3.1.1. Cache configuration 3.2. Adding cache templates Expand section "3.2. Adding cache templates" Collapse section "3.2. Adding cache templates" 3.2.1. Creating caches from templates 3.2.2. Cache template inheritance 3.2.3. Cache template wildcards 3.2.4. Cache templates from multiple XML files 3.3. Creating remote caches Expand section "3.3. Creating remote caches" Collapse section "3.3. Creating remote caches" 3.3.1. Default Cache Manager 3.3.2. Creating caches with Data Grid Console 3.3.3. Creating remote caches with the Data Grid CLI 3.3.4. Creating remote caches from Hot Rod clients 3.3.5. Creating remote caches with the REST API 3.4. Creating embedded caches Expand section "3.4. Creating embedded caches" Collapse section "3.4. Creating embedded caches" 3.4.1. Adding Data Grid to your project 3.4.2. Configuring embedded caches 4. Enabling and configuring Data Grid statistics and JMX monitoring Expand section "4. Enabling and configuring Data Grid statistics and JMX monitoring" Collapse section "4. Enabling and configuring Data Grid statistics and JMX monitoring" 4.1. Configuring Data Grid metrics 4.2. Registering JMX MBeans Expand section "4.2. Registering JMX MBeans" Collapse section "4.2. Registering JMX MBeans" 4.2.1. Enabling JMX remote ports 4.2.2. Data Grid MBeans 4.2.3. Registering MBeans in custom MBean servers 5. Configuring JVM memory usage Expand section "5. Configuring JVM memory usage" Collapse section "5. Configuring JVM memory usage" 5.1. Default memory configuration 5.2. Eviction and expiration 5.3. Eviction with Data Grid caches Expand section "5.3. Eviction with Data Grid caches" Collapse section "5.3. Eviction with Data Grid caches" 5.3.1. Eviction strategies 5.3.2. Configuring maximum count eviction 5.3.3. Configuring maximum size eviction 5.3.4. Manual eviction 5.3.5. Passivation with eviction 5.4. Expiration with lifespan and maximum idle Expand section "5.4. Expiration with lifespan and maximum idle" Collapse section "5.4. Expiration with lifespan and maximum idle" 5.4.1. How expiration works 5.4.2. Expiration reaper 5.4.3. Maximum idle and clustered caches 5.4.4. Configuring lifespan and maximum idle times for caches 5.4.5. Configuring lifespan and maximum idle times per entry 5.5. JVM heap and off-heap memory Expand section "5.5. JVM heap and off-heap memory" Collapse section "5.5. JVM heap and off-heap memory" 5.5.1. Off-heap data storage 5.5.2. Configuring off-heap memory 6. Configuring persistent storage Expand section "6. Configuring persistent storage" Collapse section "6. Configuring persistent storage" 6.1. Passivation Expand section "6.1. Passivation" Collapse section "6.1. Passivation" 6.1.1. How passivation works 6.2. Write-through cache stores 6.3. Write-behind cache stores 6.4. Segmented cache stores 6.5. Shared cache stores 6.6. Transactions with persistent cache stores 6.7. Global persistent location Expand section "6.7. Global persistent location" Collapse section "6.7. Global persistent location" 6.7.1. Configuring the global persistent location 6.8. File-based cache stores Expand section "6.8. File-based cache stores" Collapse section "6.8. File-based cache stores" 6.8.1. Configuring file-based cache stores 6.8.2. Configuring single file cache stores 6.9. JDBC connection factories Expand section "6.9. JDBC connection factories" Collapse section "6.9. JDBC connection factories" 6.9.1. Configuring managed datasources Expand section "6.9.1. Configuring managed datasources" Collapse section "6.9.1. Configuring managed datasources" 6.9.1.1. Configuring caches with JNDI names 6.9.1.2. Connection pool tuning properties 6.9.2. Configuring JDBC connection pools with Agroal properties 6.10. SQL cache stores Expand section "6.10. SQL cache stores" Collapse section "6.10. SQL cache stores" 6.10.1. Data types for keys and values Expand section "6.10.1. Data types for keys and values" Collapse section "6.10.1. Data types for keys and values" 6.10.1.1. Composite keys and values 6.10.1.2. Embedded keys 6.10.1.3. SQL types to Protobuf types 6.10.2. Loading Data Grid caches from database tables 6.10.3. Using SQL queries to load data and perform operations Expand section "6.10.3. Using SQL queries to load data and perform operations" Collapse section "6.10.3. Using SQL queries to load data and perform operations" 6.10.3.1. SQL query store configuration 6.10.4. SQL cache store troubleshooting 6.11. JDBC string-based cache stores Expand section "6.11. JDBC string-based cache stores" Collapse section "6.11. JDBC string-based cache stores" 6.11.1. Configuring JDBC string-based cache stores 6.12. RocksDB cache stores 6.13. Remote cache stores 6.14. JPA cache stores Expand section "6.14. JPA cache stores" Collapse section "6.14. JPA cache stores" 6.14.1. JPA cache store example 6.15. Cluster cache loaders 6.16. Creating custom cache store implementations Expand section "6.16. Creating custom cache store implementations" Collapse section "6.16. Creating custom cache store implementations" 6.16.1. Data Grid Persistence SPI 6.16.2. Creating cache stores 6.16.3. Examples of custom cache store configuration 6.16.4. Deploying custom cache stores 6.17. Migrating data between cache stores Expand section "6.17. Migrating data between cache stores" Collapse section "6.17. Migrating data between cache stores" 6.17.1. Cache store migrator 6.17.2. Getting the cache store migrator 6.17.3. Configuring the cache store migrator Expand section "6.17.3. Configuring the cache store migrator" Collapse section "6.17.3. Configuring the cache store migrator" 6.17.3.1. Configuration properties for the cache store migrator 6.17.4. Migrating Data Grid cache stores 7. Configuring Data Grid to handle network partitions Expand section "7. Configuring Data Grid to handle network partitions" Collapse section "7. Configuring Data Grid to handle network partitions" 7.1. Split clusters and network partitions Expand section "7.1. Split clusters and network partitions" Collapse section "7.1. Split clusters and network partitions" 7.1.1. Data consistency in a split cluster 7.2. Cache availability and degraded mode Expand section "7.2. Cache availability and degraded mode" Collapse section "7.2. Cache availability and degraded mode" 7.2.1. Degraded cache recovery example 7.2.2. Verifying cache availability during network partitions 7.2.3. Making caches available 7.3. Configuring partition handling 7.4. Partition handling strategies 7.5. Merge policies 7.6. Configuring custom merge policies 7.7. Manually merging partitions in embedded caches 8. Configuring user roles and permissions Expand section "8. Configuring user roles and permissions" Collapse section "8. Configuring user roles and permissions" 8.1. Security authorization Expand section "8.1. Security authorization" Collapse section "8.1. Security authorization" 8.1.1. User roles and permissions 8.1.2. Permissions Expand section "8.1.2. Permissions" Collapse section "8.1.2. Permissions" 8.1.2.1. Cache Manager permissions 8.1.2.2. Cache permissions 8.1.3. Role mappers Expand section "8.1.3. Role mappers" Collapse section "8.1.3. Role mappers" 8.1.3.1. Cluster role mappers 8.1.3.2. Identity role mappers 8.1.3.3. CommonName role mappers 8.1.3.4. Custom role mappers 8.2. Access control list (ACL) cache 8.3. Customizing roles and permissions 8.4. Configuring caches with security authorization 8.5. Disabling security authorization Legal Notice Settings Close Language: 简体中文 日本語 English Language: 简体中文 日本語 English Format: Multi-page Single-page PDF Format: Multi-page Single-page PDF Language and Page Formatting Options Language: 简体中文 日本語 English Language: 简体中文 日本語 English Format: Multi-page Single-page PDF Format: Multi-page Single-page PDF Data Grid downloads Access the Data Grid Software Downloads on the Red Hat customer portal. Note You must have a Red Hat account to access and download Data Grid software. Previous Next