CRM_EasyUI_Comon/DataCache.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Text;
using System.Web;
namespace GroupThink.CRM.Common
{
public class DataCache
{
// Methods
public DataCache() { }
public static object GetCache(string CacheKey)
{
return HttpRuntime.Cache[CacheKey];
}
public static void SetCache(string CacheKey, object objObject)
{
HttpRuntime.Cache.Insert(CacheKey, objObject);
}
public static void SetCache(string CacheKey, object objObject, DateTime absoluteExpiration, TimeSpan slidingExpiration)
{
HttpRuntime.Cache.Insert(CacheKey, objObject, null, absoluteExpiration, slidingExpiration);
}
public static object RemoveCache(string CacheKey)
{
return HttpRuntime.Cache.Remove(CacheKey);
}
public static void RemoveAllCache()
{
HttpRuntime.Cache.Remove("SystemConfiguration_Model"); //系统调置
//HttpRuntime.Cache.Remove("");
//HttpRuntime.Cache.Remove("");
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
