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
Which NoSQL database type is best suited for storing a social network graph where you need to traverse friend-of-friend relationships?
Medium-EasyIn the CAP theorem, which two properties does MongoDB prioritize?
Medium-EasyWhat is the correct order of stages in a MongoDB aggregation pipeline to optimize performance?
MediumIn DynamoDB single-table design, what is the main reason to store multiple entity types in one table?
MediumWhat is the ESR rule in MongoDB compound index design?
Medium