C# Class Dian.Web.Utility.DataCache

缓存相关的操作类
Mostra file Open project: stone0090/dian

Public Methods

Method Description
GetCache ( string cacheKey ) : object

获取当前应用程序指定CacheKey的Cache值

SetCache ( string cacheKey, object objObject ) : void

设置当前应用程序指定CacheKey的Cache值

SetCache ( string cacheKey, object objObject, System.DateTime absoluteExpiration, System.TimeSpan slidingExpiration ) : void

设置当前应用程序指定CacheKey的Cache值

Method Details

GetCache() public static method

获取当前应用程序指定CacheKey的Cache值
public static GetCache ( string cacheKey ) : object
cacheKey string
return object

SetCache() public static method

设置当前应用程序指定CacheKey的Cache值
public static SetCache ( string cacheKey, object objObject ) : void
cacheKey string
objObject object
return void

SetCache() public static method

设置当前应用程序指定CacheKey的Cache值
public static SetCache ( string cacheKey, object objObject, System.DateTime absoluteExpiration, System.TimeSpan slidingExpiration ) : void
cacheKey string
objObject object
absoluteExpiration System.DateTime
slidingExpiration System.TimeSpan
return void