-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Redis database support #343
Comments
So the ask is for namespacing (via the "select <db_index>" like operation that Redis supports), too allow for different namespaces to co-exist, and be created/dropped independent of each other, correct? regards, |
Hi @kmuthukk , My expectation was to be able to create a database with a name and connect to it. After that all the subsequent operations should be performed with respect to that database. Thanks |
Makes sense. Thanks. @amitanandaiyer : Assigning this one to you. |
Summary: Server side only. Added test(s). Changes to client/Jedis to follow in a separate diff. Depends on https://phabricator.dev.yugabyte.com/D5217 Test Plan: Added test. Wait for jenkins. Reviewers: karthik, kannan, hector, sergei, robert, venkatesh Reviewed By: venkatesh Subscribers: bogdan, bharat, yql Differential Revision: https://phabricator.dev.yugabyte.com/D5172
Redis Database SupportMotivationThis feature allows apps to interact with only their data by creating “databases” in order to achieve this. With YugaByte DB (which offers a persistent and elastic Redis database across multiple nodes) this feature has a lot of value. UsageBy default, all queries are applied to the database 0. NOTE: YEDIS will support New commands have been added for this feature. These commands may be issued from the redis-cli or any other client that supports issuing free form commands (unlike java/jedis).
To process a select statement, the query layer will confirm that the target database already exists. It then updates the RedisConnectionContext to start using the selected database. DesignIn YugaByte DB, each Redis database is modeled as a separate DocDB table. Database X would map to the redis table For example:
The Redis connection context will maintain the information about the database currently in use by each client connection. The Redis service will translate the database-id from the Redis connection context into an appropriate redis-table-name. and use it for communicating with the tablets using the ybclient. New Commands |
Add support for databases in a Redis cluster.
The text was updated successfully, but these errors were encountered: