C# Class MiniTwitter.Net.WeakReferenceCache

一个值可回收的StatusID-status字典,用作缓存
Datei anzeigen Open project: iyomumx/MiniTwitter-Mod

Public Methods

Method Description
CompressCache ( ) : long

从缓存中剔除已被回收的项

ContainsKey ( ulong key ) : bool
GetDeadItems ( ) : WeakReference>>.List
GetDictionary ( ) : Status>.Dictionary
TryAdd ( ulong key, Status value ) : bool
TryGetValue ( ulong key, Status &value ) : bool
WeakReferenceCache ( ) : System

Method Details

CompressCache() public method

从缓存中剔除已被回收的项
public CompressCache ( ) : long
return long

ContainsKey() public method

public ContainsKey ( ulong key ) : bool
key ulong
return bool

GetDeadItems() public method

public GetDeadItems ( ) : WeakReference>>.List
return WeakReference>>.List

GetDictionary() public method

public GetDictionary ( ) : Status>.Dictionary
return Status>.Dictionary

TryAdd() public method

public TryAdd ( ulong key, Status value ) : bool
key ulong
value MiniTwitter.Net.Twitter.Status
return bool

TryGetValue() public method

public TryGetValue ( ulong key, Status &value ) : bool
key ulong
value MiniTwitter.Net.Twitter.Status
return bool

WeakReferenceCache() public method

public WeakReferenceCache ( ) : System
return System