zibri
    Preparing search index...
    • Marks the method for caching via the given cache token.

      Type Parameters

      • C extends { wrap: (...args: any[]) => any }
      • K
      • V
      • TArgs extends unknown[]

      Parameters

      • cacheToken: DiToken<C>

        The token of the cache to use.

      • keyFn: CacheKeyProvider<K, TArgs>

        How to resolve the key under which results are cached.

      • Optionaloptions: ExtractWrapOptions<C, TArgs>

        Additional options like ttl or tags.

      Returns (
          target: object,
          propertyKey: string | symbol,
          descriptor: TypedPropertyDescriptor<(...args: TArgs) => Promise<V>>,
      ) => TypedPropertyDescriptor<(...args: TArgs) => Promise<V>>