Asynchronously puts the given key and value.
Namespace: Hazelcast.Core
Assembly: Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.8.0.1
Syntax
Parameters
Return Value
Type: TaskTValueTask<V> from which the old value of the key can be retrieved.
Remarks
Task<V> task = map.PutAsync(key, value); // do some other stuff, when ready get the result V oldValue = task.Result;
try { Task<V> task = map.PutAsync(key, value); if(task.Wait(TimeSpan.FromMilliseconds(40))) { V value = task.Result; } else { //Result not ready }
Warning:
This method uses GetHashCode and Equals of binary form of the key, not the actual implementations of GetHashCode and Equals defined in key's class.See Also