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

x/deno_nest/modules/redis/mod.ts>RedisStore

Refer to nestjs to realize some common functions for Deno, support hono and oak
Go to Latest
class RedisStore
implements ICacheStore
Re-export
import { RedisStore } from "https://deno.land/x/deno_nest@v3.6.0/modules/redis/mod.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>