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

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

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