GithubHelp home page GithubHelp logo

jredis's Introduction

δΈ­ζ–‡ english

HanboDB

redis of java implemented, as same as a redis server.

features

support dynamic resize support all of redis proto,e.g:

1.set get
2.lpush rpush lrange blpop brpop llen
3.hset hget hgetall hscan
4.pub sub
5.select keys scan expire del
6.multi exec discard
7.incr incrby
8.slaveof
....  

client side

compat jedis,spring-data-redis
compat redisDesktop management tool with v0.9+

architecture

used fastUtil library(Object2List,Object2Map) has a powerful read/write ability only keys be loaded in JVM heap

storage design

buffer-structure

replication

linear storage

1.fixed unit size ,head 4 byte write in last item position,
and then each item write in 4 byte with it bytes length and actually bytes(TLV).
2.key and value are seperated in storage
3.if buffer remaining not enough to write,then auto resize

build server

cd jredis && mvn clean install -Dmaven.test.skip=true

run server

java -jar transport-1.0-SNAPSHOT.jar

ha conf

support one master multi slave,but not support auto selective master,now need to manual promotion. i will plan to implement sentinel mechanism

master

auto discovery slave node

replication.mode=master

slave

auto register slave node

replication.mode=slave
slaver.of=127.0.0.1:16379

jredis's People

Contributors

lmx1989219 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.