Request cache in Spring
Let's say we have a request that fetches a post stored in the database. That request may need to alter the fetched post in some way. Before the post is altered various checks may need to happen, such as an ownership check. But we want to avoid each check fetching the same post from the database. This is when a cache that is scoped to a request's life cycle comes in handy.