Giter Club home page Giter Club logo

qedis's Introduction

 _____     _____   _____   _   ______                  
/  _  \   | ____| |  _  \ | | /  ___/                        
| | | |   | |__   | | | | | | | |____
| | | |   |  __|  | | | | | |  \__   \
| |_| |_  | |___  | |_| | | |  ___|  |
\_______| |_____| |_____/ |_| /_____/

Build Status

看中文说明请点我

A C++11 implementation of distributed redis server, use Leveldb for persist storage.(including cluster)

Requirements

  • C++11 & CMake
  • Linux or OS X

Cluster Features

Use zookeeper for leader election, to reach high availability.

Of course you can also use redis-sentinel.

See details in cluster Readme, still in development.

Fully compatible with redis

You can test Qedis with redis-cli, redis-benchmark, or use redis as master with Qedis as slave or conversely, it also can work with redis sentinel. In a word, Qedis is full compatible with Redis.

Support module for write your own extensions

Qedis supports module now, still in progress, much work to do. I added three commands(ldel, skeys, hgets) for demonstration.

Persistence: Not limited to memory

Leveldb can be configured as backend for Qedis.

High Performance

  • Qedis is approximately 20-25% faster than redis if run benchmark with pipeline requests(set -P = 50 or higher).
  • Average 80K requests per seconds for write, and 90K requests per seconds for read.
  • Before run test, please ensure that std::list::size() is O(1), obey the C++11 standards.

Run this command, compare with redis use pipeline commands, try it.

./redis-benchmark -q -n 1000000 -P 50 -c 50

image

Support LRU cache

When memory is low, you can make Qedis to free memory by evict some key according to LRU.

Master-slave Replication, transaction, RDB/AOF, slow log, publish-subscribe

Qedis supports them all :-)

Command List

show all supported commands list, about 140 commands

  • cmdlist

TODO

  • Support lua
  • Golang Cluster client

qedis's People

Contributors

loveyacper avatar

Watchers

 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.