Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for redis via ioredis #8

Closed
killerdroid99 opened this issue Feb 6, 2024 · 2 comments
Closed

Support for redis via ioredis #8

killerdroid99 opened this issue Feb 6, 2024 · 2 comments

Comments

@killerdroid99
Copy link

Can the session store be implemented with redis using ioredis?

@jcs224
Copy link
Owner

jcs224 commented Feb 8, 2024

A driver can be made for ioredis, but I'm wondering if this would be better as an external driver than part of the hono-sessions library. For the core package, I only want to support databases included with the core of the runtime, such as Bun SQLite or Deno KV. I may put guidance in the readme for how to create your own storage driver. This is similar in approach to Golang's Gorilla Sessions.

I found this Redis driver for hono-sessions, it's node-redis instead of ioredis though.

https://github.com/crossunit/connect-redis-hono

@jcs224
Copy link
Owner

jcs224 commented May 16, 2024

Here's an ioredis port

https://www.npmjs.com/package/hono-sessions-redis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants