redis of java implemented, as same as a redis server.
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
....
compat jedis,spring-data-redis
compat redisDesktop management tool with v0.9+
used fastUtil library(Object2List,Object2Map) has a powerful read/write ability only keys be loaded in JVM heap
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
cd jredis && mvn clean install -Dmaven.test.skip=true
java -jar transport-1.0-SNAPSHOT.jar
support one master multi slave,but not support auto selective master,now need to manual promotion. i will plan to implement sentinel mechanism
auto discovery slave node
replication.mode=master
auto register slave node
replication.mode=slave
slaver.of=127.0.0.1:16379