I would like to reload all cache entries in cache2k at once. I'm using version 1.2.2.
I've tried to use org.cache2k.integration.CacheLoader#load method but it only accepts one key and returns one value. I don't like the idea to download only one record from the database at once. It's not optimal.
I expect to reload all cache entries using exactly one db query. Please guide what is the recommended way to achieve it.
Thank you for your answer!