Skip to content

Commit 98959f2

Browse files
committed
Add documentation for event
1 parent 9e727ce commit 98959f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ The Node Redis client class is an Nodejs EventEmitter and it emits an event each
293293
| `error` | An error has occurred—usually a network issue such as "Socket closed unexpectedly" | `(error: Error)` |
294294
| `reconnecting` | Client is trying to reconnect to the server | _No arguments_ |
295295
| `sharded-channel-moved` | See [here](https://github.com/redis/node-redis/blob/master/docs/pub-sub.md#sharded-channel-moved-event) | See [here](https://github.com/redis/node-redis/blob/master/docs/pub-sub.md#sharded-channel-moved-event) |
296+
| `invalidate` | Client Tracking is on with `emitInvalidate` and a key is invalidated | `(key: RedisItem \| null)` |
296297

297298
> :warning: You **MUST** listen to `error` events. If a client doesn't have at least one `error` listener registered and
298299
> 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.

0 commit comments

Comments
 (0)