<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          LettuceRedis 的 Java 客戶端開發(fā)包

          聯(lián)合創(chuàng)作 · 2023-09-30 18:51

          Lettuce是一個可伸縮線程安全的Redis客戶端。多個線程可以共享同一個RedisConnection。它利用優(yōu)秀netty NIO框架來高效地管理多個連接。

          示例代碼:

          RedisClient client = new RedisClient("localhost")
          RedisConnection<String, String> connection = client.connect()
          String value = connection.get("key")

          異步 API

          StatefulRedisConnection<String, String> connection = client.connect();
          RedisStringAsyncCommands<String, String> async = connection.async();
          RedisFuture<String> set = async.set("key", "value")
          RedisFuture<String> get = async.get("key")
          
          async.awaitAll(set, get) == true
          
          set.get() == "OK"
          get.get() == "value"
          瀏覽 17
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  精品A片九九九九免费视频 | 色综合色综合 | 日韩大香焦 | 搔视频网址在线观看 | 乱伦小说亚洲图片 |