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

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

Refer to nestjs to realize some common functions for Deno
Go to Latest
class RedisService
Re-export
import { RedisService } from "https://deno.land/x/oak_nest@v1.14.0/modules/redis/mod.ts";

Constructors

new
RedisService(client: Redis)

Methods

get(key: string)
getRange(
key: string,
start: number,
end: number,
)
index(key: string, index: number)
isEmpty(key: string)
pop(key: string)
push(key: string, value: any)
set(
key: string,
value: any,
seconds?: number,
)
shift(key: string)
size(key: string)
unshift(key: string, value: any)