Keys, TTL & Data Types

Preview — 3 of 10 questions

What is Redis primarily designed to be?

AA relational database with SQL support
BAn in-memory data structure store used as a database, cache, message broker, and streaming engine
CA disk-based document database optimized for JSON storage
DA distributed file system for storing binary blobs

What does the following Redis command sequence produce?

javascript
SET name "Alice"
GET name
DEL name
GET name
A"Alice", "Alice", "Alice", "Alice"
BOK, "Alice", (integer) 1, (nil)
COK, "Alice", OK, ""
D"Alice", "Alice", (integer) 1, ""

What does TTL key return if the key exists but has no expiry set?

A-1
B0
C(nil)
DInfinity

Sign up free to play

Answer all 10 questions (7 more), see explanations for every answer, and track your score.