Clone this wiki locally
What Python versions are supported?
- Python 2.6 and 2.7 are officially supported. We have tests in place to ensure ongoing support.
- Mark Costello added support for Python 2.5 in his redis-rdb-tools clone. If you need python 2.5 support, please add a comment to Issue#25.
- Alexey Popravka added support for Python 3.0 in his redis-rdb-tools-clone. If you need Python 3.x support, please create a new ticket, and I will try my best to work on it.
What dump file versions are supported?
All Versions. We have unit tests for versions 2 through 6. If you happen to have a version 1 dump file, please upload it to a new issue, and I will gladly add unit tests for it as well.
Why doesn't expiry datetime match what's in the dump file?
The dump file stores the unix time in milliseconds precision. This does not have the timezone information. The parser converts this unix time into UTC. Your local clock may or may not be running UTC, and hence the difference.
If you know the timezone used while saving records in redis, you can always convert the UTC time back to the correct timezone.
Why doesn't reported memory match actual memory used?
The memory reported by this tool is approximate. In general, the reported memory should be within 10% of what is reported by info
Also note that the tool does not (and cannot) account for the following -
- Memory used by client buffers
- Memory used for pub/sub
- Redis process overheads
What else can I do with this parser?
- Export redis into a relational database like MySQL
- Export redis into a full text search engine like solr or amazon cloud search, so that you can do (almost) real time, full text search.
- Merge or split dump files. This is useful if you using several instances of Redis and shard your data
- Build a UI/Explorer for the data in Redis
- Build a tool that recommends changes that would reduce memory usage. The tool can recommend appropriate values for settings in redis.conf. It can also detect small strings that should instead be stored in a hash. Several other interesting possibilities exist.
I don't like Python; is such a parser available in language X?
- redis-rdb is written in Ruby
- rdbhs is written in Haskell
- rdb-parser is written in Node.js
- rdb is written in Go
You should directly contact the respective authors in case you have questions.
You can reuse the test dump files to test your parser implementation. parser_tests.py uses these dump files to ensure the parser is working properly. You can use these tests as a starting point for your parser implementation.