Redis redisProperties = cacheProperties.getRedis(); if (redisProperties.getTimeToLive() != null) { config = config.entryTtl(redisProperties.getTimeToLive()); } if (redisProperties.getKeyPrefix() != null) { config = config.prefixCacheNameWith(redisProperties.getKey...
getKeyPrefix() != null) { String prefix = redisProperties.getKeyPrefix(); config = config.computePrefixWith(cacheName -> prefix + cacheName + "::"); } Member snicoll commented Jan 6, 2020 The current implementation of spring.cache.redis.key-prefix is mostly useless at the moment. It...
With spring boot version 2.1.4, I found below code which doesn't serve as prefix, instead it overrides the cacheName passed in. Is it a bug? or it is by design? publicRedisCacheConfigurationprefixKeysWith(Stringprefix) {Assert.notNull(prefix,"Prefix must not be null!");returncomputePrefi...