CacheLoader
is not getting called while trying to find an entity using GemfireRepository
.
As a solution, I am using Region<K,V>
for looking up, which is calling CacheLoader
. So wanted to know whether there is any restriction for Spring Data Repository
which doesn't allow CacheLoader
to be called when entry is not present in the cache.
And, is there any other alternative? Because I have one more scenario where my cache key is combination of id1 & id2 and I want to get all entries based on id1. And if there is no entry present in cache, then it will call CacheLoader
to load all entries from Cassandra store.