UNPKG

@credo-ts/core

Version:

<p align="center"> <br /> <img alt="Credo Logo" src="https://github.com/openwallet-foundation/credo-ts/blob/c7886cb8377ceb8ee4efe8d264211e561a75072d/images/credo-logo.png" height="250px" /> </p> <h1 align="center"><b>Credo - Core</b></h1

39 lines • 1.07 kB
import { Cache } from "./Cache.mjs"; //#region src/modules/cache/CacheModuleConfig.d.ts /** * CacheModuleConfigOptions defines the interface for the options of the CacheModuleConfig class. */ export interface CacheModuleConfigOptions { /** * * Implementation of the {@link Cache} interface. * */ cache: Cache; /** * * @default 60 * */ defaultExpiryInSeconds?: number; /** * * Uses a caching registry before talking to the storage service when a Record has the `useCache` set to `true` * * @default false * */ useCachedStorageService?: boolean; } export declare class CacheModuleConfig { private options; constructor(options: CacheModuleConfigOptions); /** See {@link CacheModuleConfigOptions.cache} */ get cache(): Cache; /** See {@link CacheModuleConfigOptions.defaultExpiryInSeconds} */ get defaultExpiryInSeconds(): number; /** See {@link CacheModuleConfigOptions.useCachedStorageService} */ get useCachedStorageService(): boolean; } //#endregion //# sourceMappingURL=CacheModuleConfig.d.mts.map