abstract class Cache extends AnyRef
This is the interface for cache implementations of Xitrum. All methods do not take callbacks, because cache should be fast. The point of using cache is to become faster. There's no point in using a slow cache.
- Alphabetic
- By Inheritance
- Cache
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Cache()
Abstract Value Members
- abstract def clear(): Unit
- abstract def get(key: Any): Option[Any]
- abstract def isDefinedAt(key: Any): Boolean
- abstract def put(key: Any, value: Any): Unit
- abstract def putIfAbsent(key: Any, value: Any): Unit
- abstract def putSecond(key: Any, value: Any, seconds: Int): Unit
- abstract def putSecondIfAbsent(key: Any, value: Any, seconds: Int): Unit
- abstract def remove(key: Any): Unit
- abstract def start(): Unit
Cache engine like Hazelcast may take serveral seconds to start, this method is called at Xitrum server start to force the cache to start, instead of letting it start lazily at first cache access.
- abstract def stop(): Unit
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def getAs[T](key: Any): Option[T]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def putDay(key: Any, value: Any, days: Int): Unit
- def putDayIfAbsent(key: Any, value: Any, days: Int): Unit
- def putHour(key: Any, value: Any, hours: Int): Unit
- def putHourIfAbsent(key: Any, value: Any, hours: Int): Unit
- def putMinute(key: Any, value: Any, minutes: Int): Unit
- def putMinuteIfAbsent(key: Any, value: Any, minutes: Int): Unit
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()