1.0.7 • Published 11 months ago

@amraly/tough-cookie-store-redis v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Redis Cookie Store

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

This package is forked from https://github.com/benkroeger/redis-cookie-store and provides various improvements.

Installation

npm install --save @aaly00/tough-cookie-store-redis

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

import { createClient } from 'redis';
import { CookieJar } from 'tough-cookie';
import { RedisCookieStore } from "@amraly/tough-cookie-store-redis"

const client = createClient();

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

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

License

MIT

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago