Lettuce is a scalable threadsafe redis client for synchronous, asynchronous and reactive usage. Release api lettuce is a scalable threadsafe java redisclient providing synchronous, asynchronous and reactive apis for redis standalone, pubsub, redis sentinel and redis cluster. Pipelines allow asynchronous usage of redis but, unfortunately, cannot be. Browse the most popular 54 redis client open source projects. Lettuce advanced and threadsafe java redis client for synchronous, asynchronous, and reactive usage. Supports advanced redis features such as sentinel, cluster, pipelining, autoreconnect and redis data models. The specific configuration that i am currently using is the static masterslave with predefined node addresses. Every invocation on the async api returns a future response. Multiple threads may share one connection if they avoid. Supports cluster, sentinel, pipelining, autoreconnect, codecs and much more. Advanced java redis client for threadsafe sync, async, and reactive usage. Lettuce is a scalable redis client for building nonblocking reactive applications. Lettuce provides asynchronous api with redisfuture completionstage and reactive types flux n and mono 01.
Asynchronous connections lettuceiolettucecore wiki. Get unlimited access to the best stories on medium and support writers while youre at it. Lettuce supports both synchronous and asynchronous communication use of. Flushdb deletes all keys from the connections current database. This article is an introduction to lettuce, a redis java client. Lettuce is a fully nonblocking redis client built with netty providing reactive, asynchronous and synchronous data access. Install and config redis on mac os x via homebrew medium. The distinguishing features of lettuce include synchronous and asynchronous support for redis via the java 8 completionstage interface. Jedis and lettuce are popular redis clients for java developers.
Lettuce 5 introduces the dynamic redis commands api. Add one or more members to a sorted set, or update its score if it already exists applying the incr option. A redisclient and redisclusterclient can be created without. Supports cluster, sentinel, pipelining, and codecs. Swap two redis databases, so that immediately all the clients connected to a given db will see the data of the other db, and the other way around methods inherited from interface com. Retcl retcl is an asynchronous, eventdriven redis client library implemented as a singlefile tcl module. Threads can be fully utilized to perform other work instead. Basic async client for redis in swift ios uniredis redis client for swift on macos and linux, capable of pipelining and transactions, with transparent support for authentication and sentinel.
842 935 15 887 538 287 801 875 824 1212 49 961 1134 171 1277 1026 366 1490 1510 1565 962 16 391 1455 637 1042 790 880 1251 1168 1075 923 325 1206 1344 862 7 495 1344 203