redis c、java编程api

目录
  1. redis c 编程api
  2. redis java编程api

redis c 编程api

官方推荐使用的API接口:

  • hiredis
    This is the official C client. Support for the whole command set, pipelining, event driven programming.See redis/hiredis

  • hiredis-vip
    This is the C client for redis cluster. Support for synchronous api, MSET/MGET/DEL, pipelining, asynchronous api. See vipshop/hiredis-vip

其中,hiredis-vip是基于hiredis衍生出来的,其支持hiredis的所有操作,并支持redis集群操作

api使用方法,可见github上的test.c:
hiredis/test.c
hiredis-vip/test.c

redis java编程api

官方推荐使用的API接口:

  • Jedis
  • lettuce
    Advanced Redis client for thread-safe sync, async, and reactive usage. Supports Cluster, Sentinel, Pipelining, and codecs.
  • Redisson
    distributed and scalable Java data structures on top of Redis server

tips:
可以在redis官网上查看各种编程语言支持的redis API接口Clients,其中,带星号的是redis官方推荐使用的

本站总访问量