Table Put Method (UInt64, Object, CacheRec , Int32, Int32, Nullable DateTime )NFX Class Library

[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.Cache
Assembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

public bool Put(
	ulong key,
	Object value,
	out CacheRec rec,
	int maxAgeSec = 0,
	int priority = 0,
	Nullable<DateTime> absoluteExpirationUTC = null
)

Parameters

key
Type: OnlineSystem UInt64
Item's unique key
value
Type: OnlineSystem Object
Item
rec
Type: NFX.DataAccess.Cache CacheRec 
Returns new or existing CacheRec
maxAgeSec (Optional)
Type: OnlineSystem 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: OnlineSystem Int32
Items priority relative to others in the table used during collision resolution, 0 = default
absoluteExpirationUTC (Optional)
Type: OnlineSystem Nullable OnlineDateTime 
Sets absolute UTC time stamp when item should be swept out of cache, null is default

Return Value

Type: OnlineBoolean
See Also