Class CacheCollection
Represents a collection of the caches initialized within the same application domain.
Inheritance
System.Object
CacheCollection
Namespace:
Assembly: Alachisoft.NCache.Web.dll
Syntax
public class CacheCollection : IEnumerable
Remarks
An instance of this class can not be created. The class implements the IEnumerable interface.
Count
The count of the caches contained in the collection.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Item[String]
Gets the Cache instance at the specified key.
Declaration
public Cache this[string cacheId] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | cacheId | The cache id that uniquely identifies each cache instance |
Property Value
Type | Description |
---|---|
Cache | Alachisoft.NCache.Web.Caching.Cache instance |
GetEnumerator()
Returns a Alachisoft.NCache.Web.Caching.CacheCollectionEnumerator to enumerate over the caches contained in the collection.
Declaration
public IEnumerator GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator | Alachisoft.NCache.Web.Caching.CacheCollectionEnumerator |