Socket
Book a DemoInstallSign in
Socket

redis-simple

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redis-simple

Very simple client for redis

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

redis-simple Build Status

Very simple client for redis. Based on node_redis This client, contains only three commands: set, get and del for strings and hashes.

Install

npm install redis-simple

Usage

Example with strings

var redissimple = require('redis-simple');
var key = "A";
var value = "B";
var simple = redissimple();

simple.set(key, value, function(err, reply){
    simple.get("A", function(err, reply){
       simple.del("A", function(err, rep){
        console.log(rep);
        simple.quit();
      });
   });
});

Example with hashes

var redissimple = require('redis-simple');
var simple = redissimple();
var key = "foo";
var field = "field";
var value = "value";

simple.set(key, value, field, function(err, reply){
    simple.get(key, field, function(err, reply){
        simple.del(key, field, function(errdel, replydel){
            console.log(reply, replydel);
            simple.quit();
        });
    });
});

License

MIT

Keywords

redis

FAQs

Package last updated on 19 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.