public Output get(Input input) { CacheService cacheService = context.getBean(mechanism.toLowerCase() + "CacheService", CacheService.class); cacheService.getFromCache(input); logger.info("returned output to cache!!"); return null; }
public Output add(Input input) { logger.info("Adding input to cache!!"); CacheService cacheService = context.getBean(mechanism.toLowerCase() + "CacheService", CacheService.class); cacheService.addToCache(input); return null; }