Decrements an integer value associated with the specified key in the Shared Data Server.
Namespace: Facilita.Fc.RuntimeAssembly: fc_clr (in fc_clr.dll) Version: 9.5.8.37
Syntax
Parameters
- key
- Type: System String
The key against which the value to be decremented is stored.
- inc
- Type: System Int32
The amount by which to decrement.
Return Value
The new, decremented value.Remarks
A negative decrement value can be supplied.
Note |
---|
The keys are case-sensitive. |
Examples
using Facilita.Fc.Runtime; SharedData sharedData = new SharedData(GetString("sharedDataHost", "localhost"), GetInt("sharedDataPort", 5099)); sharedData.Set("Count", "100"); sharedData.Decrement("Count"); // value will = 99 sharedData.Decrement("Count", 7); // value will = 92
See Also