OptionaldefaultJitter?: number | nullYou can pass jitter value to ensure the backoff will not execute at the same time. If you pas null you can disable the jitrter.
OptionaldefaultTtl?: ITimeSpan | nullYou can decide the default ttl value. If null is passed then no ttl will be used by default.
OptionaleventBus?: EventBusInputYou can provide an IEventBus or an IEventBusAdapter instance to handle the component's events.
If you provide an adapter, it will be automatically wrapped in an EventBus instance.
OptionalexecutionContext?: IExecutionContextYou can pass IExecutionContext that will be used by context-aware adapters.
OptionallockFactory?: LockFactoryInputYou can provide an ILockFactoryBase, an ILockAdapter or an IDatabaseLockAdapter instance to handle locking when GetOrAddSettings.enableLocking is set to true during a getOrAdd call.
If you provide an adapter, it will be automatically wrapped in an LockFactory instance.
Optionalnamespace?: INamespaceOptionalschema?: StandardSchemaV1<TType>You can provide any standard schema compliant object to validate all input and output data to ensure runtime type safety.
OptionalshouldValidateOutput?: booleanYou can enable validating cache values when retrieving them.
OptionalwaitUntil?: WaitUntilYou can pass the waitUntil function to handle background promises.
This is required when working with environments like Cloudflare Workers or Vercel Functions to ensure tasks complete after the response is sent.
Base configuration shared by all
Cachevariants. Provides optional schema validation for all cached values.IMPORT_PATH:
"@daiso-tech/core/cache"