Table of Contents

Class LRUCache<T>

Namespace
KSP.Utilities
Assembly
Assembly-CSharp.dll
public class LRUCache<T>

Type Parameters

T
Inheritance
LRUCache<T>
Inherited Members
Extension Methods

Constructors

LRUCache(int)

public LRUCache(int capacity)

Parameters

capacity int

Properties

Capacity

public int Capacity { get; }

Property Value

int

Count

public int Count { get; }

Property Value

int

Methods

AddOrUpdate(string, T)

public void AddOrUpdate(string key, T val)

Parameters

key string
val T

TryGetValue(string, out T)

public bool TryGetValue(string key, out T val)

Parameters

key string
val T

Returns

bool