Class/Object

xitrum

Cache

Related Docs: object Cache | package xitrum

Permalink

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.

Linear Supertypes
AnyRef, Any
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Cache
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Cache()

    Permalink

Abstract Value Members

  1. abstract def clear(): Unit

    Permalink
  2. abstract def get(key: Any): Option[Any]

    Permalink
  3. abstract def isDefinedAt(key: Any): Boolean

    Permalink
  4. abstract def put(key: Any, value: Any): Unit

    Permalink
  5. abstract def putIfAbsent(key: Any, value: Any): Unit

    Permalink
  6. abstract def putSecond(key: Any, value: Any, seconds: Int): Unit

    Permalink
  7. abstract def putSecondIfAbsent(key: Any, value: Any, seconds: Int): Unit

    Permalink
  8. abstract def remove(key: Any): Unit

    Permalink
  9. abstract def start(): Unit

    Permalink

    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.

  10. abstract def stop(): Unit

    Permalink

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def getAs[T](key: Any): Option[T]

    Permalink
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. def putDay(key: Any, value: Any, days: Int): Unit

    Permalink
  17. def putDayIfAbsent(key: Any, value: Any, days: Int): Unit

    Permalink
  18. def putHour(key: Any, value: Any, hours: Int): Unit

    Permalink
  19. def putHourIfAbsent(key: Any, value: Any, hours: Int): Unit

    Permalink
  20. def putMinute(key: Any, value: Any, minutes: Int): Unit

    Permalink
  21. def putMinuteIfAbsent(key: Any, value: Any, minutes: Int): Unit

    Permalink
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped