Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

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