Space Engineers
Classes | Public Member Functions | Public Attributes | Properties | List of all members
VRage.Collections.LRUCache< TKey, TValue > Class Template Reference

Public Member Functions

 LRUCache (int cacheSize)
 
 LRUCache (int cacheSize, IEqualityComparer< TKey > comparer)
 
void Reset ()
 
TValue Read (TKey key)
 
void Write (TKey key, TValue value)
 
void Remove (TKey key)
 

Public Attributes

Action< TKey, TValue > OnItemDiscarded
 

Properties

float Usage [get]
 

Detailed Description

Definition at line 7 of file LRUCache.cs.

Constructor & Destructor Documentation

VRage.Collections.LRUCache< TKey, TValue >.LRUCache ( int  cacheSize)
inline

Definition at line 20 of file LRUCache.cs.

VRage.Collections.LRUCache< TKey, TValue >.LRUCache ( int  cacheSize,
IEqualityComparer< TKey >  comparer 
)
inline

Definition at line 29 of file LRUCache.cs.

Member Function Documentation

TValue VRage.Collections.LRUCache< TKey, TValue >.Read ( TKey  key)
inline

Definition at line 79 of file LRUCache.cs.

void VRage.Collections.LRUCache< TKey, TValue >.Remove ( TKey  key)
inline

Definition at line 137 of file LRUCache.cs.

void VRage.Collections.LRUCache< TKey, TValue >.Reset ( )
inline

Definition at line 43 of file LRUCache.cs.

void VRage.Collections.LRUCache< TKey, TValue >.Write ( TKey  key,
TValue  value 
)
inline

Definition at line 107 of file LRUCache.cs.

Member Data Documentation

Action<TKey, TValue> VRage.Collections.LRUCache< TKey, TValue >.OnItemDiscarded

Definition at line 18 of file LRUCache.cs.

Property Documentation

float VRage.Collections.LRUCache< TKey, TValue >.Usage
get

Definition at line 39 of file LRUCache.cs.


The documentation for this class was generated from the following file: