Packages

t

lightdb.cache

QueryCache

trait QueryCache extends AnyRef

QueryCache system to cache frequently used queries.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. QueryCache
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. abstract type Doc <: Document[Doc]
  2. abstract type Key
  3. abstract type Model <: DocumentModel[Doc]
  4. abstract type V

Abstract Value Members

  1. abstract def id(v: V): Id[Doc]
    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(key: Key, query: Query[Doc, Model, V]): Task[SearchResults[Doc, Model, V]]

    Retrieve or start the search for query.

    Retrieve or start the search for query. If it's already in the map, we update its usage (increment reference count, update timestamp).

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clean(repeatEvery: Option[FiniteDuration]): Task[Unit]

    Clean out expired entries, then remove entries if maxEntries is reached.

    Clean out expired entries, then remove entries if maxEntries is reached. Strategy for removal when exceeding maxEntries: - Sort by reference count ascending, then by last-access time ascending, so that least-used and oldest get removed first.

  7. def clear(): Task[Unit]
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  9. def enabled: Boolean

    If set to false, acts as just a pass-through.

    If set to false, acts as just a pass-through. Defaults to true.

    Attributes
    protected
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def maxEntries: Option[Int]

    Maximum number of entries able to be cached before releasing.

    Maximum number of entries able to be cached before releasing. Defaults to 100.

    Attributes
    protected
  16. def modify(key: Key, v: V): Task[Unit]

    Updates all cached entries that contain the document with the same Key and Id as the provided value.

    Updates all cached entries that contain the document with the same Key and Id as the provided value. The updated value replaces the old one while maintaining the original score.

    key

    The key associated with the cache entries

    v

    The new value to update with

  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  20. def onlyFirstPage: Boolean

    Whether to only cache the first page of queries.

    Whether to only cache the first page of queries. Defaults to true.

    Attributes
    protected
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def timeout: Option[FiniteDuration]

    Cached results timeout.

    Cached results timeout. Defaults to 30 minutes.

    Attributes
    protected
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped