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

          ioredisNode.js 的 Redis 客戶端

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

          ioredis 是一個(gè)用于 Node.js/io.js 的 Redis 客戶端,強(qiáng)健、功能強(qiáng)大且全面。

          要求 Redis >= 2.6.12 ,Node.js >= 0.10.16)

          具有以下特性

          • 功能完備。支持 Cluster, Sentinel, Pipelining,以及 Lua scripting & Pub/Sub(同時(shí)支持二進(jìn)制消息)

          • 高性能

          • 友好的 API,支持使用 Node callbacks 以及 Bluebird promises

          • 抽象 Lua 腳本,可定義自定義命令

          • 支持二進(jìn)制數(shù)據(jù)

          • 支持 TLS

          • 支持離線隊(duì)列和準(zhǔn)備檢查

          • 支持 ES6 類型,例如 Map and Set

          • 支持 GEO 命令(Redis 3.2 Unstable)

          • 完善的錯(cuò)誤處理策略

          示例代碼 - 基本用法

          var Redis = require('ioredis');
          var redis = new Redis();
          redis.set('foo', 'bar');
          redis.get('foo', function (err, result) {
            console.log(result);
          });
          // Or using a promise if the last argument isn't a function
          redis.get('foo').then(function (result) {
            console.log(result);
          });
          // Arguments to commands are flattened, so the following are the same:
          redis.sadd('set', 1, 3, 5, 7);
          redis.sadd('set', [1, 3, 5, 7]);
          // All arguments are passed directly to the redis server:
          redis.set('key', 100, 'EX', 10);
          瀏覽 17
          點(diǎn)贊
          評論
          收藏
          分享

          手機(jī)掃一掃分享

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

          手機(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>
                  青春草在线无码 | 国产卡一卡二视频 | 操逼电影影音先锋 | 付妙菱 女大学生羞涩 | 亚洲AV无码乱码国产精品蜜芽 |