2.5.1 • Published 10 months ago

@grammyjs/storage-redis v2.5.1

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

Redis storage adapter for grammY

Storage adapter that can be used to store your session data in Redis when using sessions.

Installation

Node

npm install @grammyjs/storage-redis ioredis --save
npm install @types/ioredis -D
import { RedisAdapter } from "@grammyjs/storage-redis";
import IORedis from "ioredis";

Deno

import { RedisAdapter } from "https://deno.land/x/grammy_storages/redis/src/mod.ts";
import { connect } from "https://deno.land/x/redis@v0.32.1/mod.ts";

Usage

You can check examples folder

Vendor Examples

Vercel KV (Upstash)

import { kv as instance } from "@vercel/kv";
import { RedisAdapter } from "@grammyjs/storage-redis";

instance.opts.automaticDeserialization = false;

const storage = new RedisAdapter({instance});

bot.use(session({storage}));
2.5.0

11 months ago

2.5.1

10 months ago

2.4.2

2 years ago

2.4.1

2 years ago

2.3.2

2 years ago

2.4.0

2 years ago

2.3.1

2 years ago

2.3.0

3 years ago

2.2.0

3 years ago

2.1.4

3 years ago

2.1.3

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.2

3 years ago

2.0.0

4 years ago