Source/NFX/DataAccess/Cache/Table.cs
/// <summary>
/// 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
/// </summary>
/// <param name="key">Item's unique key</param>
/// <param name="value">Item</param>
/// <param name="rec">Returns new or existing CacheRec</param>
/// <param name="maxAgeSec">For how long will the item exist in cache before it gets swept out. Pass 0 to use table-level setting (default)</param>
/// <param name="priority">Items priority relative to others in the table used during collision resolution, 0 = default</param>
/// <param name="absoluteExpirationUTC">Sets absolute UTC time stamp when item should be swept out of cache, null is default</param>
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
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
public bool Put(ulong key, object value, out CacheRec rec, int maxAgeSec = 0, int priority = 0, DateTime? absoluteExpirationUTC = null)
            {
                Interlocked.Increment(ref stat_PutCount);
                return _Put(key, value, out rec, maxAgeSec, priority, absoluteExpirationUTC);
            }
public bool Put ( ulong key , object value , out CacheRec rec , int maxAgeSec = 0 , int priority = 0 , DateTime ? absoluteExpirationUTC = null ) { Interlocked . Increment ( ref stat_PutCount ) ; return _Put ( key , value , out rec , maxAgeSec , priority , absoluteExpirationUTC ) ; }
Puts a key-identified item into this table.
Puts a key - identified item into this table .
key
ulong
Item's unique key
Item ' s unique key
value
object
None
CacheRec
out
maxAgeSec
int
For how long will the item exist in cache before it gets swept out. Pass 0 to use table-level setting (default)
For how long will the item exist in cache before it gets swept out . Pass 0 to use table - level setting ( default )
priority
int
Items priority relative to others in the table used during collision resolution, 0 = default
Items priority relative to others in the table used during collision resolution 0 = default
absoluteExpirationUTC
DateTime?
Sets absolute UTC time stamp when item should be swept out of cache, null is default
Sets absolute UTC time stamp when item should be swept out of cache null is default
rec
Returns new or existing CacheRec
Returns new or existing CacheRec