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

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,
	string cacheXml
)

Parameters

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

Return Value

Type: Cache
a Cache that uses the specified DistributedSystem for distribution.
Exceptions
ExceptionCondition
IllegalArgumentException If system is not [!:DistributedSystem.IsConnected] or name is null
CacheExistsException ff an open cache already exists
CacheXmlException if something went wrong while parsing the XML
IllegalStateException if the XML file is well-formed but not valid (consistent)
See Also