CacheHelper-缓存
public static class CacheHelper
{
#region 设置缓存容器
//缓存容器
private static Dictionary CacheDictionary = new Dictionary();
///
/// 添加缓存
///
public static void AddCache(string key, object value)
{
CacheDictionary.Add(key, value);
}
///
/// 获取缓存
///
public static T GetCache(string key)
{
return (T)CacheDictionary[key];
}
///
/// 判断缓存是否存在
///
///
///
public static bool Exsits(string key)
{
return CacheDictionary.ContainsKey(key);
}
#endregion
}