You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+69-27
Original file line number
Diff line number
Diff line change
@@ -19,20 +19,20 @@ ioredis is a robust, full-featured Redis client that is
19
19
used in the world's biggest online commerce company [Alibaba](http://www.alibaba.com/) and many other awesome companies.
20
20
21
21
0. Full-featured. It supports [Cluster](http://redis.io/topics/cluster-tutorial), [Sentinel](http://redis.io/topics/sentinel), [Streams](https://redis.io/topics/streams-intro), [Pipelining](http://redis.io/topics/pipelining), and of course [Lua scripting](http://redis.io/commands/eval), [Redis Functions](https://redis.io/topics/functions-intro), [Pub/Sub](http://redis.io/topics/pubsub) (with the support of binary messages).
22
-
0. High performance 🚀.
23
-
0. Delightful API 😄. It works with Node callbacks and Native promises.
24
-
0. Transformation of command arguments and replies.
25
-
0. Transparent key prefixing.
26
-
0. Abstraction for Lua scripting, allowing you to [define custom commands](https://github.com/luin/ioredis#lua-scripting).
redis.zrange("sortedSet", 0, 2, "WITHSCORES").then((res) =>console.log(res)); // Promise resolves to ["one", "1", "dos", "2", "three", "3"] as if the command was `redis> ZRANGE sortedSet 0 2 WITHSCORES`
173
+
redis.zrange("sortedSet", 0, 2, "WITHSCORES").then((res) => console.log(res)); // Promise resolves to ["one", "1", "dos", "2", "three", "3"] as if the command was `redis> ZRANGE sortedSet 0 2 WITHSCORES`
133
174
134
175
// All arguments are passed directly to the redis server:
135
176
redis.set("key", 100, "EX", 10);
136
-
```
177
+
178
+
````
137
179
138
180
See the `examples/` folder for more examples.
139
181
@@ -155,7 +197,7 @@ new Redis({
155
197
password: "auth",
156
198
db: 0,
157
199
});
158
-
```
200
+
````
159
201
160
202
You can also specify connection options as a [`redis://` URL](http://www.iana.org/assignments/uri-schemes/prov/redis) or [`rediss://` URL](https://www.iana.org/assignments/uri-schemes/prov/rediss) when using [TLS encryption](#tls-options):
0 commit comments