方法是一个对象,使用对象中的属性,如ID,作为cache key
参考
SpringBoot使用Redis缓存
Spring Data Cache
原文:http://www.cnblogs.com/tonyq/p/8085414.html