Class DataCaching<T>
Data caching with MonkeyCache
.
Inherited Members
Namespace: EduCATS.Data.Caching
Assembly: EduCATS.dll
Syntax
public static class DataCaching<T>
Type Parameters
Name | Description |
---|---|
T | Type to cache. |
Methods
Get(string)
Get data cahce for key.
Declaration
public static T Get(string key)
Parameters
Type | Name | Description |
---|---|---|
string | key | Key for data. |
Returns
Type | Description |
---|---|
T | Cached data if key exists. |
RemoveCache()
Delete all cache.
Declaration
public static void RemoveCache()
Save(string, T)
Save data cache for specified key.
Declaration
public static void Save(string key, T data)
Parameters
Type | Name | Description |
---|---|---|
string | key | Key for data. |
T | data | Data to cache. |