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

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

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