3 Mart 2020 Salı

Ehcache 3 EhcacheManager Sınıfı

constructor
İmzası şöyle
public EhcacheManager(Configuration config, Collection<Service> services)
Örnek
Şöyle yaparız
URL myUrl = CacheUtil.class.getResource("/my-config.xml");
Configuration xmlConfig = new XmlConfiguration(myUrl);

StatisticsService statisticsService = new DefaultStatisticsService();
Set<Service> services = new HashSet<>();
services.add(statisticsService);

cacheManager = new EhcacheManager(xmlConfig, services);

Hiç yorum yok:

Yorum Gönder