How do you customize RedisCacheManager instances in Spring 2.0 specifically to set the cache names and the expirations.
Here's the code I used to have working in 1.5.x, but fails on 2.x
public class RedisCacheManagerCustomizer implements CacheManagerCustomizer<RedisCacheManager> {
...
@Override
public void customize(final RedisCacheManager cacheManager) {
final Map<String, Long> expiresMap = new HashMap<>();
expiresMap.put(CacheNames.ACCESS_TOKEN_TO_ENTRY, accessTokenExpirationInSeconds);
expiresMap.put(CacheNames.REFRESH_TOKEN_TO_ENTRY, jwtMaximumLifetimeInSeconds);
// these two no longer work
cacheManager.setCacheNames(expiresMap.keySet());
cacheManager.setExpires(expiresMap);
}
}