SQLancer
← All Database Flashcards Library / Flashcards / Redis
🔴 Redis Knowledge Base

Redis Study Flashcards

High-speed in-memory key-value data structure store used as a database, cache, and message broker. Click any card to flip and test your knowledge.

Card 1 of 10 Data Structures

What data structures does Redis support?

Click Card to Reveal Answer ↷
Answer Redis

Strings, Hashes, Lists, Sets, Sorted Sets (ZSet), Bitmaps, HyperLogLogs, Geospatial indexes, and Streams.

Click to Flip Back ↶
Card 2 of 10 Expiration

What is TTL in Redis?

Click Card to Reveal Answer ↷
Answer Redis

Time-To-Live (TTL) sets an automated expiration time after which Redis deletes the key from RAM.

Click to Flip Back ↶
Card 3 of 10 Persistence

How does Redis persistence work?

Click Card to Reveal Answer ↷
Answer Redis

Redis supports RDB (point-in-time snapshot files) and AOF (Append-Only File logging every write command).

Click to Flip Back ↶
Card 4 of 10 Messaging

What is Pub/Sub in Redis?

Click Card to Reveal Answer ↷
Answer Redis

A messaging pattern where publishers send messages to channels without knowing connected subscribers.

Click to Flip Back ↶
Card 5 of 10 Data Structures

What is a Sorted Set (ZSET)?

Click Card to Reveal Answer ↷
Answer Redis

A collection of unique strings where each element is associated with a floating-point score used for ordering.

Click to Flip Back ↶
Card 6 of 10 High Availability

What is Redis Sentinel?

Click Card to Reveal Answer ↷
Answer Redis

A system providing high availability, monitoring, notification, and automatic failover for Redis primary nodes.

Click to Flip Back ↶
Card 7 of 10 Clustering

What is Redis Cluster?

Click Card to Reveal Answer ↷
Answer Redis

Provides a way to run a Redis installation where data is automatically sharded across 16,384 hash slots.

Click to Flip Back ↶
Card 8 of 10 Performance

What is Pipeline execution in Redis?

Click Card to Reveal Answer ↷
Answer Redis

Sending multiple commands to the server without waiting for individual replies, reducing round-trip time (RTT).

Click to Flip Back ↶
Card 9 of 10 Memory Management

What is the LRU Eviction Policy?

Click Card to Reveal Answer ↷
Answer Redis

Least Recently Used (LRU) automatically evicts least recently accessed keys when RAM usage hits maxmemory limits.

Click to Flip Back ↶
Card 10 of 10 Scripting

How do Lua scripts execute in Redis?

Click Card to Reveal Answer ↷
Answer Redis

Lua scripts run atomically on the Redis server, guaranteeing no other command executes concurrently during script run.

Click to Flip Back ↶

Need practical SQL queries for Redis?

Explore our ready-to-use copy-paste query recipes in the Cookbook.

View Redis Cookbook →