Class CircularCache<TDataType>
Inheritance
CircularCache<TDataType>
Assembly: ZoneTree.dll
Syntax
public sealed class CircularCache<TDataType>
Type Parameters
Name |
Description |
TDataType |
|
Constructors
|
Improve this Doc
View Source
CircularCache(int, int)
Declaration
public CircularCache(int cacheSize, int recordLifeTimeInMillisecond)
Parameters
Type |
Name |
Description |
int |
cacheSize |
|
int |
recordLifeTimeInMillisecond |
|
Properties
|
Improve this Doc
View Source
RecordLifeTimeInMillisecond
Declaration
public int RecordLifeTimeInMillisecond { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Clear()
Declaration
|
Improve this Doc
View Source
GetCacheStats()
Declaration
public (int cacheHit, int cacheMiss) GetCacheStats()
Returns
|
Improve this Doc
View Source
ReleaseInactiveCacheRecords()
Declaration
public int ReleaseInactiveCacheRecords()
Returns
|
Improve this Doc
View Source
ResetCacheStats()
Declaration
public void ResetCacheStats()
|
Improve this Doc
View Source
SetCacheSize(int)
Declaration
public void SetCacheSize(int cacheSize)
Parameters
Type |
Name |
Description |
int |
cacheSize |
|
|
Improve this Doc
View Source
TryAdd(long, ref TDataType)
Declaration
public bool TryAdd(long index, ref TDataType key)
Parameters
Type |
Name |
Description |
long |
index |
|
TDataType |
key |
|
Returns
|
Improve this Doc
View Source
TryGet(long, out TDataType)
Declaration
public bool TryGet(long index, out TDataType key)
Parameters
Type |
Name |
Description |
long |
index |
|
TDataType |
key |
|
Returns