Skip to content

Redis Interface

Connecting to the redis database

ts
export const cachedb = await urn.cdb('redis://127.0.0.1:6379') // cdb as redis interface

How to use

Import first

ts
import { cdb } from '../index'

Here are the methods of this class

ts
write(set: string, key: string, value: string | number)
get(set: string, key: string)
delete(set: string, key: string)
custom() // Same as mongodb interface