@SuppressWarnings("PointlessArithmeticExpression")
	@Bean
	public CacheConfigHolder cacheConfigMap() {
		CacheConfigHolder cm = new CacheConfigHolder();
		cm.addDistMap(DIST_MAP_NAME_SAMPLING, 15);
		cm.addDistMap(DIST_MAP_NAME_MONITORING, 15);
		cm.addDistMap(DIST_MAP_NAME_AGENT, 10);
		cm.addDistMap(DIST_MAP_NAME_RECENTLY_USED_AGENTS, 1 * DAY);

		cm.addDistCache(DIST_CACHE_USERS, 30, 300);
		cm.addDistCache(DIST_CACHE_FILE_ENTRIES, 1 * HOUR + 40 * MIN, 300);

		cm.addLocalCache(LOCAL_CACHE_GITHUB_SCRIPTS, 5 * MIN, 300);
		cm.addLocalCache(LOCAL_CACHE_RIGHT_PANEL_ENTRIES, 1 * DAY, 1);
		cm.addLocalCache(LOCAL_CACHE_LEFT_PANEL_ENTRIES, 1 * DAY, 1);
		cm.addLocalCache(LOCAL_CACHE_CURRENT_PERFTEST_STATISTICS, 5, 1);
		cm.addLocalCache(LOCAL_CACHE_GITHUB_GROOVY_PROJECT_SCRIPT_TYPE, 5 * MIN, 300);
		return cm;
	}
Dynamic cache configuration. it creates local cache or dist cache.

@since 3.1
ngrinder-controller/src/main/java/org/ngrinder/infra/config/DynamicCacheConfig.java