privatestaticvoid verifyCacheHasNoEviction(AdvancedCache<?, ?> cache) {
if (cache.getCacheConfiguration().eviction().strategy().isEnabled())
thrownew IllegalArgumentException("DistributedSegmentReadLocker is not reliable when using a cache with eviction enabled, disable eviction on this cache instance");
}