+
Skip to content

Add RedisProvider #167

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

binduwavell
Copy link

This provider feels a bit complex compared to the other providers in the project. This is partly because I'm supporting multiple use models: with or without in-memory caching and with or without the ReJSON module. Additionally, I must confess it's been a while since I've written JavaScript, so it's possible that the code could be simplified or made to be more idiomatic. I'm very open to suggestions.

I have attempted to include ancillary project assets like docs and linking the provider into index.js and index.d.ts. Again, very open to input/suggestions.

Thanks much for considering this contribution.

binduwavell and others added 3 commits October 23, 2020 08:27
Cutty/Pasta
Co-authored-by: Carter <45381083+Fyko@users.noreply.github.com>
@Alcremie
Copy link

If you haven't already, you might want to look into using ioredis - its commands support both callbacks and native Promises, meaning you shouldn't have to rely as much on promisify.

@binduwavell
Copy link
Author

@Alcremie I picked the library that appears to be suggested by RedisLabs. Even if it's slightly harder to use, it is likely to work when Redis changes stuff and since our provider is very simple it seemed reasonable.

@yehorovye
Copy link

i need this.

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

Successfully merging this pull request may close these issues.

5 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载