Class SimpleKeyGenerator
java.lang.Object
org.springframework.cache.interceptor.SimpleKeyGenerator
- All Implemented Interfaces:
- KeyGenerator
Simple key generator. Returns the parameter itself if a single non-null
 value is given, otherwise returns a 
SimpleKey of the parameters.
 No collisions will occur with the keys generated by this class.
 The returned SimpleKey object can be safely used with a
 ConcurrentMapCache, however,
 might not be suitable for all Cache
 implementations.
- Since:
- 4.0
- Author:
- Phillip Webb, Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
SimpleKeyGeneratorpublic SimpleKeyGenerator()
 
- 
- 
Method Details- 
generateDescription copied from interface:KeyGeneratorGenerate a key for the given method and its parameters.- Specified by:
- generatein interface- KeyGenerator
- Parameters:
- target- the target instance
- method- the method being called
- params- the method parameters (with any var-args expanded)
- Returns:
- a generated key
 
- 
generateKeyGenerate a key based on the specified parameters.
 
-