Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Tuple<Int64, Int64> IncrementMultiple(string counterName, string firstCounter, long firstBy, string secondCounter, long secondBy)
- {
- Key recordKey = new Key(NAMESPACE, MULTI_SET, counterName);
- Bin incrementCounter1 = new Bin(firstCounter, firstBy);
- Bin incrementCounter2 = new Bin(secondCounter, secondBy);
- Record record = asClient.Operate(null, recordKey, Operation.Add(incrementCounter1), Operation.Add(incrementCounter2), Operation.Get(firstCounter), Operation.Get(secondCounter));
- return Tuple.Create<Int64, Int64>(record.GetLong(firstCounter), record.GetLong(secondCounter));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement