@Override
public InternalCacheEntry load(Object key) throws CacheLoaderException {
if (config.isRawValues()) {
MetadataValue<?> value = remoteCache.getWithMetadata(key);
if (value != null)
return iceFactory.create(key, value.getValue(), new ServerEntryVersion(value.getVersion()),
value.getCreated(), TimeUnit.SECONDS.toMillis(value.getLifespan()),
value.getLastUsed(), TimeUnit.SECONDS.toMillis(value.getMaxIdle()));
else
return null;
} else {