UNPKG

@hashgraphonline/standards-sdk

Version:

The Hashgraph Online Standards SDK provides a complete implementation of the Hashgraph Consensus Standards (HCS), giving developers all the tools needed to build applications on Hedera.

26 lines 838 B
import { EVMCache } from './evm-bridge'; export interface RedisConfig { host?: string; port?: number; password?: string; db?: number; keyPrefix?: string; tls?: boolean; connectTimeout?: number; retryStrategy?: (times: number) => number | void; logLevel?: 'debug' | 'info' | 'warn' | 'error'; } export declare class RedisCache implements EVMCache { private client; private prefix; private logger; constructor(config?: RedisConfig); private getKey; get(key: string): Promise<string | undefined>; set(key: string, value: string, ttlSeconds?: number): Promise<void>; delete(key: string): Promise<void>; clear(): Promise<void>; disconnect(): Promise<void>; setLogLevel(level: 'debug' | 'info' | 'warn' | 'error'): void; } //# sourceMappingURL=redis-cache.d.ts.map