redis-cookie-store is a Redis store for tough-cookie module. See tough-cookie documentation for more info.
$ npm install redis-cookie-store
client
An existing redis client object you normally get fromredis.createClient()
id
optional ID for each redis store so that we can use multiple stores with the same redis database [default: "default"]
var redis = require("redis");
var client = redis.createClient();
var CookieJar = require("tough-cookie").CookieJar;
var RedisCookieStore = require("redis-cookie-store");
var defaultJar = new CookieJar(new RedisCookieStore(client));
var myJar = new CookieJar(new RedisCookieStore(client, 'my-cookie-store'));
MIT