UNPKG

bigblocks

Version:

Complete Bitcoin UI component library - authentication, social, wallet, market, inscriptions, and blockchain interactions for React

32 lines 991 B
import type { StorageAdapter } from "../types.js"; interface RedisClientLike { get(key: string): Promise<string | null>; set(key: string, value: string, options?: { EX?: number; }): Promise<string | null>; del(key: string | string[]): Promise<number>; keys(pattern: string): Promise<string[]>; } interface RedisStorageOptions { client: RedisClientLike; prefix?: string; ttl?: number; } /** * Redis storage adapter * Requires a Redis client instance (ioredis, node-redis, etc.) * Works with any Redis-compatible client that implements the basic interface */ export declare function createRedisStorage(options: RedisStorageOptions): StorageAdapter; /** * Create Redis storage with Upstash Redis REST API * Useful for serverless environments */ export declare function createUpstashRedisStorage(options: { url: string; token: string; prefix?: string; ttl?: number; }): StorageAdapter; export {}; //# sourceMappingURL=redis.d.ts.map