For a session store, which combination provides automatic idle expiry?
- A SET with EX and refreshing the TTL on each access (correct answer)
- B PERSIST after each write
- C LPUSH with LTRIM
- D ZADD with the expiry as score
Shortcut: Setting a TTL and re-issuing EXPIRE on access implements a sliding idle timeout, so sessions expire only after a period of inactivity.