public class

SimpleLRUCache

extends SimpleMapCache<K, V>
java.lang.Object
   ↳ org.apache.lucene.util.cache.Cache<K, V>
     ↳ org.apache.lucene.util.cache.SimpleMapCache<K, V>
       ↳ org.apache.lucene.util.cache.SimpleLRUCache<K, V>

Class Overview

Simple LRU cache implementation that uses a LinkedHashMap. This cache is not synchronized, use synchronizedCache(Cache) if needed.

Summary

[Expand]
Inherited Fields
From class org.apache.lucene.util.cache.SimpleMapCache
Public Constructors
SimpleLRUCache(int cacheSize)
Creates a last-recently-used cache with the specified size.
[Expand]
Inherited Methods
From class org.apache.lucene.util.cache.SimpleMapCache
From class org.apache.lucene.util.cache.Cache
From class java.lang.Object
From interface java.io.Closeable

Public Constructors

public SimpleLRUCache (int cacheSize)

Creates a last-recently-used cache with the specified size.