mirror of https://github.com/ledisdb/ledisdb.git
5ce968006c | ||
---|---|---|
.. | ||
README.md | ||
redis_import.py | ||
test.py |
README.md
Notice
- The tool doesn't support
set
data type. - The tool doesn't support
bitmap
data type. - Our
zset
use integer instead of double, so the zset float score in Redis will be converted to integer. - Only Support Redis version greater than
2.8.0
, because we usescan
command to scan data. Also, you needredis-py
greater than2.9.0
.
Usage
$ python redis_import.py redis_host redis_port redis_db ledis_host ledis_port [True]
The option True
means convert set
to zset
or not, if not, set it to False
.
We will use the same db index as redis. That's to say, data in redis[0] will be transfer to ledisdb[0].