redis2json
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Markus Bergholz 2fa30cbdd9 disable debugging pirms 4 gadiem
LICENSE Initial commit pirms 4 gadiem
README.md update README pirms 4 gadiem
redis2json.lua disable debugging pirms 4 gadiem

README.md

redis2json

redis2json is a simple (dependency free!) lua script which runs directly in redis.

usage

export redis db to json file

redis-cli --eval redis2json.lua > /tmp/redis.json

redis to couchdb

# 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"

limitations

  1. Currently redis2json only supports keys with TYPE
    • string
    • list
  2. There are proper ways to get a json string from you redis db

Feel free to help and improve it!