Skip to content
Medium Application NoSQL Databases Multiple Choice

Which Redis command would you use to implement an atomic 'check-and-set' distributed lock?

Application — Tests your understanding of this concept.

Answer Options

A SET key value EX 30
B SET key value NX EX 30
C SETNX key value then EXPIRE key 30
D GETSET key value

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 15+ more NoSQL Databases questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the NoSQL Databases topic (Databases).

More NoSQL Databases Questions