MM-62079: Using a cache prefix to isolate cache keys for each test (#30261)
```release-note A new config setting CacheSettings.RedisCachePrefix has been added which can be used to add a prefix to all Redis cache keys. ```
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
e5755c925a
Коммит
4e5cb16955
@@ -168,10 +168,11 @@ func New(sc ServiceConfig, options ...Option) (*PlatformService, error) {
|
||||
} else if *cacheConfig.CacheType == model.CacheTypeRedis {
|
||||
ps.cacheProvider, err = cache.NewRedisProvider(
|
||||
&cache.RedisOptions{
|
||||
RedisAddr: *cacheConfig.RedisAddress,
|
||||
RedisPassword: *cacheConfig.RedisPassword,
|
||||
RedisDB: *cacheConfig.RedisDB,
|
||||
DisableCache: *cacheConfig.DisableClientCache,
|
||||
RedisAddr: *cacheConfig.RedisAddress,
|
||||
RedisPassword: *cacheConfig.RedisPassword,
|
||||
RedisDB: *cacheConfig.RedisDB,
|
||||
RedisCachePrefix: *cacheConfig.RedisCachePrefix,
|
||||
DisableCache: *cacheConfig.DisableClientCache,
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user