By browsing on this website you are agreeing to our 'Terms & Conditions' and the 'Privacy Policy' in regards to your rights and personal data handling.
// Single value
session.Advanced.ClusterTransaction.Lazily.GetCompareExchangeValue<T>(key);
// Multiple values
session.Advanced.ClusterTransaction.Lazily.GetCompareExchangeValues<T>(keys);
// Single value
session.Advanced.ClusterTransaction.Lazily.GetCompareExchangeValueAsync<T>(key);
// Multiple values
session.Advanced.ClusterTransaction.Lazily.GetCompareExchangeValuesAsync<T>(keys);
Parameters
Type
Description
key
string
The key to retrieve
keys
string[]
Array of keys to retrieve
Return Value
Description
Lazy<CompareExchangeValue<T>>
If the key doesn't exist it will return null
Lazy<Dictionary<string, CompareExchangeValue<T>>>
If a key doesn't exists the associate value will be null