rcs
redis-cookie-store
npm i redis-cookie-store
rcs

redis-cookie-store

Redis store for tough-cookie module

by Benjamin Kroeger

1.0.4 (see all)License:MITTypeScript:Built-In
npm i redis-cookie-store
Readme

Redis Cookie Store

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

Downloads/wk

13

GitHub Stars

14

LAST COMMIT

8mos ago

MAINTAINERS

2

CONTRIBUTORS

7

OPEN ISSUES

3

OPEN PRs

0
VersionTagPublished
1.0.4
latest
3yrs ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate