Not sure about spring.
But the cache configuration can have a EAGER/LAZY loding which you can configure. Or do you mean loading all cache entries into memory when the cache is started?
Please show a bit more details.
Yes loading all entries from DB into memory when cache is started.
You need to set preload=true in your configuration