Example #1
0
 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;
 }
Example #2
0
 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;
 }