@daiso-tech/core
Version:
The library offers flexible, framework-agnostic solutions for modern web applications, built on adaptable components that integrate seamlessly with popular frameworks like Next Js.
17 lines (16 loc) • 729 B
TypeScript
/**
* @module CircuitBreaker
*/
import { type ICircuitBreakerStorageAdapter, type ICircuitBreakerStorageAdapterTransaction } from "../../../../circuit-breaker/contracts/_module.js";
import { type InvokableFn } from "../../../../utilities/_module.js";
/**
* IMPORT_PATH: `"@daiso-tech/core/circuit-breaker/database-circuit-breaker-storage-adapter"`
* @group Adapters
*/
export declare class NoOpCircuitBreakerStorageAdapter<TType> implements ICircuitBreakerStorageAdapter<TType> {
transaction<TValue>(fn: InvokableFn<[
transaction: ICircuitBreakerStorageAdapterTransaction<TType>
], Promise<TValue>>): Promise<TValue>;
find(_key: string): Promise<TType | null>;
remove(_key: string): Promise<void>;
}