redis2json
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Markus Bergholz 63718c3450 update README 5 년 전
LICENSE Initial commit 5 년 전
README.md update README 5 년 전
redis2json.lua support now type list and check if a string is a number 5 년 전

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
  1. There are proper ways to get a json string from you redis db

Feel free to help and improve it!