[This is preliminary documentation and is subject to change.]
Puts an object identified by a key into cache returning the result of the put.
For example, put may have added nothing if the table is capped and the space is occupied with data of higher priority
Namespace: NFX.ApplicationModel.PileAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
PutResult Put(
TKey key,
Object obj,
Nullable<int> maxAgeSec = null,
int priority = 0,
Nullable<DateTime> absoluteExpirationUTC = null
)
PutResult Put(
TKey key,
Object obj,
Nullable<int> maxAgeSec = null,
int priority = 0,
Nullable<DateTime> absoluteExpirationUTC = null
)
Function Put (
key As TKey,
obj As Object,
Optional maxAgeSec As Nullable(Of Integer) = Nothing,
Optional priority As Integer = 0,
Optional absoluteExpirationUTC As Nullable(Of DateTime) = Nothing
) As PutResult
Function Put (
key As TKey,
obj As Object,
Optional maxAgeSec As Nullable(Of Integer) = Nothing,
Optional priority As Integer = 0,
Optional absoluteExpirationUTC As Nullable(Of DateTime) = Nothing
) As PutResult
PutResult Put(
TKey key,
Object^ obj,
Nullable<int> maxAgeSec = nullptr,
int priority = 0,
Nullable<DateTime> absoluteExpirationUTC = nullptr
)
PutResult Put(
TKey key,
Object^ obj,
Nullable<int> maxAgeSec = nullptr,
int priority = 0,
Nullable<DateTime> absoluteExpirationUTC = nullptr
)
abstract Put :
key : 'TKey *
obj : Object *
?maxAgeSec : Nullable<int> *
?priority : int *
?absoluteExpirationUTC : Nullable<DateTime>
(* Defaults:
let _maxAgeSec = defaultArg maxAgeSec null
let _priority = defaultArg priority 0
let _absoluteExpirationUTC = defaultArg absoluteExpirationUTC null
*)
-> PutResult
abstract Put :
key : 'TKey *
obj : Object *
?maxAgeSec : Nullable<int> *
?priority : int *
?absoluteExpirationUTC : Nullable<DateTime>
(* Defaults:
let _maxAgeSec = defaultArg maxAgeSec null
let _priority = defaultArg priority 0
let _absoluteExpirationUTC = defaultArg absoluteExpirationUTC null
*)
-> PutResult
Parameters
- key
- Type: TKey
A table-wide unique obvject key
- obj
- Type:
System Object
An object to put
- maxAgeSec (Optional)
- Type:
System Nullable
Int32
If null then the default maxAgeSec is taken from Options property, otherwise specifies the length of items life in seconds
- priority (Optional)
- Type:
System Int32
The priority of this item. If there is no space in future the items with lower priorities will not evict existing data with highr priorities
- absoluteExpirationUTC (Optional)
- Type:
System Nullable
DateTime
Optional UTC timestamp of object eviction from cache
Return Value
Type:
PutResultThe status of put - whether item was inserted/replaced(if key exists)/overwritten or collided with higher-prioritized existing data