CacheSetString(String, String, Double, Double) Method
Save a string value in the cache with the given name and time to live, restricting maximum call frequency to the range 2 to 1000 calls per second if required.
Namespace: ASCOM.UtilitiesAssembly: ASCOM.Cache (in ASCOM.Cache.dll) Version: 7.1.3+4851.c5da65c2b
public void SetString(
string Key,
string Value,
double CacheTime,
double MaximumCallFrequency
)
Public Sub SetString (
Key As String,
Value As String,
CacheTime As Double,
MaximumCallFrequency As Double
)
public:
virtual void SetString(
String^ Key,
String^ Value,
double CacheTime,
double MaximumCallFrequency
) sealed
Parameters
- Key String
- Name of this item in the cache. The key is case sensitive.
- Value String
- String value to be stored in the cache.
- CacheTime Double
- Time in seconds before the item will be automatically removed from the cache.
- MaximumCallFrequency Double
- Maximum number of set calls per second that are to be allowed for this item. A value of 0.0 will disable throttling. See Dispose for further information.
Any existing item in the cache with the same name will be overwritten.