| IMapTKey, TValuePutTransient Method |
Namespace:
Hazelcast.Core
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.9.3
Syntax void PutTransient(
TKey key,
TValue value,
long ttl,
TimeUnit timeunit
)
Sub PutTransient (
key As TKey,
value As TValue,
ttl As Long,
timeunit As TimeUnit
)
void PutTransient(
TKey key,
TValue value,
long long ttl,
TimeUnit timeunit
)
abstract PutTransient :
key : 'TKey *
value : 'TValue *
ttl : int64 *
timeunit : TimeUnit -> unit
Parameters
- key
- Type: TKey
key of the entry - value
- Type: TValue
value of the entry - ttl
- Type: SystemInt64
maximum time for this entry to stay in the map.
0 means infinite.
- timeunit
- Type: Hazelcast.CoreTimeUnit
TimeUnit for the ttl
Remarks
Same as
Put(TKey, TValue, Int64, TimeUnit)
but MapStore, if defined,
will not be called to store/persist the entry. If ttl is 0, then
the entry lives forever.
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