Which Redis command implements a cache-aside pattern by setting a value with an expiration time in one atomic operation?
- A SET key value
- B SETEX key seconds value
- C SET key value EX seconds
- D Both SETEX and SET with EX (correct answer)
Shortcut: Both SETEX key seconds value and SET key value EX seconds atomically set a value with an expiry. SET key value EX seconds is the modern preferred form supporting additional options.