namespace Neo.Afx.Common
{
///
/// Implements the cache for an application.
///
public interface ICacheContext
{
///
/// Gets the value with the given key and deserialize it back to the specified type
///
///
///
///
T Get(string key);
///
/// Sets the value for the given key.
///
/// The key to be queried.
/// The value to be set.
/// The cache duration ub minutes.
void Set(string key, object value, int cacheDurationMinutes);
///
/// Removes the item with the given key.
///
/// The key to be queried.
void Remove(string key);
///
/// Removes all items from the cache.
///
void Clear();
}
}