UNPKG

scyllinx

Version:

A modern TypeScript ORM for ScyllaDB and SQL databases with Laravel-inspired syntax

12 lines (11 loc) 453 B
import { CacheStore } from "./CacheStore"; export declare class MemoryCacheStore implements CacheStore { private cache; constructor(config?: Record<string, any>); connect(): Promise<void>; get(key: string): Promise<any>; set(key: string, value: any, ttl?: number): Promise<void>; forget(key: string): Promise<void>; flush(): Promise<void>; remember<T>(key: string, ttl: number, callback: () => Promise<T>): Promise<T>; }