npm.io
1.0.2 • Published 4 years ago

nored

Licence
MIT
Version
1.0.2
Deps
0
Size
10 kB
Vulns
0
Weekly
0

Introduction

What is nored

nored is the client of redis for node.js , written with typescript.

Installation

npm i --save nored

Getting started

commonJs
const {nored} = require("nored");
typescript
import {nored} from "nored";
Example of how to use nored
import {nored} from "nored";

const redisClient = new nored({
    port:6379,
    host:"localhost",
});
//if you redis-server require password give the password as option

const redisClient = new nored({
    port:6379,
    host:"localhost",
    password:your password//password should be number
});
Example
redisClient.get("keyName").then(console.log);

redisClient.get("keyName","value").then(console.log);

redisClient.append("keyName","value to append");

redisClient.hset("keyName","value");

Keywords