Increments 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.7.98
Syntax
Parameters
- key
- Type: System String
The key against which the value to be incremented is stored.
- inc
- Type: System Int32
The amount by which to increment.
Return Value
The new, incremented value.Remarks
A negative increment 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.Increment("Count"); // value will = 101 sharedData.Increment("Count", 7); // value will = 108
See Also