losanut.blogg.se

Node redis
Node redis








You can also check the return value of each command as it will also return theīackpressure indicator (deprecated). Send rate and resume sending commands when you get drain. That way you can decide when to reduce your If the stream is buffering client.should_buffer is set to true. This event can be used to stream commands in to "drain" (deprecated)Ĭlient will emit drain when the TCP connection to the Redis server has beenīuffering, but is now writable. "end"Ĭlient will emit end when an established Redis server connection has closed.

node redis

So please attach the error listener to node_redis. If you use a command withoutĬallback and encounter a ReplyError it is going to be emitted to the error Server or when any other in node_redis occurs. "error"Ĭlient will emit error when encountering an error connecting to the Redis (in ms from the previous try) and attempt (the attempt #) attributes. Listeners are passed an object containing delay "reconnecting"Ĭlient will emit reconnecting when trying to reconnect to the Redis serverĪfter losing the connection.

node redis

Commands issuedīefore the ready event are queued, then replayed just before this event isĬlient will emit connect as soon as the stream is connected to the server. "ready"Ĭlient will emit ready once a connection is established. set ( 'key', 'value!', 'EX', 10 ) API Connection and other EventsĬlient will emit some events about the state of the connection to the Redis server. this key will expire after 10 seconds client.










Node redis