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

Handle namespacing all redis commands [request] #153

Closed
ScheerMT opened this issue Sep 21, 2015 · 3 comments
Closed

Handle namespacing all redis commands [request] #153

ScheerMT opened this issue Sep 21, 2015 · 3 comments

Comments

@ScheerMT
Copy link

This was something new to me that I came across..

It is a convention to prefix your keys with some kind of namespace to help sort through them. However.. if you want a namespace across your whole application transparently.. that would be a bit more work.

There is a ruby implementation of this Here.
Along with a node clone Here.

Would this be something to be considered being added into the library? I know node's philosophy for packages is to make them small and concentrate on one thing and do it well. This may be breaking that idea to some purists but to many who are dealing with multi tenant redis usage this may help simplify things significantly!

As always this should be an opt-in feature. Maybe adopt something similar to the ruby version where the existing var redis = new Redis(); could be passed to something like var namespaceRedis = new RedisNamespace(redis, 'Appname');

@luin
Copy link
Collaborator

luin commented Sep 21, 2015

Namespace is already supported, check out https://github.com/luin/ioredis#transparent-key-prefixing

@ScheerMT
Copy link
Author

Yikes! I should have spent more time reading over the documentation. Thanks for making an awesome package 👍

@luin
Copy link
Collaborator

luin commented Sep 21, 2015

😆

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