quickdb-redis
v3.0.0
Published
Redis Database made Simpler
Downloads
3
Maintainers
Readme
QuickDB Redis
- A Simple Module To Use Redis Database
Functions
- Create A Redis Client
const { RedisClient } = require("quickdb-redis")
const db = new RedisClient({
url: "IF You Have URL",
username: "IF YOU HAVE username and Password",
password: "IF YOU HAVE username and Password"
})
// URL or USERNAME AND PASSWORD
- Set A value
db.set(`key`, `value`)
- Get A value
db.get(`key`).then(got => console.log(got))
- Add
db.add(`key`, Number)
- Subtract
db.subtract(`key`, Number)
- Delete A Key
db.delete(`key`)
- Delete All Keys
db.deleteAll()
- Disconnect From The Database
db.disconnect()
Table
- Creating A Table
const { Table } = require('quickdb.redis')
const table = new Table({
tableName:"SomeName",
url: "IF You Have URL",
username: "IF YOU HAVE username and Password",
password: "IF YOU HAVE username and Password"
})
- Everything Else Is As In Normal RedisClient
Credits
- Made By Agent Hacker
- Contact Me On Discord: Agent Hacker#0477