return new DataCacheLRUImpl(lruCache.getSize());
}
if (cacheDesc instanceof ConfigurationExpiryTimeCache)
{
ConfigurationExpiryTimeCache expCache = (ConfigurationExpiryTimeCache) cacheDesc;
return new DataCacheExpiringImpl(expCache.getMaxAgeSeconds(), expCache.getPurgeIntervalSeconds(), expCache.getCacheReferenceType(),
schedulingService, scheduleBucket.allocateSlot(), epStatementAgentInstanceHandle);
}
throw new IllegalStateException("Cache implementation class not configured");
}