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
+244-6
Original file line number
Diff line number
Diff line change
@@ -27,24 +27,24 @@ node-redis is a modern, high performance [Redis](https://redis.io) client for No
27
27
28
28
## Installation
29
29
30
-
Start a redis-server via docker (or any other method you prefer):
30
+
Start a redis via docker:
31
31
32
32
```bash
33
-
docker run -p 6379:6379 -it redis/redis-stack-server:latest
33
+
docker run -p 6379:6379 -d redis:8.0-rc1
34
34
```
35
35
36
36
To install node-redis, simply:
37
37
38
38
```bash
39
39
npm install redis
40
40
```
41
-
42
-
> "redis" is the "whole in one" package that includes all the other packages. If you only need a subset of the commands, you can install the individual packages. See the list below.
41
+
> "redis" is the "whole in one" package that includes all the other packages. If you only need a subset of the commands,
42
+
> you can install the individual packages. See the list below.
|`connect`| Initiating a connection to the server |_No arguments_|
264
+
|`ready`| Client is ready to use |_No arguments_|
265
+
|`end`| Connection has been closed (via `.disconnect()`) |_No arguments_|
266
+
|`error`| An error has occurred—usually a network issue such as "Socket closed unexpectedly" |`(error: Error)`|
267
+
|`reconnecting`| Client is trying to reconnect to the server |_No arguments_|
268
+
|`sharded-channel-moved`| See [here](./docs/pub-sub.md#sharded-channel-moved-event)| See [here](./docs/pub-sub.md#sharded-channel-moved-event)|
269
+
270
+
> :warning: You **MUST** listen to `error` events. If a client doesn't have at least one `error` listener registered and
271
+
> an `error` occurs, that error will be thrown and the Node.js process will exit. See the [ > `EventEmitter` docs](https://nodejs.org/api/events.html#events_error_events) for more details.
272
+
273
+
> The client will not emit [any other events](./docs/v3-to-v4.md#all-the-removed-events) beyond those listed above.
274
+
275
+
## Supported Redis versions
276
+
277
+
Node Redis is supported with the following versions of Redis:
278
+
279
+
| Version | Supported |
280
+
| ------- | ------------------ |
281
+
| 8.0.z |:heavy_check_mark:|
282
+
| 7.0.z |:heavy_check_mark:|
283
+
| 6.2.z |:heavy_check_mark:|
284
+
| 6.0.z |:heavy_check_mark:|
285
+
| 5.0.z |:heavy_check_mark:|
286
+
| < 5.0 |:x:|
287
+
288
+
> Node Redis should work with older versions of Redis, but it is not fully tested and we cannot offer support.
0 commit comments