コード例 #1
0
        private Task Scenario4(IFdbTransaction tr)
        {
            var location = FdbSubspace.Create(Slice.FromAscii("TEST"));

            //tr.Set(location.Key, Slice.FromString("NARF"));
            //tr.AtomicAdd(location.Key, Slice.FromFixedU32(1));
            tr.AtomicAnd(location.Key, Slice.FromFixedU32(7));
            tr.AtomicXor(location.Key, Slice.FromFixedU32(3));
            tr.AtomicXor(location.Key, Slice.FromFixedU32(15));
            return(Task.FromResult <object>(null));
        }
コード例 #2
0
		private Task Scenario4(IFdbTransaction tr)
		{
			var location = FdbSubspace.Create(Slice.FromAscii("TEST"));

			//tr.Set(location.Key, Slice.FromString("NARF"));
			//tr.AtomicAdd(location.Key, Slice.FromFixedU32(1));
			tr.AtomicAnd(location.Key, Slice.FromFixedU32(7));
			tr.AtomicXor(location.Key, Slice.FromFixedU32(3));
			tr.AtomicXor(location.Key, Slice.FromFixedU32(15));
			return Task.FromResult<object>(null);
		}