What is the time complexity of the Redis `GET` command for a String value?
Data Types And Commands
Question · Easy
Which Redis command atomically sets a key to a value AND sets an expiration in milliseconds in a single operation?
In Redis, what does the `LPUSH mylist a b c` command result in for the list `mylist`?
Tech Exam Prep Podcast
Listen on Spotify
Podcast
Which Redis data type stores unique, unordered members and supports set operations like UNION, INTERSECTION, and DIFFERENCE?
What does the Redis `ZADD leaderboard 100 'alice'` command do?
In Redis persistence, what does RDB (Redis Database) persistence do?
Persistence And Replication
What is the key trade-off between using `appendfsync always` versus `appendfsync everysec` in Redis AOF persistence?
Question · Medium
Which Redis command initiates a Lua-script-based atomic batch of operations that cannot be interrupted by other clients?
Transactions And Scripting
In a Redis `MULTI` / `EXEC` transaction, what happens if one of the queued commands has a runtime error (e.g., calling `INCR` on a string value)?
What is the purpose of the Redis `WATCH` command?
In Redis Pub/Sub, what happens to messages published to a channel if no subscribers are currently listening?
Pub Sub And Streams
Which Redis command adds a new entry to a Stream and auto-generates a monotonically increasing entry ID?
What is the difference between `XREAD` and `XREADGROUP` in Redis Streams?
Which Redis command retrieves all field-value pairs stored in a Hash?
In Redis, what does `EXPIRE key seconds` return if the key does not exist?
In a Redis replication setup, what is the default replication mode?
What does the Redis `SINTERSTORE destination key1 key2` command do?
Which Redis module enables full-text search and secondary indexing over Redis Hash and JSON documents?
Redis Modules And Stack
Using RedisJSON, which command retrieves the value at a specific JSON path from a stored JSON document?
What is the primary use case for Redis pipelining?
Client Patterns And Performance
In Redis Sorted Sets, what does `ZRANGEBYSCORE leaderboard 80 100 WITHSCORES` return?
What is Redis Sentinel's primary function?
Which Redis command should you use to check the remaining TTL (time-to-live) of a key in milliseconds?
In Redis, what is a Bitmap and which command sets a single bit at a specific offset?
What happens when a Redis instance reaches its configured `maxmemory` limit and the `maxmemory-policy` is set to `allkeys-lru`?
In Redis, what is the purpose of the `OBJECT ENCODING mykey` command?
What does `GEORADIUS mygeo 13.361 38.115 100 km ASC` do in Redis?
Which Redis HyperLogLog command adds elements to a HyperLogLog data structure for approximate cardinality counting?
In Redis Streams, what is the function of `XACK mystream mygroup entryID`?
What is the Redis command to atomically increment a string-stored integer by a given amount?
In Redis Cluster, how is data distributed across nodes?
What does the Redis `SCAN cursor MATCH pattern COUNT hint` command return?
A cache-aside pattern with Redis involves which sequence of steps on a cache miss?
What is the output of `LRANGE mylist 0 -1` after executing `RPUSH mylist x y z`?
In Redis, what does the `NX` flag in `SET key value NX` do?
Which Redis persistence configuration provides the best durability guarantee at the cost of write throughput?
What is a Redis connection pool and why is it important for application performance?
In Redis, what is the purpose of key namespacing (e.g., using `user:1001:profile` instead of `profile_1001`)?
What does `ZADD leaderboard GT 120 'alice'` do when alice's current score is 150?
Question · Hard
Which Redis command should be used to find all keys matching a pattern in a production Redis instance without risking performance degradation?
In Redis, what is the purpose of `OBJECT FREQ key`?
Which Redis command allows you to atomically pop an element from one list and push it to another?
When using Redis as a session store, what TTL strategy best ensures sessions expire correctly without requiring manual cleanup?
In Redis Streams, what is a Consumer Group and what problem does it solve?
What does the `WAIT numreplicas timeout` Redis command do?
In RediSearch (Redis Stack Search), what command creates a full-text index on a Hash field `title` and a numeric field `price` in documents with the `product:` prefix?
What is the time complexity of `ZRANGEBYSCORE` on a Redis Sorted Set for a range query returning M elements from a set of N total members?
Loading more…