Spring 3.1 Cache Abstraction: How do I switch the KeyGenerator?
Hello everybody,
I have a String as a key in my cache. Since the DefaultKeyGenerator uses hashCode() for generating the key I cannot use it, because there may be collisions.
It's no problem to provide another implementation of KeyGenerator, but I'm missing a simple way to use it. There is no such attribute on <cache:annotation-driven/> nor on CacheManager nor on Cache, just on the Aspect itself, but I don't wanna declare it myself.
Can somebody help me?
Tobias