Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CacheOnID

Caches documents using their _id field as the unique cache key. This is useful if you primarily query your documents using their _id field, however can be suboptimal (or even a complete waste) if you use different types of queries.

Hierarchy

  • CacheOnID

Implements

Index

Methods

buildKey

  • buildKey<T>(object: T): any

buildQueryKey

  • buildQueryKey(conditions: object): any

valid

  • valid<T>(object: T): boolean

validQuery

  • validQuery(conditions: object): boolean

Generated using TypeDoc