Lucene.Net  3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
Lucene.Net.Util.Cache.Cache< TKey, TValue > Class Template Referenceabstract

Base class for cache implementations. More...

Inherits IDisposable.

Inherited by Lucene.Net.Util.Cache.Cache< TKey, TValue >.SynchronizedCache_Renamed_Class, and Lucene.Net.Util.Cache.SimpleMapCache< TKey, TValue >.

Classes

class  SynchronizedCache_Renamed_Class
 Simple Cache wrapper that synchronizes all calls that access the cache.
 

Public Member Functions

abstract void Put (TKey key, TValue value_Renamed)
 Puts a (key, value)-pair into the cache.
 
abstract TValue Get (System.Object key)
 Returns the value for the given key.
 
abstract bool ContainsKey (System.Object key)
 Returns whether the given key is in this cache.
 
void Close ()
 Closes the cache.
 
void Dispose ()
 

Static Public Member Functions

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

abstract void Dispose (bool disposing)
 

Detailed Description

Base class for cache implementations.

Definition at line 25 of file Cache.cs.

Member Function Documentation

void Lucene.Net.Util.Cache.Cache< TKey, TValue >.Close ( )

Closes the cache.

Definition at line 117 of file Cache.cs.

abstract bool Lucene.Net.Util.Cache.Cache< TKey, TValue >.ContainsKey ( System.Object  key)
pure virtual

Returns whether the given key is in this cache.

Implemented in Lucene.Net.Util.Cache.SimpleMapCache< TKey, TValue >.

void Lucene.Net.Util.Cache.Cache< TKey, TValue >.Dispose ( )

Definition at line 122 of file Cache.cs.

abstract void Lucene.Net.Util.Cache.Cache< TKey, TValue >.Dispose ( bool  disposing)
protectedpure virtual
abstract TValue Lucene.Net.Util.Cache.Cache< TKey, TValue >.Get ( System.Object  key)
pure virtual

Returns the value for the given key.

Implemented in Lucene.Net.Util.Cache.SimpleMapCache< TKey, TValue >.

abstract void Lucene.Net.Util.Cache.Cache< TKey, TValue >.Put ( TKey  key,
TValue  value_Renamed 
)
pure virtual
static Cache<TKey, TValue> Lucene.Net.Util.Cache.Cache< TKey, TValue >.SynchronizedCache ( Cache< TKey, TValue >  cache)
static

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.

Definition at line 90 of file Cache.cs.


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