Skip to content

Glossary: Redis and Caching

duplicate()

Also written: redis.duplicate()

A node-redis method that makes a second connection with the same settings. Pub/sub subscribers and blocking workers need their own connection because a busy connection can't run other commands.

Where the book teaches it

Related terms

Pub/sub (publish/subscribe)BRPOP