Craig's Utility Library  4.0 Beta
Utilities.DataTypes.Caching.Interfaces.ICache Interface Reference

Cache interface More...

Inheritance diagram for Utilities.DataTypes.Caching.Interfaces.ICache:
Utilities.DataTypes.Caching.BaseClasses.CacheBase Utilities.DataTypes.Caching.Default.Cache Utilities.DataTypes.Caching.Default.CacheCache Utilities.DataTypes.Caching.Default.ItemCache Utilities.DataTypes.Caching.Default.SessionCache

Public Member Functions

void Add (string Key, object Value, IEnumerable< string > Tags)
 Adds a value/key combination and assigns tags to it More...
 
IEnumerable< object > GetByTag (string Tag)
 Gets the objects associated with a specific tag More...
 
void RemoveByTag (string Tag)
 Removes all items associated with the tag specified More...
 

Properties

string Name [get]
 Cache name More...
 
IEnumerable< string > Tags [get]
 The tags used thus far More...
 

Detailed Description

Cache interface

Definition at line 30 of file ICache.cs.

Member Function Documentation

void Utilities.DataTypes.Caching.Interfaces.ICache.Add ( string  Key,
object  Value,
IEnumerable< string >  Tags 
)

Adds a value/key combination and assigns tags to it

Parameters
KeyKey to add
TagsTags to associate with the key/value pair
ValueValue to add

Implemented in Utilities.DataTypes.Caching.BaseClasses.CacheBase.

IEnumerable<object> Utilities.DataTypes.Caching.Interfaces.ICache.GetByTag ( string  Tag)

Gets the objects associated with a specific tag

Parameters
TagTag to use
Returns
The objects associated with the tag

Implemented in Utilities.DataTypes.Caching.BaseClasses.CacheBase.

void Utilities.DataTypes.Caching.Interfaces.ICache.RemoveByTag ( string  Tag)

Removes all items associated with the tag specified

Parameters
TagTag to remove

Implemented in Utilities.DataTypes.Caching.BaseClasses.CacheBase.

Property Documentation

string Utilities.DataTypes.Caching.Interfaces.ICache.Name
get

Cache name

Definition at line 35 of file ICache.cs.

IEnumerable<string> Utilities.DataTypes.Caching.Interfaces.ICache.Tags
get

The tags used thus far

Definition at line 40 of file ICache.cs.


The documentation for this interface was generated from the following file: