다음을 통해 공유


LRUCache<TKey,TValue> 클래스

정의

사전처럼 저장된 가장 최근에 사용한 캐시입니다.

public sealed class LRUCache<TKey,TValue>
type LRUCache<'Key, 'Value> = class
Public NotInheritable Class LRUCache(Of TKey, TValue)

형식 매개 변수

TKey

캐시된 항목에 대한 키의 형식입니다.

TValue

캐시된 항목의 형식입니다.

상속
LRUCache<TKey,TValue>

생성자

LRUCache<TKey,TValue>()

LRUCache<TKey,TValue> 클래스의 새 인스턴스를 초기화합니다.

LRUCache<TKey,TValue>(Int32)

LRUCache<TKey,TValue> 클래스의 새 인스턴스를 초기화합니다.

메서드

Set(TKey, TValue)

지정된 키와 값을 캐시에 추가합니다.

TryGet(TKey, TValue)

지정한 키와 연결된 값을 가져옵니다.

적용 대상