<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>

          asyncio-redisPython asyncio 的 Redis 客戶端

          聯(lián)合創(chuàng)作 · 2023-09-28 14:20

          asyncio-redis 是 Python asyncioRedis 客戶端 (PEP 3156)。這個(gè) Redis 庫是完全異步的,Reids 服務(wù)器非阻塞客戶端,依賴于 asyncio,所以要求 Python 3.3. 或者 Python 3.4。

          連接示例:

          import asyncio
          import asyncio_redis
          @asyncio.coroutine
          def example():
              # Create Redis connection
              connection = yield from asyncio_redis.Connection.create(host='localhost', port=6379)
              # Set a key
              yield from connection.set('my_key', 'my_value')
              # When finished, close the connection.
              connection.close()
          if __name__ == '__main__':
              loop = asyncio.get_event_loop()
              loop.run_until_complete(example())
          瀏覽 34
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <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>
                  久久澡狠l澡欧美老妇 | 国产一级a毛一级a | 91aaa精品无码 | 黑人嫖中国女精品视频 | 无夜日逼|