20 namespace Lucene.Net.Util.Cache
25 public abstract class Cache<TKey, TValue> : IDisposable
31 internal class SynchronizedCache_Renamed_Class : Cache<TKey, TValue>
33 internal System.Object mutex;
48 public override void Put(TKey key, TValue value_Renamed)
52 cache.
Put(key, value_Renamed);
56 public override TValue Get(System.Object key)
60 return cache.
Get(key);
64 public override bool ContainsKey(System.Object key)
72 protected override void Dispose(
bool disposing)
92 return cache.GetSynchronizedCache();
103 return new SynchronizedCache_Renamed_Class(
this);
107 public abstract void Put(TKey key, TValue value_Renamed);
110 public abstract TValue Get(System.Object key);
113 public abstract bool ContainsKey(System.Object key);
116 [Obsolete(
"Use Dispose() instead")]
122 public void Dispose()
127 protected abstract void Dispose(
bool disposing);