ker.dc3-common-redis.2023.4.5.source-code.application-redis.yml Maven / Gradle / Ivy
#
# Copyright 2016-present the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# 以下内容会覆盖application.yml,即:application.yml配置以下内容是不会生效的
# 如果想要覆盖以下内容需要在dev、test、pre、pro中进行重新配置
spring:
redis:
host: ${REDIS_HOST:dc3-redis}
port: ${REDIS_PORT:6379}
password: ${REDIS_PASSWORD:dc3}
timeout: 15S
lettuce:
pool:
max-active: 64
min-idle: 4
cache:
type: redis
cache-names: dc3-cache