We have `spring-boot-starter-cache` added in our project and not using any particular implementation of cache provider. we are loading all the data during application startup by calling following method:

```
@Override
@Cacheable(cacheNames = "foos")
public List<FooDto> getAllFoo() {
    return fooRepository.findAll().stream()
            .map(FooEntityDomainToDtoMapper::mapDomainToDto) // mapping entity to dto
            .collect(Collectors.toList());
}

//Want to implement something like:
    public FooDto getFoo(Long id) {
    //return single object from foos(which are cached in above method)
    }

```

It is storing all `foos` in the cache. And as expected next time when we are calling `getAllFoo`, it is returning from the cache rather than returning from the database. Now next time when user request for individual object by id, we want to return it from this already cached `foos` data rather than calling `findById()` of JPA. Is there any way to achieve this?