Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redis.token

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redis.token

token based storage system in Redis that uses hashtables.

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status

redis.token

A token based storage system in Redis that uses hashtables.

By Chris Cates :star:

Installation

npm install redis.token --save

Usage

This NPM module automatically converts key value objects into hash tables. The Redis.GET command automatically returns an object in the redis npm module.

Two dependencies for this project is (NPM):

crypto-js
redis

Demo

var redis = require("redis.token")

redis.generate(
  {
    "key": "value",
    "key2": "value"
  },
  function(key) {
    console.log(key)
    //Returns randomly generated SHA3 token
    redis.get(key.token, function(reply) {
      console.log(reply)
      /*
      Returns
      {
        "key": "value",
        "key2": "value"
      }
      */
    })
  }
)

API

redis.token.generate(obj,callback)

Generates a hashtable with the key values in obj, callback returns a token.

redis.token.get(token,callback)

With the token generated in .generate() you can retrieve the object stored.

Keywords

FAQs

Package last updated on 19 Apr 2016

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