Skip to content

Instantly share code, notes, and snippets.

@einarwh
Created Feb 28, 2013
Embed
What would you like to do?
Lookup an item in the LRU cache.
public TValue Get(TKey key)
{
Prune();
return _dict.ContainsKey(key) ? _dict[key].Value.Value.Value : null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment