Class LoadNCacheObservableCfg<T>

The configuration for a LoadNCacheObservable. This class provide the same feature that are available using the LoadNCache object but using the rxjs apis.

Type Parameters

  • T

Hierarchy

  • LoadNCacheObservableCfg

Constructors

Properties

flushOn?: ((value: PromiseWithMetadata<T>) => Observable<any>)

Type declaration

    • (value: PromiseWithMetadata<T>): Observable<any>
    • When a new value is fetched this function is called and expected to return an Observable that will emit when the value is meant to be flushed. This is the rxjs equivalent of the autoflush manager. If the value is already expired emit immediately.

      Parameters

      • value: PromiseWithMetadata<T>

      Returns Observable<any>

persistence?: string | PersistenceManager<T>

See LoadNCache documentation for details. When a persistence manager is selected and a value is available the srcObservable may not be subscribed at all.

persistenceKey?: string

See LoadNCache documentation for details.

Generated using TypeDoc