GithubHelp home page GithubHelp logo

tedis's Introduction

Tedis

Tedis是另一个redis的java客户端

Tedis的目标是打造一个可在生产环境直接使用的高可用Redis解决方案。参见更多资料

Feature

  • 高可用,Tedis使用多写随机读做HA确保redis的高可用
  • 高性能,使用特殊的线程模型,使redis的性能不限制在客户端
  • 多种使用方式,如果你只有一个redis实例,并不需要tedis的HA功能,可以直接使用tedis-atomic;使用tedis的高可用功能需要部署多个redis实例使用tedis-group
  • 两种API,包括针对byte的底层api和面向object的高层api
  • 多种方便使用redis的工具集合,包括mysql数据同步到redis工具,利用redis做搜索工具等

QuickStart

引入Maven依赖:

<dependency>
  <groupId>com.taobao.common</groupId>
  <artifactId>tedis-group</artifactId>
  <version>1.1.0</version>
</dependency>
Group tedisGroup = new TedisGroup(appName, version);
tedisGroup.init();
ValueCommands valueCommands = new DefaultValueCommands(tedisGroup.getTedis());
// 写入一条数据
valueCommands.set(1, "test", "test value object");
// 读取一条数据
valueCommands.get(1, "test");

Tedis在GPL version 2协议下开源,目前还尚不完善,如果你有什么好的想法或者发现了任何bug,请不要吝啬你的意见:)

tedis's People

Contributors

echozhjun avatar

Watchers

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.