customized cache key java

Solutions on MaxInterview for customized cache key java by the best coders in the world

showing results for - "customized cache key java"
Celia
04 Aug 2016
1public class CustomKeyGenerator implements KeyGenerator {
2 
3    public Object generate(Object target, Method method, Object... params) {
4        return target.getClass().getSimpleName() + "_"
5          + method.getName() + "_"
6          + StringUtils.arrayToDelimitedString(params, "_");
7    }
8}