Gets an arbitrary open instance of Cache produced by an earlier call to Create(String, DistributedSystem).

Namespace: GemStone.GemFire.Cache
Assembly:  GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll)
Version: 2.5.0.1

Syntax

C#
public static Cache GetAnyInstance()
Visual Basic (Declaration)
Public Shared Function GetAnyInstance As Cache
Visual C++
public:
static Cache^ GetAnyInstance ()

Exceptions

ExceptionCondition
GemStone.GemFire.Cache..::CacheClosedException if a cache has not been created or the only created one is closed ( IsClosed )
GemStone.GemFire.Cache..::EntryNotFoundException if a cache with specified system not found

See Also