trait QueryCache extends AnyRef
QueryCache system to cache frequently used queries.
- Alphabetic
- By Inheritance
- QueryCache
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
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
- 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). - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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.
- def clear(): Task[Unit]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- 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
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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
- 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
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- 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
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def timeout: Option[FiniteDuration]
Cached results timeout.
Cached results timeout. Defaults to 30 minutes.
- Attributes
- protected
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)