Click or drag to resize
IGemFireCache Interface
GemFireCache represents the singleton cache that must be created in order to connect to Gemfire server.

Namespace: GemStone.GemFire.Cache.Generic
Assembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntax
public interface IGemFireCache : IRegionService

The IGemFireCache type exposes the following members.

Properties
  NameDescription
Public propertyCacheTransactionManager
Returns the cache transaction manager of [!:CacheFactory.Create] this cache.
Public propertyDistributedSystem
Returns the distributed system used to [!:CacheFactory.Create] this cache.
Public propertyIsClosed
True if this cache has been closed.
(Inherited from IRegionService.)
Public propertyName
Returns the name of this cache.
Top
Methods
  NameDescription
Public methodClose
Terminates this object cache and releases all the local resources. If RegionService is created from [!:Cache.CreateAuthenticatedView], then it clears user related security data.
(Inherited from IRegionService.)
Public methodCreatePdxInstanceFactory
Returns a factory that can create a {@link PdxInstance}. @param className the fully qualified class name that the PdxInstance will become when it is fully deserialized. @return the factory
(Inherited from IRegionService.)
Public methodGetPdxIgnoreUnreadFields
Returns whether Cache saves unread fields for Pdx types.
Public methodGetPdxReadSerialized
Returns whether { @link PdxInstance} is preferred for PDX types instead of .NET object.
Public methodGetQueryServiceTKey, TResult
Get a query service object to be able to query the cache.
(Inherited from IRegionService.)
Public methodGetRegionTKey, TValue
Returns an existing region given the full path from root, or null if no such region exists.
(Inherited from IRegionService.)
Public methodInitializeDeclarativeCache
Initializes the cache from an XML file.
Public methodRootRegionsTKey, TValue
Returns an array of root regions in the cache. This set is a snapshot and is not backed by the cache.
(Inherited from IRegionService.)
Top
Remarks
Caches are obtained from Crest methods on the [!:CacheFactory.Create] class.

When a cache is created a DistributedSystem must be specified.

When a cache will no longer be used, call [!:Cache.Close]. Once it [!:Cache.IsClosed] any attempt to use it will cause a CacheClosedException to be thrown.

A cache can have multiple root regions, each with a different name.

See Also