[This is preliminary documentation and is subject to change.]
The Table type exposes the following members.Constructors
Name | Description | |
---|---|---|
![]() | Table | Initializes a new instance of the Table class |
Methods
Name | Description | |
---|---|---|
![]() | ![]() | Determines whether the specified object is equal to the current object. (Inherited from ![]() |
![]() | ![]() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from ![]() |
![]() | Get |
Retrieves an item from this table by key where item age is less or equal to requested, or null if it does not exist
|
![]() | ![]() | Serves as the default hash function. (Inherited from ![]() |
![]() | GetOrPut TContext |
Retrieves an item from this table by key where item age is less or equal to requested, or
calls the itemFactory function and inserts the value in the store
|
![]() | ![]() | Gets the (Inherited from ![]() ![]() |
![]() | ![]() | Creates a shallow copy of the current (Inherited from ![]() ![]() |
![]() | Put(UInt64, Object, Int32, Int32, Nullable DateTime ) |
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
|
![]() | Put(UInt64, Object, CacheRec , Int32, Int32, Nullable DateTime ) |
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
|
![]() | Remove |
Removes a key-identified item from the named table returning true when item was deleted
or false when item was not found
|
![]() | Sweep | |
![]() | ![]() | Returns a string that represents the current object. (Inherited from ![]() |
Extension Methods
Fields
Name | Description | |
---|---|---|
![]() ![]() | BUCKET_COUNT_DEFAULT | |
![]() ![]() | MAX_AGE_SEC_DEFAULT | |
![]() ![]() | MAX_AGE_SEC_MINIMUM | |
![]() ![]() | REC_PER_PAGE_DEFAULT | |
![]() | stat_ComplexHitCount |
how many complex key hits - get was called
|
![]() | stat_ComplexMissCount |
how many complex key misses - get was called
|
![]() | stat_HitCount |
how many hits - get was called
|
![]() | stat_LastTime | |
![]() | stat_MissCount |
how many misses - get was called
|
![]() | stat_PutCollisionCount |
how many times new value overrode existing because of collision
|
![]() | stat_PutCount |
how many times put was called
|
![]() | stat_PutInsertCount |
how many times new value successfully inserted without collision
|
![]() | stat_PutPageCreateCount |
how many times bucket collision occured that resulted in page creation
|
![]() | stat_PutPriorityPreventedCollisionCount |
how many times priority prevented collision
|
![]() | stat_PutReplaceCount |
how many times new value successfully replaced existing one (by the same key) without collision
|
![]() | stat_RemoveHitCount |
how many records have been found and removed
|
![]() | stat_RemoveMissCount |
how many records have been sought to be removed but were not found
|
![]() | stat_RemovePageCount |
how many pages have been deleted, a page gets deleted when there are no records stored in it
|
![]() | stat_SweepPageCount |
how many pages swept
|
![]() | stat_SweepRemoveCount |
how many records removed by sweep
|
![]() | stat_SweepTableCount |
how many times swept
|
![]() | stat_ValueFactoryCount |
how many times factory called from GetOrPut
|
Properties
Name | Description | |
---|---|---|
![]() | BucketCount |
Returns how many slots/buckets are pre-allocated per table, the higher the number the more memory will be
reserved at table construction time, every slot is a reference (4 bytes on 32bit systems, 8 bytes on 64bit).
For optimal performance this number should be around 75% of total record count stored in the table (table load factor).
|
![]() | BucketPageLoadFactor |
Returns the ratio of how many buckets are loaded with pages vs. bucket count
|
![]() | Capacity |
Returns the maximum number of items that this table can hold at any given time given that
no items will have any key hash collisions
|
![]() | Count |
Returns item count in the table
|
![]() | LockCount |
Returns how many locks can be used for thread coordination during table changes
|
![]() | MaxAgeSec |
Gets/sets maximum age of items in the table expressed in seconds. After this age is exceeded, the system will delete entries.
The system does not guarantee that items will expire right on time, however it does guarantee that items will be available for at least
this long.
|
![]() | Name |
Returns table name which is a unique string within the cache store
|
![]() | PageCount |
Returns page count in the table
|
![]() | ParallelSweep |
When enabled, uses parallel execution while sweeping table buckets, otherwise sweeps sequentially (default behavior)
|
![]() | RecPerPage |
Returns how many slots are pre-allocated per table's bucket(page) when more than one item produces hash collision.
The higher the number, the more primary hash collisions can be accomodated by re-hashing on pages (secondary hash table within primary buckets)
|
![]() | StatComplexHitCount |
Returns hit count stats for using complex keys
|
![]() | StatComplexMissCount |
Returns miss count stats for using complex keys
|
![]() | StatHitCount |
Returns hit count stats
|
![]() | StatMissCount |
Returns miss count stats
|
![]() | Store |
Returns the store instance that this table is a part of
|
See Also