Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 20, 2024 via pnpm

ioredis 5.3.2

A robust, performance-focused and full-featured Redis client for Node.js.
Package summary
Share
0
issues
2
licenses
9
MIT
2
Apache-2.0
Package created
28 Mar 2015
Version published
15 Apr 2023
Maintainers
3
Total deps
11
Direct deps
9
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
9 Packages, Including:
@ioredis/commands@1.2.0
debug@4.3.4
ioredis@5.3.2
lodash.defaults@4.2.0
lodash.isarguments@3.1.0
ms@2.1.2
redis-errors@1.2.0
redis-parser@3.0.0
standard-as-callback@2.1.0

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
2 Packages, Including:
cluster-key-slot@1.1.2
denque@2.1.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

9
All Dependencies CSV
β“˜ This is a list of ioredis 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@ioredis/commands1.2.05.74 kBMIT
prod
cluster-key-slot1.1.25.13 kBApache-2.0
prod
debug4.3.412.94 kBMIT
prod
denque2.1.09.01 kBApache-2.0
prod
lodash.defaults4.2.06.12 kBMIT
prod
lodash.isarguments3.1.03.23 kBMIT
prod
redis-errors1.2.03.27 kBMIT
prod
redis-parser3.0.08.27 kBMIT
prod
standard-as-callback2.1.02.42 kBMIT
prod

Visualizations

Frequently Asked Questions

What does ioredis do?

ioredis is a robust, high-performance and fully-featured Redis client for Node.js. This client supports Redis version 2.6.12 and up, including the latest Dragonfly version. It offers support for essential Redis features like Cluster, Sentinel, Streams, Pipelining, Lua scripting, and Pub/Sub to name a few. Functionality also expands to TLS support, error handling strategies, and tools to handle binary data. It is utilized by large companies like Alibaba, suggesting its reliability and capacity to handle large scale applications.

How do you use ioredis?

Usage of ioredis is quite simple and intuitive. First, install the package via npm using npm install ioredis. After installation, import and initialize your Redis instance. Pass connection information to the instance if your Redis server is not running on localhost:6379. Here's a simple code example:

const Redis = require("ioredis");
const redis = new Redis();

// Use the redis instance to set key-value pairs.
redis.set("mykey", "value");

redis.get("mykey", (err, result) => {
  if (err) {
    console.error(err);
  } else {
    console.log(result); // Prints "value"
  }
});

redis.zadd("sortedSet", 1, "one", 2, "dos", 4, "quatro", 3, "three");
redis.zrange("sortedSet", 0, 2, "WITHSCORES").then((elements) => {
  console.log(elements);
});

Detailed usage examples are provided within an examples/ folder in the ioredis repository.

Where are the ioredis docs?

You can find the detailed documentation for ioredis at this URL: https://luin.github.io/ioredis/. The documentation covers a wide range of topics, from basic uses to complex features like pipelining, transactions, and Lua scripting. It also dives into error handling, Pub/Sub functionality, TLS options, and more. Every feature is elaborated with explanation and code snippets for a better understanding. This documentation is the go-to resource to answer all your queries and understand best the practices for using ioredis.