【文件属性】:
文件名称:redis-dump-load:转储Redis数据库,将数据加载到Redis中-在Python中
文件大小:20KB
文件格式:ZIP
更新时间:2021-05-15 07:30:32
Python
redis-dump-load
将Redis数据集转储为适合长期存储的格式(当前为JSON),并将数据从此类转储文件加载回Redis。
特征
redis-dump-load:
支持所有Redis数据类型;
转储TTL和到期时间;
可以加载TTL或原始过期时间作为过期密钥;
可以创建漂亮的/人类可读的转储(按排序顺序转储的键,缩进的输出);
可以在转储和加载时流式传输数据;
可用作较大程序中的模块或独立实用程序;
使用与兼容的输出格式。
用法
redis-dump-load可以用作模块,也可以用作命令行工具。
模块使用
redis-dump-load导出一个类似的接口,即load , loads , dump和dumps函数。 例如:
import redisdl
json_text = redisdl.dumps()
with open('path/to/dump.js
【文件预览】:
redis-dump-load-master
----.travis.yml(720B)
----README.rst(10KB)
----requirements-dev.txt(35B)
----tests()
--------module_test.py(10KB)
--------bloat_redis.py(113B)
--------program_test.py(4KB)
--------util.py(3KB)
--------__init__.py(0B)
--------race_deleting_keys_test.py(2KB)
--------alternate_encoding_test.py(2KB)
--------travis()
--------big_data.py(2KB)
--------fixtures()
----LICENSE(1KB)
----requirements.txt(6B)
----setup.py(1KB)
----.gitignore(42B)
----Makefile(174B)
----redisdl.py(21KB)