Search Results for

    Show / Hide Table of Contents

    Class CircularCache<TDataType>

    Inheritance
    object
    CircularCache<TDataType>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Tenray.ZoneTree.Segments.Disk
    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
    Type Description
    int

    Methods

    | Improve this Doc View Source

    Clear()

    Declaration
    public void Clear()
    | Improve this Doc View Source

    GetCacheStats()

    Declaration
    public (int cacheHit, int cacheMiss) GetCacheStats()
    Returns
    Type Description
    (int cacheHit, int cacheMiss)
    | Improve this Doc View Source

    ReleaseInactiveCacheRecords()

    Declaration
    public int ReleaseInactiveCacheRecords()
    Returns
    Type Description
    int
    | 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
    Type Description
    bool
    | 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
    Type Description
    bool
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2022 Tenray.io