SessionMemoize

olon.http.SessionMemoize
abstract class SessionMemoize[K, V] extends MemoizeVar[K, V]

Memoize a value for the duration of the user's session

Attributes

Graph
Supertypes
trait MemoizeVar[K, V]
class Object
trait Matchable
class Any

Members list

Type members

Classlikes

protected object coreVar extends SessionVar[LRU[K, Box[V]]]

Attributes

Supertypes
class SessionVar[LRU[K, Box[V]]]
trait LazyLoggable
class AnyVar[LRU[K, Box[V]], SessionVar[LRU[K, Box[V]]]]
trait AnyVarTrait[LRU[K, Box[V]], SessionVar[LRU[K, Box[V]]]]
trait HasCalcDefaultValue[LRU[K, Box[V]]]
trait PSettableValueHolder[LRU[K, Box[V]]]
trait SettableValueHolder
trait Settable
trait PValueHolder[LRU[K, Box[V]]]
trait ValueHolder
class Object
trait Matchable
class Any
Show all
Self type
coreVar.type

Value members

Inherited methods

protected def `__nameSalt`: String

Attributes

Inherited from:
MemoizeVar
def apply(key: K, dflt: => V): V

Attributes

Inherited from:
MemoizeVar
def apply(key: K): Box[V]

Attributes

Inherited from:
MemoizeVar
protected def buildLRU: LRU[K, Box[V]]

Attributes

Inherited from:
MemoizeVar
protected def cacheSize: Int

The number of entries that will be memoized

The number of entries that will be memoized

Attributes

Inherited from:
MemoizeVar
protected def defaultFunction(key: K): Box[V]

Override this method if there's a default way of calculating this MemoizedVar (for example, a database lookup)

Override this method if there's a default way of calculating this MemoizedVar (for example, a database lookup)

Attributes

Inherited from:
MemoizeVar
def get(key: K, dflt: => V): V

Attributes

Inherited from:
MemoizeVar
def get(key: K): Box[V]

Attributes

Inherited from:
MemoizeVar
def set(key: K, value: V): Unit

Attributes

Inherited from:
MemoizeVar
def unapply(key: K): Option[V]

Use the MemoizeVar in an extractor

Use the MemoizeVar in an extractor

Attributes

Inherited from:
MemoizeVar
def update(key: K, value: V): Unit

Attributes

Inherited from:
MemoizeVar