Search Results for

    Show / Hide Table of Contents

    Class LruCache<TKey, TValue>

    /// LRU Cache with disposing of disposable values.

    Inheritance
    object
    LruCache<TKey, TValue>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Mapsui.Cache
    Assembly: Mapsui.dll
    Syntax
    public class LruCache<TKey, TValue> where TKey : notnull
    Type Parameters
    Name Description
    TKey /// LRU Cache with disposing of disposable values.
    TValue /// LRU Cache with disposing of disposable values.

    Constructors

    | Edit this page View Source

    LruCache(int)

    Declaration
    public LruCache(int capacity)
    Parameters
    Type Name Description
    int capacity

    Properties

    | Edit this page View Source

    this[TKey]

    Declaration
    public TValue this[TKey key] { get; set; }
    Parameters
    Type Name Description
    TKey key
    Property Value
    Type Description
    TValue

    Methods

    | Edit this page View Source

    Get(TKey)

    Declaration
    public TValue? Get(TKey key)
    Parameters
    Type Name Description
    TKey key
    Returns
    Type Description
    TValue
    | Edit this page View Source

    Put(TKey, TValue)

    Declaration
    public void Put(TKey key, TValue value)
    Parameters
    Type Name Description
    TKey key
    TValue value
    | Edit this page View Source

    TryGetValue(TKey, out TValue)

    Declaration
    public bool TryGetValue(TKey key, out TValue value)
    Parameters
    Type Name Description
    TKey key
    TValue value
    Returns
    Type Description
    bool
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX