<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>node-redis guide (JavaScript) on Docs</title>
    <link>https://redis.io/docs/latest/develop/clients/nodejs/</link>
    <description>Recent content in node-redis guide (JavaScript) on Docs</description>
    <generator>Hugo</generator>
    <language>en</language>
    <atom:link href="https://redis.io/docs/latest/develop/clients/nodejs/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Connect to the server</title>
      <link>https://redis.io/docs/latest/develop/clients/nodejs/connect/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://redis.io/docs/latest/develop/clients/nodejs/connect/</guid>
      <description>&lt;h2 id=&#34;basic-connection&#34; class=&#34;group relative&#34;&gt;&#xA;  Basic connection&#xA;  &lt;a href=&#34;#basic-connection&#34; class=&#34;header-link opacity-0 group-hover:opacity-100 transition-opacity duration-200 ml-1 align-baseline&#34; aria-label=&#34;Link to this section&#34; title=&#34;Copy link to clipboard&#34;&gt;&#xA;    &lt;svg class=&#34;inline-block w-4 h-4 align-baseline&#34; fill=&#34;currentColor&#34; viewBox=&#34;0 0 20 20&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path fill-rule=&#34;evenodd&#34; d=&#34;M12.586 4.586a2 2 0 112.828 2.828l-3 3a2 2 0 01-2.828 0 1 1 0 00-1.414 1.414 4 4 0 005.656 0l3-3a4 4 0 00-5.656-5.656l-1.5 1.5a1 1 0 101.414 1.414l1.5-1.5zm-5 5a2 2 0 012.828 0 1 1 0 101.414-1.414 4 4 0 00-5.656 0l-3 3a4 4 0 105.656 5.656l1.5-1.5a1 1 0 10-1.414-1.414l-1.5 1.5a2 2 0 11-2.828-2.828l3-3z&#34; clip-rule=&#34;evenodd&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Connect to localhost on port 6379.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Connect to Azure Managed Redis</title>
      <link>https://redis.io/docs/latest/develop/clients/nodejs/amr/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://redis.io/docs/latest/develop/clients/nodejs/amr/</guid>
      <description>&lt;p&gt;The &lt;a href=&#34;https://github.com/redis/node-redis/tree/master/packages/entraid&#34;&gt;&lt;code&gt;@redis/entraid&lt;/code&gt;&lt;/a&gt;&#xA;package lets you authenticate your app to&#xA;&lt;a href=&#34;https://azure.microsoft.com/en-us/products/managed-redis&#34;&gt;Azure Managed Redis (AMR)&lt;/a&gt;&#xA;using &lt;a href=&#34;https://learn.microsoft.com/en-us/entra/identity/&#34;&gt;Microsoft Entra ID&lt;/a&gt;.&#xA;You can authenticate using a system-assigned or user-assigned&#xA;&lt;a href=&#34;https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/overview&#34;&gt;managed identity&lt;/a&gt;,&#xA;a &lt;a href=&#34;https://learn.microsoft.com/en-us/entra/identity-platform/app-objects-and-service-principals&#34;&gt;service principal&lt;/a&gt;,&#xA;an &lt;a href=&#34;https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow&#34;&gt;auth code flow&lt;/a&gt;,&#xA;or a &lt;a href=&#34;https://learn.microsoft.com/en-gb/dotnet/azure/sdk/authentication/credential-chains?tabs=dac#defaultazurecredential-overview&#34;&gt;&lt;code&gt;DefaultAzureCredential&lt;/code&gt;&lt;/a&gt; instance.&#xA;The &lt;code&gt;@redis/entraid&lt;/code&gt; code fetches and renews the authentication tokens for you automatically.&lt;/p&gt;&#xA;&lt;h2 id=&#34;install&#34; class=&#34;group relative&#34;&gt;&#xA;  Install&#xA;  &lt;a href=&#34;#install&#34; class=&#34;header-link opacity-0 group-hover:opacity-100 transition-opacity duration-200 ml-1 align-baseline&#34; aria-label=&#34;Link to this section&#34; title=&#34;Copy link to clipboard&#34;&gt;&#xA;    &lt;svg class=&#34;inline-block w-4 h-4 align-baseline&#34; fill=&#34;currentColor&#34; viewBox=&#34;0 0 20 20&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path fill-rule=&#34;evenodd&#34; d=&#34;M12.586 4.586a2 2 0 112.828 2.828l-3 3a2 2 0 01-2.828 0 1 1 0 00-1.414 1.414 4 4 0 005.656 0l3-3a4 4 0 00-5.656-5.656l-1.5 1.5a1 1 0 101.414 1.414l1.5-1.5zm-5 5a2 2 0 012.828 0 1 1 0 101.414-1.414 4 4 0 00-5.656 0l-3 3a4 4 0 105.656 5.656l1.5-1.5a1 1 0 10-1.414-1.414l-1.5 1.5a2 2 0 11-2.828-2.828l3-3z&#34; clip-rule=&#34;evenodd&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Install &lt;a href=&#34;https://redis.io/docs/latest/develop/clients/nodejs/&#34;&gt;&lt;code&gt;node-redis&lt;/code&gt;&lt;/a&gt; and&#xA;&lt;code&gt;@redis/entraid&lt;/code&gt; with the following commands:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Index and query documents</title>
      <link>https://redis.io/docs/latest/develop/clients/nodejs/queryjson/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://redis.io/docs/latest/develop/clients/nodejs/queryjson/</guid>
      <description>&lt;p&gt;This example shows how to create a&#xA;&lt;a href=&#34;https://redis.io/docs/latest/develop/ai/search-and-query/indexing/&#34;&gt;search index&lt;/a&gt;&#xA;for &lt;a href=&#34;https://redis.io/docs/latest/develop/data-types/json/&#34;&gt;JSON&lt;/a&gt; documents and&#xA;run queries against the index. It then goes on to show the slight differences&#xA;in the equivalent code for &lt;a href=&#34;https://redis.io/docs/latest/develop/data-types/hashes/&#34;&gt;hash&lt;/a&gt;&#xA;documents.&lt;/p&gt;&#xA;&#xA;&lt;div class=&#34;alert p-3 relative flex flex-row flex-wrap items-center text-base bg-redis-pencil-200 rounded-md&#34;&gt;&#xA;  &lt;div class=&#34;p-2 pr-5&#34;&gt;&lt;svg width=&#34;21&#34; height=&#34;21&#34; viewBox=&#34;0 0 21 21&#34; fill=&#34;none&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;  &lt;circle cx=&#34;10.5&#34; cy=&#34;10.5&#34; r=&#34;9.75&#34; stroke=&#34;currentColor&#34; stroke-width=&#34;1.5&#34;/&gt;&#xA;  &lt;path d=&#34;M10.5 14V16&#34; stroke=&#34;currentColor&#34; stroke-width=&#34;2&#34;/&gt;&#xA;  &lt;path d=&#34;M10.5 5V12&#34; stroke=&#34;currentColor&#34; stroke-width=&#34;2&#34;/&gt;&#xA;&lt;/svg&gt;&#xA;  &lt;/div&gt;&#xA;  &lt;div class=&#34;p-1 pl-4 sm:pl-6 border-l border-l-redis-ink-900 border-opacity-50 flex-1&#34;&gt;&#xA;  &#xA;  &lt;div class=&#34;font-medium&#34;&gt;Note:&lt;/div&gt;&#xA;  From &lt;a href=&#34;https://github.com/redis/node-redis/releases/tag/redis%405.0.0&#34;&gt;v5.0.0&lt;/a&gt;&#xA;onwards, &lt;code&gt;node-redis&lt;/code&gt; uses query dialect 2 by default.&#xA;Redis query engine methods such as &lt;a href=&#34;https://redis.io/docs/latest/commands/ft.search/&#34;&gt;&lt;code&gt;ft.search()&lt;/code&gt;&lt;/a&gt;&#xA;will explicitly request this dialect, overriding the default set for the server.&#xA;See&#xA;&lt;a href=&#34;https://redis.io/docs/latest/develop/ai/search-and-query/advanced-concepts/dialects/&#34;&gt;Query dialects&lt;/a&gt;&#xA;for more information.&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&#xA;&lt;h2 id=&#34;initialize&#34; class=&#34;group relative&#34;&gt;&#xA;  Initialize&#xA;  &lt;a href=&#34;#initialize&#34; class=&#34;header-link opacity-0 group-hover:opacity-100 transition-opacity duration-200 ml-1 align-baseline&#34; aria-label=&#34;Link to this section&#34; title=&#34;Copy link to clipboard&#34;&gt;&#xA;    &lt;svg class=&#34;inline-block w-4 h-4 align-baseline&#34; fill=&#34;currentColor&#34; viewBox=&#34;0 0 20 20&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path fill-rule=&#34;evenodd&#34; d=&#34;M12.586 4.586a2 2 0 112.828 2.828l-3 3a2 2 0 01-2.828 0 1 1 0 00-1.414 1.414 4 4 0 005.656 0l3-3a4 4 0 00-5.656-5.656l-1.5 1.5a1 1 0 101.414 1.414l1.5-1.5zm-5 5a2 2 0 012.828 0 1 1 0 101.414-1.414 4 4 0 00-5.656 0l-3 3a4 4 0 105.656 5.656l1.5-1.5a1 1 0 10-1.414-1.414l-1.5 1.5a2 2 0 11-2.828-2.828l3-3z&#34; clip-rule=&#34;evenodd&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Make sure that you have &lt;a href=&#34;https://redis.io/docs/latest/operate/oss_and_stack/&#34;&gt;Redis Open Source&lt;/a&gt;&#xA;or another Redis server available. Also install the&#xA;&lt;a href=&#34;https://redis.io/docs/latest/develop/clients/nodejs/&#34;&gt;&lt;code&gt;node-redis&lt;/code&gt;&lt;/a&gt; client library if you&#xA;haven&#39;t already done so.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Index and query vectors</title>
      <link>https://redis.io/docs/latest/develop/clients/nodejs/vecsearch/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://redis.io/docs/latest/develop/clients/nodejs/vecsearch/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://redis.io/docs/latest/develop/ai/search-and-query/&#34;&gt;Redis Query Engine&lt;/a&gt;&#xA;lets you index vector fields in &lt;a href=&#34;https://redis.io/docs/latest/develop/data-types/hashes/&#34;&gt;hash&lt;/a&gt;&#xA;or &lt;a href=&#34;https://redis.io/docs/latest/develop/data-types/json/&#34;&gt;JSON&lt;/a&gt; objects (see the&#xA;&lt;a href=&#34;https://redis.io/docs/latest/develop/ai/search-and-query/vectors/&#34;&gt;Vectors&lt;/a&gt;&#xA;reference page for more information).&lt;/p&gt;&#xA;&lt;p&gt;Vector fields can store &lt;em&gt;text embeddings&lt;/em&gt;, which are AI-generated vector&#xA;representations of text content. The&#xA;&lt;a href=&#34;https://redis.io/docs/latest/develop/ai/search-and-query/vectors/#distance-metrics&#34;&gt;vector distance&lt;/a&gt;&#xA;between two embeddings measures their semantic similarity. When you compare the&#xA;similarity of a query embedding with stored embeddings, Redis can retrieve documents&#xA;that closely match the query&#39;s meaning.&lt;/p&gt;&#xA;&lt;p&gt;In the example below, we use the&#xA;&lt;a href=&#34;https://www.npmjs.com/package/@xenova/transformers&#34;&gt;&lt;code&gt;@xenova/transformers&lt;/code&gt;&lt;/a&gt;&#xA;library to generate vector embeddings to store and index with&#xA;Redis Query Engine. The code is first demonstrated for hash documents with a&#xA;separate section to explain the&#xA;&lt;a href=&#34;#differences-with-json-documents&#34;&gt;differences with JSON documents&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Vector set embeddings</title>
      <link>https://redis.io/docs/latest/develop/clients/nodejs/vecsets/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://redis.io/docs/latest/develop/clients/nodejs/vecsets/</guid>
      <description>&lt;p&gt;A Redis &lt;a href=&#34;https://redis.io/docs/latest/develop/data-types/vector-sets/&#34;&gt;vector set&lt;/a&gt; lets&#xA;you store a set of unique keys, each with its own associated vector.&#xA;You can then retrieve keys from the set according to the similarity between&#xA;their stored vectors and a query vector that you specify.&lt;/p&gt;&#xA;&lt;p&gt;You can use vector sets to store any type of numeric vector but they are&#xA;particularly optimized to work with text embedding vectors (see&#xA;&lt;a href=&#34;https://redis.io/docs/latest/develop/ai/&#34;&gt;Redis for AI&lt;/a&gt; to learn more about text&#xA;embeddings). The example below shows how to use the&#xA;&lt;a href=&#34;https://www.npmjs.com/package/@xenova/transformers&#34;&gt;&lt;code&gt;@xenova/transformers&lt;/code&gt;&lt;/a&gt;&#xA;library to generate vector embeddings and then&#xA;store and retrieve them using a vector set with &lt;code&gt;node-redis&lt;/code&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Pipelines and transactions</title>
      <link>https://redis.io/docs/latest/develop/clients/nodejs/transpipe/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://redis.io/docs/latest/develop/clients/nodejs/transpipe/</guid>
      <description>&lt;p&gt;Redis lets you send a sequence of commands to the server together in a batch.&#xA;There are two types of batch that you can use:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Pipelines&lt;/strong&gt; avoid network and processing overhead by sending several commands&#xA;to the server together in a single communication. The server then sends back&#xA;a single communication with all the responses. See the&#xA;&lt;a href=&#34;https://redis.io/docs/latest/develop/using-commands/pipelining/&#34;&gt;Pipelining&lt;/a&gt; page for more&#xA;information.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Transactions&lt;/strong&gt; guarantee that all the included commands will execute&#xA;to completion without being interrupted by commands from other clients.&#xA;See the &lt;a href=&#34;https://redis.io/docs/latest/develop/using-commands/transactions/&#34;&gt;Transactions&lt;/a&gt;&#xA;page for more information.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;execute-a-pipeline&#34; class=&#34;group relative&#34;&gt;&#xA;  Execute a pipeline&#xA;  &lt;a href=&#34;#execute-a-pipeline&#34; class=&#34;header-link opacity-0 group-hover:opacity-100 transition-opacity duration-200 ml-1 align-baseline&#34; aria-label=&#34;Link to this section&#34; title=&#34;Copy link to clipboard&#34;&gt;&#xA;    &lt;svg class=&#34;inline-block w-4 h-4 align-baseline&#34; fill=&#34;currentColor&#34; viewBox=&#34;0 0 20 20&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path fill-rule=&#34;evenodd&#34; d=&#34;M12.586 4.586a2 2 0 112.828 2.828l-3 3a2 2 0 01-2.828 0 1 1 0 00-1.414 1.414 4 4 0 005.656 0l3-3a4 4 0 00-5.656-5.656l-1.5 1.5a1 1 0 101.414 1.414l1.5-1.5zm-5 5a2 2 0 012.828 0 1 1 0 101.414-1.414 4 4 0 00-5.656 0l-3 3a4 4 0 105.656 5.656l1.5-1.5a1 1 0 10-1.414-1.414l-1.5 1.5a2 2 0 11-2.828-2.828l3-3z&#34; clip-rule=&#34;evenodd&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;There are two ways to execute commands in a pipeline. Firstly, &lt;code&gt;node-redis&lt;/code&gt; will&#xA;automatically pipeline commands that execute within the same &amp;quot;tick&amp;quot; of the&#xA;&lt;a href=&#34;https://nodejs.org/en/learn/asynchronous-work/event-loop-timers-and-nexttick#what-is-the-event-loop&#34;&gt;event loop&lt;/a&gt;.&#xA;You can ensure that commands happen in the same tick very easily by including them in a&#xA;&lt;a href=&#34;https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all&#34;&gt;&lt;code&gt;Promise.all()&lt;/code&gt;&lt;/a&gt;&#xA;call, as shown in the following example. The chained &lt;code&gt;then(...)&lt;/code&gt; callback is optional&#xA;and you can often omit it for commands that write data and only return a&#xA;status result.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Probabilistic data types</title>
      <link>https://redis.io/docs/latest/develop/clients/nodejs/prob/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://redis.io/docs/latest/develop/clients/nodejs/prob/</guid>
      <description>&lt;p&gt;Redis supports several&#xA;&lt;a href=&#34;https://redis.io/docs/latest/develop/data-types/probabilistic/&#34;&gt;probabilistic data types&lt;/a&gt;&#xA;that let you calculate values approximately rather than exactly.&#xA;The types fall into two basic categories:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#set-operations&#34;&gt;Set operations&lt;/a&gt;: These types let you calculate (approximately)&#xA;the number of items in a set of distinct values, and whether or not a given value is&#xA;a member of a set.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#statistics&#34;&gt;Statistics&lt;/a&gt;: These types give you an approximation of&#xA;statistics such as the quantiles, ranks, and frequencies of numeric data points in&#xA;a list.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;To see why these approximate calculations would be useful, consider the task of&#xA;counting the number of distinct IP addresses that access a website in one day.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Error handling</title>
      <link>https://redis.io/docs/latest/develop/clients/nodejs/error-handling/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://redis.io/docs/latest/develop/clients/nodejs/error-handling/</guid>
      <description>&lt;p&gt;node-redis uses&#xA;&lt;a href=&#34;https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise&#34;&gt;&lt;strong&gt;promises&lt;/strong&gt;&lt;/a&gt;&#xA;for error handling. Most Redis JavaScript examples&#xA;throughout the documentation mainly show the &amp;quot;happy path&amp;quot; and omit error&#xA;handling for brevity. This page shows how to apply error handling&#xA;techniques in node-redis for real world code.&#xA;For an overview of some common general error types and strategies for&#xA;handling them, see&#xA;&lt;a href=&#34;https://redis.io/docs/latest/develop/clients/error-handling/&#34;&gt;Error handling&lt;/a&gt;.&#xA;See also &lt;a href=&#34;https://redis.io/docs/latest/develop/clients/nodejs/produsage/&#34;&gt;Production usage&lt;/a&gt;&#xA;for more information on connection management, timeouts, and other aspects of&#xA;app reliability.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Production usage</title>
      <link>https://redis.io/docs/latest/develop/clients/nodejs/produsage/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://redis.io/docs/latest/develop/clients/nodejs/produsage/</guid>
      <description>&lt;p&gt;This guide offers recommendations to get the best reliability and&#xA;performance in your production environment.&lt;/p&gt;&#xA;&lt;h2 id=&#34;checklist&#34; class=&#34;group relative&#34;&gt;&#xA;  Checklist&#xA;  &lt;a href=&#34;#checklist&#34; class=&#34;header-link opacity-0 group-hover:opacity-100 transition-opacity duration-200 ml-1 align-baseline&#34; aria-label=&#34;Link to this section&#34; title=&#34;Copy link to clipboard&#34;&gt;&#xA;    &lt;svg class=&#34;inline-block w-4 h-4 align-baseline&#34; fill=&#34;currentColor&#34; viewBox=&#34;0 0 20 20&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path fill-rule=&#34;evenodd&#34; d=&#34;M12.586 4.586a2 2 0 112.828 2.828l-3 3a2 2 0 01-2.828 0 1 1 0 00-1.414 1.414 4 4 0 005.656 0l3-3a4 4 0 00-5.656-5.656l-1.5 1.5a1 1 0 101.414 1.414l1.5-1.5zm-5 5a2 2 0 012.828 0 1 1 0 101.414-1.414 4 4 0 00-5.656 0l-3 3a4 4 0 105.656 5.656l1.5-1.5a1 1 0 10-1.414-1.414l-1.5 1.5a2 2 0 11-2.828-2.828l3-3z&#34; clip-rule=&#34;evenodd&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Each item in the checklist below links to the section&#xA;for a recommendation. Use the checklist icons to record your&#xA;progress in implementing the recommendations.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Migrate from ioredis</title>
      <link>https://redis.io/docs/latest/develop/clients/nodejs/migration/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://redis.io/docs/latest/develop/clients/nodejs/migration/</guid>
      <description>&lt;p&gt;Redis previously recommended the &lt;a href=&#34;https://redis.io/docs/latest/develop/clients/ioredis/&#34;&gt;&lt;code&gt;ioredis&lt;/code&gt;&lt;/a&gt;&#xA;client library for development with &lt;a href=&#34;https://nodejs.org/en&#34;&gt;Node.js&lt;/a&gt;,&#xA;but this library is now deprecated in favor of&#xA;&lt;a href=&#34;https://redis.io/docs/latest/develop/clients/nodejs/&#34;&gt;&lt;code&gt;node-redis&lt;/code&gt;&lt;/a&gt;. This guide&#xA;outlines the main similarities and differences between the two libraries.&#xA;You may find this information useful if you are an &lt;code&gt;ioredis&lt;/code&gt; user and you want to&#xA;start a new Node.js project or migrate an existing &lt;code&gt;ioredis&lt;/code&gt; project to &lt;code&gt;node-redis&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;comparison-of-ioredis-and-node-redis&#34; class=&#34;group relative&#34;&gt;&#xA;  Comparison of &lt;code&gt;ioredis&lt;/code&gt; and &lt;code&gt;node-redis&lt;/code&gt;&#xA;  &lt;a href=&#34;#comparison-of-ioredis-and-node-redis&#34; class=&#34;header-link opacity-0 group-hover:opacity-100 transition-opacity duration-200 ml-1 align-baseline&#34; aria-label=&#34;Link to this section&#34; title=&#34;Copy link to clipboard&#34;&gt;&#xA;    &lt;svg class=&#34;inline-block w-4 h-4 align-baseline&#34; fill=&#34;currentColor&#34; viewBox=&#34;0 0 20 20&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&#xA;      &lt;path fill-rule=&#34;evenodd&#34; d=&#34;M12.586 4.586a2 2 0 112.828 2.828l-3 3a2 2 0 01-2.828 0 1 1 0 00-1.414 1.414 4 4 0 005.656 0l3-3a4 4 0 00-5.656-5.656l-1.5 1.5a1 1 0 101.414 1.414l1.5-1.5zm-5 5a2 2 0 012.828 0 1 1 0 101.414-1.414 4 4 0 00-5.656 0l-3 3a4 4 0 105.656 5.656l1.5-1.5a1 1 0 10-1.414-1.414l-1.5 1.5a2 2 0 11-2.828-2.828l3-3z&#34; clip-rule=&#34;evenodd&#34;&gt;&lt;/path&gt;&#xA;    &lt;/svg&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;The tables below summarize how &lt;code&gt;ioredis&lt;/code&gt; and &lt;code&gt;node-redis&lt;/code&gt; implement some&#xA;key features of Redis. See the following sections for more information about&#xA;each feature.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
