import { RedisKVMarker } from "./keys.js"; import { createPinboard } from "./server.js"; //#region src/memory-redis.d.ts type RedisKV = createPinboard.RedisKV; type SetOptions = createPinboard.SetOptions; /** In-memory RedisKV; scripts run as their synchronous (atomic) JS twins. */ declare class MemoryRedis implements RedisKV { readonly [RedisKVMarker] = true; private readonly entries; private readonly now; constructor(opts?: { now?: () => number; }); private live; get(key: string): Promise; set(key: string, value: string, opts?: SetOptions): Promise<"OK" | null>; del(key: string): Promise; pexpire(key: string, ms: number): Promise; private hash; private hashEntry; hget(key: string, field: string): Promise; hset(key: string, field: string, value: string): Promise; hsetnx(key: string, field: string, value: string): Promise; hdel(key: string, field: string): Promise; hgetall(key: string): Promise>; hscan(key: string, cursor: string, count: number): Promise<{ cursor: string; entries: [string, string][]; }>; rpush(key: string, value: string): Promise; lrange(key: string, start: number, stop: number): Promise; lrem(key: string, count: number, value: string): Promise; scriptLoad(script: string): Promise; evalsha(sha: string, keys: string[], argv: string[]): Promise; quit(): Promise; private readonly kv; } //#endregion export { MemoryRedis }; //# sourceMappingURL=memory-redis.d.ts.map