GithubHelp home page GithubHelp logo

redis_dump.sh's Introduction

redis_dump.sh

A bash shell script for dump redis as a file

###Useage

> ./redis_dump.sh -help   
I'm help to help for redis dump shell script.
-h <hostname> Redis server hostname (default: 127.0.0.1)
-p <port> Redis server port (default: 6379)
-r <path to redis-cli> Path to redis-cli, such as "/user/share/redis/bin/"
-k <key> Key to dump, support the patterns which is provided by redis-cli, such as "h*llo"

###Converter Map,set,string and list can be stored in redis. This shell will convert these type as following:

1.Map

key1:{field1, value1}{field2, value2} 

will be convert to

key1,field1,value1
key2,field2,value2

2.List

key1:[value1,value2,value3]

will be convert to

key1,value1
key2,value2
key3,value3

3.Set

key1:{value1,value2,value3}

will be convert to

key1,value1
key2,value2
key3,value3

###Todo

  1. Improve the performance.
  2. Refactor code.
  3. Support zset and other types.

redis_dump.sh's People

Contributors

c3qo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.