Click or drag to resize
Cache Class

Note: This API is now obsolete.

Provides a distributed cache.
Inheritance Hierarchy
SystemObject
  [T:GemStone.GemFire.Cache.Internal.SBWrap<gemfire::Cache>]
    GemStone.GemFire.CacheCache

Namespace: GemStone.GemFire.Cache
Assembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntax
[ObsoleteAttribute("Use classes and APIs from the GemStone.GemFire.Cache.Generic namespace")]
public sealed class Cache : [T:GemStone.GemFire.Cache.Internal.SBWrap<gemfire::Cache>], 
	IGemFireCache

The Cache type exposes the following members.

Properties
  NameDescription
Public propertyDistributedSystem
Returns the distributed system used to [!:CacheFactory.Create] this cache.
Public propertyIsClosed
True if this cache has been closed.
Public propertyName
Returns the name of this cache.
Top
Methods
  NameDescription
Public methodClose
Terminates this object cache and releases all the local resources.
Public methodClose(Boolean)
Terminates this object cache and releases all the local resources.
Public methodCreateAuthenticatedView(Properties)
Returns the instance of IRegionService to do the operation on Cache with different Credential.
Public methodCreateAuthenticatedView(Properties, String)
Returns the instance of IRegionService to do the operation on Cache with different Credential.
Public methodCreateRegion
Public methodCreateRegionFactory
Returns the instance of RegionFactory to create the region
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetQueryService
Get a query service object to be able to query the cache. Supported only when cache is created from Pool(pool is in multiuserSecure mode)
Public methodGetQueryService(String)
Get a query service object to be able to query the cache. Use only when Cache has more than one Pool.
Public methodGetRegion
Returns an existing region given the full path from root, or null if no such region exists.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeDeclarativeCache
Initializes the cache from an XML file.
Public methodReadyForEvents
Send the client-ready message to the server for a durable client.
Public methodRootRegions
Returns an array of root regions in the cache. This set is a snapshot and is not backed by the cache.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
Caches are obtained from Create methods on the [!:CacheFactory.Create] class.

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