CacheHelper.SetCache Method (String, Object, DateTime, TimeSpan)

HD.Common

CacheHelperSetCache Method (String, Object, DateTime, TimeSpan) Helper帮助文档
设置数据缓存

Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static void SetCache(
	string CacheKey,
	Object objObject,
	DateTime absoluteExpiration,
	TimeSpan slidingExpiration
)
Public Shared Sub SetCache ( 
	CacheKey As String,
	objObject As Object,
	absoluteExpiration As DateTime,
	slidingExpiration As TimeSpan
)
public:
static void SetCache(
	String^ CacheKey, 
	Object^ objObject, 
	DateTime absoluteExpiration, 
	TimeSpan slidingExpiration
)
static member SetCache : 
        CacheKey : string * 
        objObject : Object * 
        absoluteExpiration : DateTime * 
        slidingExpiration : TimeSpan -> unit 

Parameters

CacheKey
Type: SystemString

[Missing <param name="CacheKey"/> documentation for "M:HD.Common.CacheHelper.SetCache(System.String,System.Object,System.DateTime,System.TimeSpan)"]

objObject
Type: SystemObject

[Missing <param name="objObject"/> documentation for "M:HD.Common.CacheHelper.SetCache(System.String,System.Object,System.DateTime,System.TimeSpan)"]

absoluteExpiration
Type: SystemDateTime

[Missing <param name="absoluteExpiration"/> documentation for "M:HD.Common.CacheHelper.SetCache(System.String,System.Object,System.DateTime,System.TimeSpan)"]

slidingExpiration
Type: SystemTimeSpan

[Missing <param name="slidingExpiration"/> documentation for "M:HD.Common.CacheHelper.SetCache(System.String,System.Object,System.DateTime,System.TimeSpan)"]

See Also

Reference