https://github.com/agenthackeryt/quickdb-redis
https://github.com/agenthackeryt/quickdb-redis
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/agenthackeryt/quickdb-redis
- Owner: AgentHackerYT
- License: mit
- Created: 2022-01-09T07:51:15.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-10T05:45:17.000Z (over 4 years ago)
- Last Synced: 2025-03-22T08:03:28.340Z (about 1 year ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# QuickDB Redis
- A Simple Module To Use Redis Database
# Functions
- Create A Redis Client
```js
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
```js
db.set(`key`, `value`)
```
- Get A value
```js
db.get(`key`).then(got => console.log(got))
```
- Add
```js
db.add(`key`, Number)
```
- Subtract
```js
db.subtract(`key`, Number)
```
- Delete A Key
```js
db.delete(`key`)
```
- Disconnect From The Database
```js
db.disconnect()
```
# Credits
- Made By Agent Hacker
- Contact Me On Discord: Agent Hacker#0477