Copy redis keys from exinting instance to a new redis cluster.
Converts re-json objects to
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
Copy from redis database and convert from rejson to hashes
This section should list any major frameworks/libraries used to bootstrap your project. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.
To get a local copy up and running follow these simple example steps.
-
.env file NEW_REDIS_CLUSTER- redis cluster server array. See ioredis docs for details https://ioredis.readthedocs.io/en/stable/README/#cluster NEW_REDIS_CLUSTER_NAT - optional - specify if ip/port mapping is required to connect to the cluster is required. See ioredis docs for https://github.com/luin/ioredis#nat-mapping NEW_REDIS_PASSWORD - password to connect to new db OLD_REDIS_HOST - source redis host ip address OLD_REDIS_PORT - source redis port OLD_REDIS_PASSWORD - source redis host password
-
npm
npm install
Below is an example of how you can instruct your audience on installing and setting up your app. This template doesn't rely on any external dependencies or services.
-
Clone the repo
git clone https://github.com/beornb/redis_copy.git
-
Install NPM packages
npm install
-
Add redis settings to .env file - see .env.example
-
Run
node index.js
Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.
For more examples, please refer to the Documentation
- Add Changelog
- Add back to top links
- Add Additional Templates w/ Examples
- Add "components" document to easily copy & paste sections of the readme
- Multi-language Support
- Chinese
- Spanish
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Your Name - @your_twitter - email@example.com
Project Link: https://github.com/your_username/repo_name
Use this space to list resources you find helpful and would like to give credit to. I've included a few of my favorites to kick things off!