You are building an AI search API that stores semantic-search results in Redis.
Search results must stay cached for 10 minutes. If the underlying data is modified, cached entries must not be returned.
You need to implement a cache-aside strategy that maintains data consistency.
Which two actions should you take? Each correct answer represents part of the solution.
NOTE: Each correct selection is worth one point.
Choose two
Community Discussion