UNPKG

@amirmarmul/waba-common

Version:

![GitHub release](https://img.shields.io/github/v/release/amirmarmul/waba-common?style=flat-square)

15 lines (14 loc) 622 B
import { Store } from '../../../../core/domain/cache/Store'; export declare class FileStore implements Store { protected directory: string; constructor(directory: string); get<T>(key: string): Promise<T | null>; put(key: string, value: unknown, ttl: number): Promise<boolean>; forever(key: string, value: unknown): Promise<boolean>; forget(key: string): Promise<boolean>; flush(): Promise<boolean>; getPrefix(): string; protected getPayload<T>(key: string): Promise<T | null>; protected path(key: string): string; protected ensureDirectoryExists(path: string): Promise<void>; }