Method GetList
GetList<T>(String, ReadThruOptions)
Gets distributed list interface against the provided collection name.
Declaration
IDistributedList<T> GetList<T>(string key, ReadThruOptions options = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Name of collection. |
ReadThruOptions | options | ReadThruOptions to read from data source. These can be either ReadThru, ReadThruForced or None. |
Returns
Type | Description |
---|---|
IDistributedList<T> | Interface for using list. |
Type Parameters
Name | Description |
---|---|
T | Type of list items. |
Examples
The following code sample shows how to get a distributed list handler from cache.
ICache cache = CacheManager.GetCache("myCache");
string dataTypeName = "DistributedList";
IDistributedList<Product> list = cache.DataTypeManager.GetList<Product>(dataTypeName);