CacheSetInt(String, Int32, Double) Method

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

Definition

Namespace: ASCOM.Utilities
Assembly: ASCOM.Cache (in ASCOM.Cache.dll) Version: 7.1.3+4851.c5da65c2b
C#
public void SetInt(
	string Key,
	int Value,
	double CacheTime
)

Parameters

Key  String
Name of this item in the cache. The key is case sensitive.
Value  Int32
Integer value to be stored in the cache.
CacheTime  Double
Time in seconds before the item will be automatically removed from the cache.

Remarks

Any existing item in the cache with the same name will be overwritten.

Exceptions

InvalidValueExceptionWhen Key is null or empty.
InvalidValueExceptionWhen CacheTime is negative.

See Also