Creates a new cache using the specified system.
Namespace: GemStone.GemFire.Cache
Assembly: GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll)
Version: 2.5.0.1
Syntax
| C# |
|---|
public static Cache Create( string name, DistributedSystem system ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function Create ( _ name As String, _ system As DistributedSystem _ ) As Cache |
| Visual C++ |
|---|
public: static Cache^ Create ( String^ name, DistributedSystem^ system ) |
Parameters
- name
- String
the name to associate with the new cache
- system
- DistributedSystem
a DistributedSystem obtained by calling Connect(String)
Return Value
a Cache that uses the specified DistributedSystem for distribution.
Exceptions
| Exception | Condition |
|---|---|
| GemStone.GemFire.Cache..::IllegalArgumentException | If system is not connected ( IsConnected ) or name is null. |
| GemStone.GemFire.Cache..::CacheExistsException | If an open cache already exists. |
See Also
CacheFactory Class
GemStone.GemFire.Cache Namespace