Click or drag to resize
CacheHelper.Add Method (String, Object, CMSCacheDependency, DateTime, TimeSpan)
Mirror to Cache.Add().

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 10.0.0
Syntax
C#
public static void Add(
	string key,
	Object value,
	CMSCacheDependency dependencies,
	DateTime absoluteExpiration,
	TimeSpan slidingExpiration
)

Parameters

key
Type: System.String
Cache key
value
Type: System.Object
Cache value
dependencies
Type: CMS.Helpers.CMSCacheDependency
Cache dependencies
absoluteExpiration
Type: System.DateTime
Cache absolute expiration
slidingExpiration
Type: System.TimeSpan
Cache sliding expiration
See Also