=====================
类Jedis功能及协议
- 无歧义的集成所有ssdb command操作
- server control commands
- connetction Pooling
- 客户端数据分片功能(待开放)
ssdb-server的代理,做负载均衡,数据分片,server监控,数据迁移等功能
ssdb server和client的UI管理界面,实时查看server和数据信息
- cd ssdbcluster directory
- mvn clean install (-Dmaven.test.skip=true)
- add pom dependency:
<dependency>
<groupId>com.yeahmobi.ssdbcluster</groupId>
<artifactId>ssdb-client</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
- you can use JSSDBPool directly such as ssdb-client/test/java...JSSDBPoolTest:
JSSDBPool pool = new JSSDBPool("172.0.0.1", 9801);
try(JSSDB ssdb = pool.getResource()){
ssdb.set(k,v);
}
or you can package JSSDBPool use Singleton such as:ssdb-client/test/java...JSSDBClientDemo: