I am using atomic operations to maintain several counters which works fine, but I am not sure how to get the current counter value, I tried to use:
bucket.Get( key ) and bucket.GetDocument( key )
but both gave exceptions. I am currently using another approach:
bucket.Increment( key, 0, 0, TimeSpan.FromHours( 1 ) )
e.g. delta = 0. But is this the correct way or a hack?