1.0.2 • Published 2 years ago

nored v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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");