QueryCache
QueryCache system to cache frequently used queries.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Retrieve or start the search for query
. If it's already in the map, we update its usage (increment reference count, update timestamp).
Retrieve or start the search for query
. If it's already in the map, we update its usage (increment reference count, update timestamp).
Attributes
Clean out expired entries, then remove entries if maxEntries is reached. Strategy for removal when exceeding maxEntries:
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.
Attributes
If set to false, acts as just a pass-through. Defaults to true.
If set to false, acts as just a pass-through. Defaults to true.
Attributes
Maximum number of entries able to be cached before releasing. Defaults to 100.
Maximum number of entries able to be cached before releasing. Defaults to 100.
Attributes
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.
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.
Value parameters
- key
-
The key associated with the cache entries
- v
-
The new value to update with
Attributes
Whether to only cache the first page of queries. Defaults to true.
Whether to only cache the first page of queries. Defaults to true.
Attributes
Cached results timeout. Defaults to 30 minutes.
Cached results timeout. Defaults to 30 minutes.