Lucene.Net  3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties
Classes | Public Member Functions | List of all members
Lucene.Net.Util.Cache.SimpleLRUCache< TKey, TValue > Class Template Reference

Inherits Lucene.Net.Util.Cache.SimpleMapCache< TKey, TValue >.

Public Member Functions

 SimpleLRUCache (int Capacity)
 
override void Put (TKey Key, TValue Value)
 Puts a (key, value)-pair into the cache.
 
override TValue Get (object Key)
 
- Public Member Functions inherited from Lucene.Net.Util.Cache.SimpleMapCache< TKey, TValue >
 SimpleMapCache ()
 
 SimpleMapCache (System.Collections.Generic.Dictionary< TKey, TValue > map)
 
override TValue Get (System.Object key)
 Returns the value for the given key.
 
override void Put (TKey key, TValue value_Renamed)
 Puts a (key, value)-pair into the cache.
 
override bool ContainsKey (System.Object key)
 Returns whether the given key is in this cache.
 
virtual
System.Collections.Generic.HashSet
< TKey > 
KeySet ()
 Returns a Set containing all keys in this cache.
 
- Public Member Functions inherited from Lucene.Net.Util.Cache.Cache< TKey, TValue >
void Close ()
 Closes the cache.
 
void Dispose ()
 

Additional Inherited Members

- Static Public Member Functions inherited from Lucene.Net.Util.Cache.Cache< TKey, TValue >
static Cache< TKey, TValue > SynchronizedCache (Cache< TKey, TValue > cache)
 Returns a thread-safe cache backed by the specified cache. In order to guarantee thread-safety, all access to the backed cache must be accomplished through the returned cache.
 
- Protected Member Functions inherited from Lucene.Net.Util.Cache.SimpleMapCache< TKey, TValue >
override void Dispose (bool disposing)
 

Detailed Description

Definition at line 23 of file SimpleLRUCache.cs.

Constructor & Destructor Documentation

Lucene.Net.Util.Cache.SimpleLRUCache< TKey, TValue >.SimpleLRUCache ( int  Capacity)

Definition at line 45 of file SimpleLRUCache.cs.

Member Function Documentation

override TValue Lucene.Net.Util.Cache.SimpleLRUCache< TKey, TValue >.Get ( object  Key)

Definition at line 79 of file SimpleLRUCache.cs.

override void Lucene.Net.Util.Cache.SimpleLRUCache< TKey, TValue >.Put ( TKey  key,
TValue  value_Renamed 
)
virtual

Puts a (key, value)-pair into the cache.

Implements Lucene.Net.Util.Cache.Cache< TKey, TValue >.

Definition at line 53 of file SimpleLRUCache.cs.


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