Have you tried to implement the eviction policy injection without using lambda ? Also in the cache definitions that work well are you using the same pattern to set the eviction policy ?
Regards Vikram Pancholi > On 3 Nov 2021, at 10.57, Gurmehar Kalra <gurmehar.ka...@hcl.com> wrote: > > cache.setEvictionPolicyFactory(()-> lruEvictionPolicy);