tough-cookie-redisstore
Version:
redis store for tough-cookie
25 lines (13 loc) • 648 B
Markdown
is a File store for tough-cookie module, base on [tough-cookie-filestore](https://github.com/mitsuru/tough-cookie-filestore). See
[ ](https://github.com/goinstant/tough-cookie#constructionstore--new-memorycookiestore-rejectpublicsuffixes) for more info.
$ npm install tough-cookie-redisstore
`path` file path of cookiejar.
var RedisCookieStore = require("tough-cookie-redisstore");
var CookieJar = require("tough-cookie").CookieJar;
var jar = new CookieJar(new RedisCookieStore("username-cookie-key"));
MIT
tough-cookie-redisstore