To create a cache, you include the cache declaration in your Spring application context XML configuration file. Because this declaration contains no properties, the default configuration is used.
After you configure a cache, you can configure a region. There are four types of regions you can create.
Configuring Cache Listeners
You can register Cache Listeners for a region to handle data events such as when data is created, updated, or deleted. A Cache Listener is a bean that implements the com.gemstone.gemfire.cache.CacheListener interface.
Configuring Continuous Querying
Continuous querying allows you to create a query and then receive notifications when new data is added that matches the query. Continuous querying requires a client/server topology and the pool must enable the subscription property.
You can persist the data that your application stores in a region. Persistence allows you to restore data after a failure or normal shutdown of GemFire.
The Spring framework provides a transaction programming model that can work across multiple APIs. GemFire provides a per-cache transaction manager that you can use to execute region data operations atomically.
You can register GemFire functions for remote execution. You declare GemFire functions as Spring beans, which must implement the com.gemstone.gemfire.cache.execute.Function interface or extend the com.gemstone.gemfire.cache.execute.FunctionAdapter class.