Click or drag to resize
CacheFactoryCreate Method (String, DistributedSystem)
Creates a new cache using the specified system.

Namespace: GemStone.GemFire.Cache
Assembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntax
public static Cache Create(
	string name,
	DistributedSystem system
)

Parameters

name
Type: SystemString
the name to associate with the new cache
system
Type: GemStone.GemFire.CacheDistributedSystem
a DistributedSystem obtained by calling [!:DistributedSystem.Connect]

Return Value

Type: Cache
a Cache that uses the specified DistributedSystem for distribution.
Exceptions
ExceptionCondition
IllegalArgumentException If system is not connected ( [!:DistributedSystem.IsConnected] ) or name is null.
CacheExistsException If an open cache already exists.
See Also