Groovy Documentation

controllers
Class SolrCache

java.lang.Object
  java.util.AbstractMap
      java.util.HashMap
          java.util.LinkedHashMap
              controllers.SolrCache

class SolrCache
extends LinkedHashMap

local cache for storing results of last five queries


Property Summary
def MAX_CACHE_SIZE

max cache size

 
Constructor Summary
SolrCache()

constructor

 
Method Summary
protected boolean removeEldestEntry(def eldest)

asking it to remove oldest entry when it reaches the max cache size

 
Methods inherited from class LinkedHashMap
get, clear, containsValue, put, clone, isEmpty, entrySet, putAll, size, values, remove, keySet, containsKey, hashCode, equals, toString, wait, wait, wait, getClass, notify, notifyAll
 
Methods inherited from class HashMap
get, put, clone, clear, isEmpty, entrySet, putAll, size, values, remove, keySet, containsKey, containsValue, hashCode, equals, toString, wait, wait, wait, getClass, notify, notifyAll
 
Methods inherited from class AbstractMap
get, put, hashCode, equals, clear, toString, isEmpty, entrySet, putAll, size, values, remove, keySet, containsKey, containsValue, wait, wait, wait, getClass, notify, notifyAll
 
Methods inherited from class Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll
 

Property Detail

MAX_CACHE_SIZE

def MAX_CACHE_SIZE
max cache size


 
Constructor Detail

SolrCache

public SolrCache()
constructor


 
Method Detail

removeEldestEntry

protected boolean removeEldestEntry(def eldest)
asking it to remove oldest entry when it reaches the max cache size


 

Groovy Documentation