[This is preliminary documentation and is subject to change.]
Puts a key-identified item into this table.
If item with such key is already in this table then replaces it and returns false, returns true otherwise
Namespace: NFX.DataAccess.CacheAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public bool Put(
ulong key,
Object value,
out CacheRec rec,
int maxAgeSec = 0,
int priority = 0,
Nullable<DateTime> absoluteExpirationUTC = null
)
public bool Put(
ulong key,
Object value,
out CacheRec rec,
int maxAgeSec = 0,
int priority = 0,
Nullable<DateTime> absoluteExpirationUTC = null
)
Public Function Put (
key As ULong,
value As Object,
<OutAttribute> ByRef rec As CacheRec,
Optional maxAgeSec As Integer = 0,
Optional priority As Integer = 0,
Optional absoluteExpirationUTC As Nullable(Of DateTime) = Nothing
) As Boolean
Public Function Put (
key As ULong,
value As Object,
<OutAttribute> ByRef rec As CacheRec,
Optional maxAgeSec As Integer = 0,
Optional priority As Integer = 0,
Optional absoluteExpirationUTC As Nullable(Of DateTime) = Nothing
) As Boolean
public:
bool Put(
unsigned long long key,
Object^ value,
[OutAttribute] CacheRec^% rec,
int maxAgeSec = 0,
int priority = 0,
Nullable<DateTime> absoluteExpirationUTC = nullptr
)
public:
bool Put(
unsigned long long key,
Object^ value,
[OutAttribute] CacheRec^% rec,
int maxAgeSec = 0,
int priority = 0,
Nullable<DateTime> absoluteExpirationUTC = nullptr
)
member Put :
key : uint64 *
value : Object *
rec : CacheRec byref *
?maxAgeSec : int *
?priority : int *
?absoluteExpirationUTC : Nullable<DateTime>
(* Defaults:
let _maxAgeSec = defaultArg maxAgeSec 0
let _priority = defaultArg priority 0
let _absoluteExpirationUTC = defaultArg absoluteExpirationUTC null
*)
-> bool
member Put :
key : uint64 *
value : Object *
rec : CacheRec byref *
?maxAgeSec : int *
?priority : int *
?absoluteExpirationUTC : Nullable<DateTime>
(* Defaults:
let _maxAgeSec = defaultArg maxAgeSec 0
let _priority = defaultArg priority 0
let _absoluteExpirationUTC = defaultArg absoluteExpirationUTC null
*)
-> bool
Parameters
- key
- Type:
System UInt64
Item's unique key
- value
- Type:
System Object
Item
- rec
- Type: NFX.DataAccess.Cache CacheRec
Returns new or existing CacheRec
- maxAgeSec (Optional)
- Type:
System Int32
For how long will the item exist in cache before it gets swept out. Pass 0 to use table-level setting (default)
- priority (Optional)
- Type:
System Int32
Items priority relative to others in the table used during collision resolution, 0 = default
- absoluteExpirationUTC (Optional)
- Type:
System Nullable
DateTime
Sets absolute UTC time stamp when item should be swept out of cache, null is default
Return Value
Type:
Boolean