Coder Social home page Coder Social logo

coofucoo / redis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ctripcorp/redis-on-rocks

0.0 2.0 0.0 66.55 MB

Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, HyperLogLogs, Bitmaps.

Home Page: http://redis.io

License: BSD 3-Clause "New" or "Revised" License

Makefile 0.30% Shell 0.56% C 79.53% Ruby 2.68% C++ 0.08% Tcl 16.80% Smarty 0.04%

redis's Introduction

Introduction

XRedis is ctrip redis branch. Ctrip is a leading provider of travel services including accommodation reservation, transportation ticketing, packaged tours and corporate travel management.

Features

  • all features of redis 3.0.7 are inherited.
  • xslaveof command support
  • psync2 support

Details

xslaveof command

Suppose that redis slave is connectted to redis master(ip1 port1), at the mean time command slaveof ip2 port2 is sent to this slave. Then redis will do the following:

  1. Slave try this full resynchronization at the cron time(one time per second by default)

xslaveof ip port is a promotion for slaveof:

  1. Slave try this partial resynchronization as soon as possible

psync2 support

Here is the document for psync2

force full sync

* 命令 `refullsync`
force all slaves reconnect itself, and fullsync with slaves

slave read only mode can replicate all commands to it's slaves

WARN: dangerous, you have to know what you are doing when using this comman

config set slave-repl-all yes
config set slave-repl-all no
  1. Config remain in memory, never persist to disk
  2. Cofig will automatically become yes when server become master

redis's People

Contributors

antirez avatar pietern avatar mattsta avatar geoffgarside avatar badboy avatar anydot avatar charsyam avatar jbergstroem avatar wenchaomeng avatar sunheehnus avatar hampus avatar erikdubbelboer avatar yamt avatar yossigo avatar nanxiao avatar jokea avatar michael-grunder avatar melo avatar soveran avatar mariano-perez-rodriguez avatar lucsky avatar lamby avatar yoav-steinberg avatar tnm avatar stamhe avatar saj avatar catwell avatar florean avatar kaoshijuan avatar tmm1 avatar

Watchers

 avatar James Cloos 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.