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

redis-cookie-store

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redis-cookie-store

Redis cookie store for tough-cookie module

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
49
decreased by-63.16%
Maintainers
2
Weekly downloads
 
Created
Source

a Redis store for tough-cookie module. See tough-cookie documentation for more info.

Installation

npm install --save redis-cookie-store

Options

  • client An existing redis client object you normally get from redis.createClient()
  • id optional ID for each redis store so that we can use multiple stores with the same redis database [default: 'default']

Usage

const redis = require('redis');
const { CookieJar } = require('tough-cookie');
const RedisCookieStore = require('redis-cookie-store');

const client = redis.createClient();

const defaultJar = new CookieJar(new RedisCookieStore(client));

const myJar = new CookieJar(new RedisCookieStore(client, 'my-cookie-store'));

License

MIT

Keywords

FAQs

Package last updated on 11 Dec 2019

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