Associates a given value to the specified key and replicates it to the
cluster. If there is an old value, it will be replaced by the specified
one and returned from the call.
Namespace: Hazelcast.Core
Assembly: Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.9.1
Syntax
Parameters
- key
- Type: TKey
key with which the specified value is to be associated. - value
- Type: TValue
value to be associated with the specified key. - ttl
- Type: SystemInt64
ttl to be associated with the specified key-value pair. - timeunit
- Type: Hazelcast.CoreTimeUnit
TimeUnit to be used for the ttl value.
Return Value
Type: TValueold value of the entry
Remarks
See Also