@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
41 lines (40 loc) • 1.11 kB
text/typescript
import { Cache } from "./Cache.mjs";
//#region src/modules/cache/CacheModuleConfig.d.ts
/**
* CacheModuleConfigOptions defines the interface for the options of the CacheModuleConfig class.
*/
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;
}
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
export { CacheModuleConfig, CacheModuleConfigOptions };
//# sourceMappingURL=CacheModuleConfig.d.mts.map