net.liftweb.util.SoftReferenceCache

class SoftReferenceCache

class SoftReferenceCache[K, V](cacheSize : Int)

 extends ScalaObject


A Map that holds the values as SoftReference-s. It also applies a LRU policy for the cache entries.


Companion: SoftReferenceCache

Source: SoftReferenceCache.scala(88)

 Constructors

def this(cacheSize : Int)

 Fields

cache.. val cache LinkedHashMap[K, SoftValue[K, V]]
keys.. def keys Set[K]
readLock.. val readLock ReadLock
rwl.. val rwl ReentrantReadWriteLock
writeLock.. val writeLock WriteLock

 Methods

!=.. final def !=(arg0 : Object) Boolean AnyRef
!=.. final def !=(arg0 : Any) Boolean Any
+=.. def +=(tuple : (K, V)*)
Puts a new keyed entry in cache [details]
param
tuple: - (K, V)*
return
- this
SoftReferenceCache[K, V]
==.. final def ==(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Object) Boolean AnyRef
apply.. def apply(key : K)
Returns the cached value mapped with this key or Empty if not found [details]
return
- Box[V]
Box[V]
asInstanceOf.. final def asInstanceOf[T0] T0 Any
clone.. protected def clone Object AnyRef
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. def equals(arg0 : Any) Boolean AnyRef
finalize.. protected def finalize Unit AnyRef
getClass.. final def getClass Class[Any] AnyRef
hashCode.. def hashCode Int AnyRef
isInstanceOf.. final def isInstanceOf[T0] Boolean Any
ne.. final def ne(arg0 : Object) Boolean AnyRef
notify.. final def notify Unit AnyRef
notifyAll.. final def notifyAll Unit AnyRef
remove.. def remove(key : Any)
Removes the cache entry mapped with this key [details]
return
- s the value removed
Box[V]
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
toString.. def toString String AnyRef
wait.. final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
wait.. final def wait Unit AnyRef
Copyright (c) 2006-2010 WorldWide Conferencing, LLC. All Rights Reserved.