Cache APIs
This section describes the CacheFactory
and Cache
classes.
- CacheFactory class. Creates a
Cache
instance based on the provided distributed system and cache configuration. Anygeode.properties
andcache.xml
files provided to the application are used to initialize the system and cache. See Setting System and Cache Properties. If acache.xml
file is used to create a cache and some of the regions already exist, a warning states that the regions exist and the cache is created. - Cache class. This class is the entry point to the GemFire caching API. This class allows you to create regions. The cache is created by calling the
create
function of theCacheFactory
class. When creating a cache, you specify aDistributedSystem
that tells the new cache where to find other caches on the network and how to communicate with them.