C# Class Dian.Web.Utility.DataCache

缓存相关的操作类
Afficher le fichier Open project: stone0090/dian

Méthodes publiques

Méthode 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 méthode

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

SetCache() public static méthode

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

SetCache() public static méthode

设置当前应用程序指定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
Résultat void