public class MethodNameAwareCacheKeyGenerator
extends org.springframework.cache.interceptor.DefaultKeyGenerator
implements org.springframework.cache.interceptor.KeyGenerator
KeyGenerator that also takes into account the methodName when
generating keys. This appeared to be necessary in JanusClientDetailsService
(see the #testCache method in the corresponding unit test class)
Also added target.hashCode(), to differentiate between cacheable methods that have the same signature
(potentially even the same class, only being different instances of the class)| Constructor and Description |
|---|
MethodNameAwareCacheKeyGenerator() |
Copyright © 2009–2013 SURFnet bv, The Netherlands. All rights reserved.