MediumApplicationNoSQL DatabasesMultiple 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

ASET key value EX 30
BSET key value NX EX 30
CSETNX key value then EXPIRE key 30
DGETSET 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