Craig's Utility Library
4.0 Beta
|
Cache used in ASP.Net for cache level cache More...
Public Member Functions | |
CacheCache () | |
Constructor More... | |
override void | Add (string key, object value) |
Add item to the cache More... | |
override void | Clear () |
Clears the cache More... | |
override bool | Contains (KeyValuePair< string, object > item) |
Determines if the item is in the cache More... | |
override bool | ContainsKey (string key) |
Checks if the cache contains the key More... | |
override void | CopyTo (KeyValuePair< string, object >[] array, int arrayIndex) |
Copies to an array More... | |
override IEnumerator< KeyValuePair< string, object > > | GetEnumerator () |
Gets the enumerator More... | |
override bool | Remove (string key) |
Removes an item from the cache More... | |
override bool | Remove (KeyValuePair< string, object > item) |
Removes an item from an array More... | |
override bool | TryGetValue (string key, out object value) |
Attempt to get a value More... | |
Public Member Functions inherited from Utilities.DataTypes.Caching.BaseClasses.CacheBase | |
void | Add (KeyValuePair< string, object > item) |
Adds an item to the cache More... | |
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... | |
Public Member Functions inherited from Utilities.DataTypes.Patterns.BaseClasses.SafeDisposableBaseClass | |
void | Dispose () |
Dispose function More... | |
Protected Member Functions | |
override void | Dispose (bool Managed) |
Disposes of the cache More... | |
Protected Member Functions inherited from Utilities.DataTypes.Caching.BaseClasses.CacheBase | |
CacheBase () | |
Constructor More... | |
Protected Member Functions inherited from Utilities.DataTypes.Patterns.BaseClasses.SafeDisposableBaseClass | |
SafeDisposableBaseClass () | |
Construct More... | |
Properties | |
override int | Count [get] |
The number of items in the cache More... | |
override ICollection< string > | Keys [get] |
Keys More... | |
override string | Name [get] |
Name More... | |
override ICollection< object > | Values [get] |
Values More... | |
Properties inherited from Utilities.DataTypes.Caching.BaseClasses.CacheBase | |
abstract int | Count [get] |
The number of items in the cache More... | |
bool | IsReadOnly [get] |
Read only More... | |
abstract ICollection< string > | Keys [get] |
Keys More... | |
abstract string | Name [get] |
Name More... | |
IEnumerable< string > | Tags [get] |
The tags used thus far More... | |
abstract ICollection< object > | Values [get] |
Values More... | |
ListMapping< string, string > | TagMappings [get] |
Tag mappings More... | |
object | this[string key] [get, set] |
Indexer More... | |
Properties inherited from Utilities.DataTypes.Caching.Interfaces.ICache | |
string | Name [get] |
Cache name More... | |
IEnumerable< string > | Tags [get] |
The tags used thus far More... | |
Cache used in ASP.Net for cache level cache
Definition at line 33 of file CacheCache.cs.
Utilities.DataTypes.Caching.Default.CacheCache.CacheCache | ( | ) |
Constructor
Definition at line 38 of file CacheCache.cs.
|
virtual |
Add item to the cache
key | Key of the item |
value | Value to add |
Implements Utilities.DataTypes.Caching.BaseClasses.CacheBase.
Definition at line 100 of file CacheCache.cs.
|
virtual |
Clears the cache
Implements Utilities.DataTypes.Caching.BaseClasses.CacheBase.
Definition at line 114 of file CacheCache.cs.
|
virtual |
Determines if the item is in the cache
item | item to check for |
Implements Utilities.DataTypes.Caching.BaseClasses.CacheBase.
Definition at line 128 of file CacheCache.cs.
|
virtual |
Checks if the cache contains the key
key | Key to check |
Implements Utilities.DataTypes.Caching.BaseClasses.CacheBase.
Definition at line 138 of file CacheCache.cs.
|
virtual |
Copies to an array
array | Array to copy to |
arrayIndex | Index to start at |
Implements Utilities.DataTypes.Caching.BaseClasses.CacheBase.
Definition at line 150 of file CacheCache.cs.
|
protectedvirtual |
Disposes of the cache
Managed | Managed or not |
Implements Utilities.DataTypes.Patterns.BaseClasses.SafeDisposableBaseClass.
Definition at line 219 of file CacheCache.cs.
|
virtual |
Gets the enumerator
Implements Utilities.DataTypes.Caching.BaseClasses.CacheBase.
Definition at line 160 of file CacheCache.cs.
|
virtual |
Removes an item from the cache
key | key to remove |
Implements Utilities.DataTypes.Caching.BaseClasses.CacheBase.
Definition at line 177 of file CacheCache.cs.
|
virtual |
Removes an item from an array
item | Item to remove |
Implements Utilities.DataTypes.Caching.BaseClasses.CacheBase.
Definition at line 191 of file CacheCache.cs.
|
virtual |
Attempt to get a value
key | Key to get |
value | Value of the item |
Implements Utilities.DataTypes.Caching.BaseClasses.CacheBase.
Definition at line 204 of file CacheCache.cs.
|
get |
The number of items in the cache
Definition at line 47 of file CacheCache.cs.
|
get |
Keys
Definition at line 60 of file CacheCache.cs.
|
get |
Name
Definition at line 70 of file CacheCache.cs.
|
get |
Values
Definition at line 76 of file CacheCache.cs.