Base configuration shared by all Cache variants. Provides optional schema validation for all cached values.
Cache
IMPORT_PATH: "@daiso-tech/core/cache"
"@daiso-tech/core/cache"
Optional
You can pass IReadableContext that will be used by context-aware adapters.
IReadableContext
import { ExecutionContext } from "@daiso-tech/core/execution-context"import { NoOpExecutionContextAdapter } from "@daiso-tech/core/execution-context/no-op-execution-context-adapter"new ExecutionContext(new NoOpExecutionContextAdapter()) Copy
import { ExecutionContext } from "@daiso-tech/core/execution-context"import { NoOpExecutionContextAdapter } from "@daiso-tech/core/execution-context/no-op-execution-context-adapter"new ExecutionContext(new NoOpExecutionContextAdapter())
You can decide the default ttl value. If null is passed then no ttl will be used by default.
null Copy
null
Base configuration shared by all
Cachevariants. Provides optional schema validation for all cached values.IMPORT_PATH:
"@daiso-tech/core/cache"