Table of Contents

Class ExpiringCache<TKey, TValue>

Namespace
Root
Assembly
Game.Core.dll
public class ExpiringCache<TKey, TValue>

Type Parameters

TKey
TValue
Inheritance
object
ExpiringCache<TKey, TValue>
Extension Methods

Constructors

ExpiringCache(ClearHandlerDelegate)

public ExpiringCache(ExpiringCache<TKey, TValue>.ClearHandlerDelegate clearHandler = null)

Parameters

clearHandler ExpiringCache<TKey, TValue>.ClearHandlerDelegate

Properties

Count

public int Count { get; }

Property Value

int

Methods

Dispose()

public void Dispose()

GarbageCollect()

public void GarbageCollect()

Store(TKey, in TValue)

public void Store(TKey key, in TValue value)

Parameters

key TKey
value TValue

TryGetValue(TKey, out TValue)

public bool TryGetValue(TKey key, out TValue value)

Parameters

key TKey
value TValue

Returns

bool