Type Alias CacheSettings

CacheSettings: {
    adapter: ICacheAdapter<any>;
    backoffPolicy?: BackoffPolicy | null;
    defaultTtl?: TimeSpan | null;
    eventBus?: IGroupableEventBus<any>;
    retryAttempts?: number | null;
    retryPolicy?: RetryPolicy | null;
    timeout?: TimeSpan | null;
}

IMPORT_PATH: "@daiso-tech/core/cache/implementations/derivables"

Type declaration

  • adapter: ICacheAdapter<any>
  • OptionalbackoffPolicy?: BackoffPolicy | null

    The default backof policy to use in the returned LazyPromise.

    {null}
    
  • OptionaldefaultTtl?: TimeSpan | null

    You can decide the default ttl value. If null is passed then no ttl will be used by default.

    {null}
    
  • OptionaleventBus?: IGroupableEventBus<any>
    new EventBus({
    adapter: new MemoryEventBusAdapter({
    rootGroup: "@global"
    })
    })
  • OptionalretryAttempts?: number | null

    The default retry attempt to use in the returned LazyPromise.

    {null}
    
  • OptionalretryPolicy?: RetryPolicy | null

    The default retry policy to use in the returned LazyPromise.

    {null}
    
  • Optionaltimeout?: TimeSpan | null

    The default timeout to use in the returned LazyPromise.

    {null}