Spring Boot - Caching
You want to cache the result of a method that returns a list of users filtered by role. Which is the best way to use Redis caching in Spring Boot to avoid caching empty or null results?
public ListgetUsersByRole(String role) { // fetch users }
