Class CacheCollection
Represents a collection of the caches initialized within the same application domain.
Inheritance
Assembly: Alachisoft.NCache.Client.dll
Syntax
public class CacheCollection : IEnumerable
Remarks
An instance of this class can not be created. The class implements the IEnumerable interface.
Constructors
CacheCollection(StringComparer)
Creates a CacheCollection instance with the provided StringComparer.
Declaration
public CacheCollection(StringComparer invariantCultureIgnoreCase)
Parameters
Type | Name | Description |
---|---|---|
System.StringComparer | invariantCultureIgnoreCase | StringComparer to be used by the cache collection for GetHashCode implementations. |
Properties
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 from the collection for the specified key.
Declaration
public ICache this[string cacheId] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | cacheId | The cache id that uniquely identifies each cache instance. |
Property Value
Type | Description |
---|---|
ICache | This interface contains the services and methods that are used to perform operations on the cache. |
Methods
GetEnumerator()
Returns an interface which iterates over existing caches.
Declaration
public IEnumerator GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator | An System.Collections.IDictionaryEnumerator for the Alachisoft.NCache.Client.CacheCollection. |