using System;
using System.Web;
namespace XPump.DALFactory
{
///
/// 缓存操作类
///
internal class DataCache
{
///
/// 获取当前应用程序指定CacheKey的Cache值
///
///
///
public static object GetCache(string CacheKey)
{
System.Web.Caching.Cache objCache = HttpRuntime.Cache;
return objCache[CacheKey];
}
///
/// 设置当前应用程序指定CacheKey的Cache值
///
///
///
public static void SetCache(string CacheKey, object objObject)
{
System.Web.Caching.Cache objCache = HttpRuntime.Cache;
objCache.Insert(CacheKey, objObject);
}
}
}