Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
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

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc