gpt4 book ai didi

redis - 如何在Jhipster中配置Redis的密码?

转载 作者:行者123 更新时间:2023-12-03 06:38:49 24 4
gpt4 key购买 nike

请引用此链接https://www.jhipster.tech/common-application-properties/
我找不到为Redis配置密码的解决方案

jhipster:
http:
cache: # Used by the CachingHttpHeadersFilter
timeToLiveInDays: 1461
cache: # Cache configuration
redis: # Redis configuration
expiration: 3600 # By default objects stay 1 hour (in seconds) in the cache
server: redis://localhost:6379

最佳答案

.setAddress(jHipsterProperties.getCache().getRedis().getServer()).setDatabase(1)
.setPassword("your password");`

关于redis - 如何在Jhipster中配置Redis的密码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59103339/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com