Interface IMemoizeOptions<Params>

Options for memoize() method.

See

memoize for additional details.

Type Parameters

  • Params extends ReadonlyArray<unknown>

Hierarchy

  • IMemoizeOptions

Methods

Methods

  • This optional method is called on every cache hit.

    Note that since params were used when creating the watcher - you can use them in watcher API methods and in getAffectedPaths.

    See

    Parameters

    • watcher: IWatcher

      the previously created IWatcher object created with watchAll(params) API method.

    • params: Params

      an array of parameters from the previous cached call.

    Returns void

  • This optional method is called on every cache miss.

    Note that since params were used when creating the watcher - you can use them in watcher API methods and in getAffectedPaths.

    See

    Parameters

    • watcher: IWatcher

      the newly created IWatcher object created with watchAll(params) API method.

    • params: Params

      an array of parameters that generated the cache miss.

    • Optional pastParams: Params

      an array of parameters from the previous cache miss.

    Returns void

Generated using TypeDoc