Spring Data Gemfire Reference Guide
Total Page:16
File Type:pdf, Size:1020Kb
Spring Data GemFire Reference Guide Costin Leau , David Turanski , John Blum , Oliver Gierke Version 2.0.5.RELEASE, 2018-02-28 Table of Contents Preface. 2 1. Introduction . 3 2. Requirements . 4 3. New Features . 5 3.1. New in the 1.2 Release. 5 3.2. New in the 1.3 Release. 5 3.3. New in the 1.4 Release. 6 3.4. New in the 1.5 Release. 7 3.5. New in the 1.6 Release. 7 3.6. New in the 1.7 Release. 7 3.7. New in the 1.8 Release. 8 3.8. New in the 1.9 Release. 9 3.9. New in the 2.0 Release. 9 Reference Guide . 10 4. Document Structure . 11 5. Bootstrapping Pivotal GemFire with the Spring container . 12 5.1. Advantages of using Spring over Pivotal GemFire cache.xml . 12 5.2. Using the Core Namespace. 12 5.3. Using the Data Access Namespace . 14 5.3.1. An Easy Way to Connect to GemFire . 14 5.4. Configuring a Cache . 15 5.4.1. Advanced Cache Configuration. 17 5.4.2. Configuring a GemFire CacheServer . 20 5.4.3. Configuring a GemFire ClientCache. 21 5.5. Configuring a Region. 24 5.5.1. Using an externally configured Region. 24 5.5.2. Auto Region Lookup. 25 5.5.3. Configuring Regions. 26 5.5.4. Compression . 30 5.5.5. Subregions . 30 5.5.6. Region Templates . 31 5.5.7. Data Eviction (with Overflow). 36 5.5.8. Data Expiration . 36 5.5.9. Data Persistence . 41 5.5.10. Subscription Policy . 41 5.5.11. Local Region . 41 5.5.12. Replicated Region. 42 5.5.13. Partitioned Region . 42 5.5.14. Client Region . 44 5.5.15. JSON Support. 47 5.6. Configuring an Index . 47 5.6.1. Defining Indexes. 49 5.6.2. IgnoreIfExists and Override . 49 5.7. Configuring a DiskStore . 52 5.8. Configuring the Snapshot Service . 53 5.8.1. Snapshot Location . 54 5.8.2. Snapshot Filters . 55 5.8.3. Snapshot Events . 56 5.9. Configuring the Function Service . 57 5.10. Configuring WAN Gateways . 58 5.10.1. WAN Configuration in GemFire 7.0 . 58 6. Bootstrapping Pivotal GemFire using Spring Annotations . 61 6.1. Introduction . 61 6.2. Bootstrapping Pivotal GemFire applications with Spring . 62 6.3. Going in-detail on client/server applications . 63 6.4. Runtime configuration using Configurers . 66 6.5. Runtime configuration using Properties . ..