Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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