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

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

Refer to nestjs to realize some common functions for Deno
Go to Latest
class RedisStore
implements ICacheStore
import { RedisStore } from "https://deno.land/x/oak_nest@v1.13.17/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>