|
6 yıl önce | |
---|---|---|
LICENSE | 6 yıl önce | |
README.md | 6 yıl önce | |
redis2json.lua | 6 yıl önce |
redis2json
is a simple (dependency free!) lua script which runs directly in redis.
redis-cli --eval redis2json.lua > /tmp/redis.json
# create a couchdb database named "redis"
curl -X PUT http://127.0.0.1:5984/redis
# export redis keys and import than in couchdb database "redis"
redis-cli --eval "redis2json.lua" | POST -sS "http://127.0.0.1:5984/redis" -c "application/json"
TYPE
string
list
Feel free to help and improve it!