FlashKeepers

Databases · College · College and University

Redis Fundamentals

Redis data structures, key expiry, persistence with RDB and AOF, pub/sub, transactions, eviction policies and clustering.

About this set

39 basic cards for College Databases. It opens with "What is a Redis string?" and "What is a Redis list?". Study it alongside the other College sets below.

39 cards · basic cards · AI-written, checked twice. Edit anything.

Study this set free Look inside first Get FlashKeepers for iPhone

Opens in your browser, no account. Get the iPhone and iPad app · Android app

What is a Redis string?
Show answerA simple key-value data structure that holds text or binary data
What is a Redis list?
Show answerAn ordered sequence of values that can be pushed and popped from both ends
What is a Redis set?
Show answerAn unordered collection of unique values with no duplicates allowed
What is a Redis sorted set?
Show answerA set where each member has an associated score for ordering
What is a Redis hash?
Show answerA map of field-value pairs, like a dictionary or nested object
What is a HyperLogLog in Redis?
Show answerA probabilistic data structure for estimating distinct element counts with fixed memory
What is a Redis stream?
Show answerAn append-only log of entries with unique IDs and automatic timestamps
What is a Redis bitmap?
Show answerA string treated as a bit array for bitwise operations and flags
What does the EXPIRE command do?
Show answerSets a time-to-live (TTL) in seconds after which a key automatically expires
What does the TTL command return?
Show answerThe number of seconds until key expiration, -1 if no expiry, or -2 if key does not exist
What does PERSIST do?
Show answerRemoves the TTL from a key, making it never expire
How does Redis handle key expiration?
Show answerThrough lazy deletion on access plus periodic active cleanup scanning the keyspace
What is RDB persistence?
Show answerPoint-in-time snapshots of the entire database saved as a binary dump file
What is AOF (Append-Only File) persistence?
Show answerA log that appends every write command, replaying them on restart for durability
What is the difference between SAVE and BGSAVE?
Show answerSAVE blocks the server, BGSAVE forks a background process to save without blocking

24 more cards in the app

Study this set free