Table of Contents

Constructor CacheBuilder

Namespace
Scaleout.Client
Assembly
Scaleout.Client.dll

CacheBuilder(string, GridConnection)

Initializes a new instance of the CacheBuilder class with default policies.

public CacheBuilder(string cacheName, GridConnection gridConnection)

Parameters

cacheName string

Identifier of the Cache<TKey, TValue> to be constructed.

gridConnection GridConnection

Grid connection used to connect to a ScaleOut in-memory data grid.

CacheBuilder(uint, GridConnection)

Initializes a new instance of the CacheBuilder class with default policies.

public CacheBuilder(uint id, GridConnection gridConnection)

Parameters

id uint

ID of a Cache<TKey, TValue> namespace in the ScaleOut service.

gridConnection GridConnection

Grid connection used to connect to a ScaleOut in-memory data grid.

Remarks

This constructor is intended for use in rare scenarios when the service's internal numeric cache identifier is known but its string name is not.

CacheBuilder(string, GridConnection, IConfiguration)

Initializes a new instance of the CacheBuilder class, with initial settings provided by the supplied IConfiguration section. Pass a LegacyXmlConfiguration instance to signal the builder to use a legacy web.config/app.config file.

public CacheBuilder(string cacheName, GridConnection gridConnection, IConfiguration config)

Parameters

cacheName string

Identifier of the Cache<TKey, TValue> to be constructed. Maximum length is 280 characters.

gridConnection GridConnection

Grid connection used to connect to a ScaleOut in-memory data grid.

config IConfiguration

Microsoft.Extensions.Configuration section containing ScaleOut settings, or an LegacyXmlConfiguration instance to use a legacy web.config/app.config file.

Remarks

See https://docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration/ for details on the Microsoft.Extensions.Configuration API.

CacheBuilder(uint, GridConnection, IConfiguration)

Initializes a new instance of the CacheBuilder class, with initial settings provided by the supplied IConfiguration section. Pass a LegacyXmlConfiguration instance to signal the builder to use a legacy web.config/app.config file.

public CacheBuilder(uint id, GridConnection gridConnection, IConfiguration config)

Parameters

id uint

ID of a Cache<TKey, TValue> namespace in the ScaleOut service.

gridConnection GridConnection

Grid connection used to connect to a ScaleOut in-memory data grid.

config IConfiguration

Microsoft.Extensions.Configuration section containing ScaleOut settings, or an LegacyXmlConfiguration instance to use a legacy web.config/app.config file.

Remarks

This constructor is intended for use in rare scenarios when the service's internal numeric cache identifier is known but its string name is not.

See https://docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration/ for details on the Microsoft.Extensions.Configuration API.