Click or drag to resize

CacheSet Method (String, Object, Double)

Save an object in the cache with the given name and time to live.

Namespace:  ASCOM.Utilities
Assembly:  ASCOM.Cache (in ASCOM.Cache.dll) Version: 3c9121baba46811fe6e53a58a05935662261416d
Syntax
public void Set(
	string Key,
	Object Value,
	double CacheTime
)

Parameters

Key
Type: SystemString
Name of this item in the cache. The key is case sensitive.
Value
Type: SystemObject
Object to be stored in the cache.
CacheTime
Type: SystemDouble
Time in seconds before the item will be automatically removed from the cache.
Exceptions
ExceptionCondition
InvalidValueExceptionWhen Key is null or empty.
InvalidValueExceptionWhen CacheTime is negative.
Remarks
Any existing item in the cache with the same name will be overwritten.
See Also