Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno_nest/modules/redis/src/redis.store.ts>RedisStore

Refer to nestjs to realize some common functions for Deno, support hono and oak
Go to Latest
class RedisStore
implements ICacheStore
import { RedisStore } from "https://deno.land/x/deno_nest@v3.5.0/modules/redis/src/redis.store.ts";

Constructors

new
RedisStore(client: Redis)

Properties

key: string
timeoutMap: Map<string, number>

Methods

delete(key: string)
get<T = any>(key: string): Promise<T | undefined>
getNewKey(key: string)
has(key: string)
set(
key: string,
value: any,
options?: { ttl: number; },
): Promise<string>