namespace PalGain.Core
{
///
/// Represents a NopNullCache (caches nothing)
///
public partial class NopNullCache : ICacheManager
{
///
/// Gets or sets the value associated with the specified key.
///
/// Type
/// The key of the value to get.
/// The value associated with the specified key.
public virtual T Get(string key)
{
return default(T);
}
///
/// Adds the specified key and object to the cache.
///
/// key
/// Data
/// Cache time
public virtual void Set(string key, object data, int cacheTime)
{
}
///
/// Gets a value indicating whether the value associated with the specified key is cached
///
/// key
/// Result
public bool IsSet(string key)
{
return false;
}
///
/// Removes the value with the specified key from the cache
///
/// /key
public virtual void Remove(string key)
{
}
///
/// Removes items by pattern
///
/// pattern
public virtual void RemoveByPattern(string pattern)
{
}
///
/// Clear all cache data
///
public virtual void Clear()
{
}
}
}