# 1. By default, memory cache metadata information is used,
# If sa-token needs to rely on redis, please open the redis configuration and depend on pom.xml and dinky-admin/pom.xml, and configure redis connection information in application.yml
# 2. DINKY supports Redis caching. If necessary, please change simple to Redis and open the Redis connection configuration below
# note: pay attention to the indentation of this configuration item
# 3. Sub configuration items can be opened or customized as needed
cache:
type:simple
# If the type is configured as Redis, this item can be configured as needed
# redis:
# Do you want to cache empty values? Just save by default
# Note: Redis related configurations in DINKY can be used to cache meta-data information (memory caching is used by default) and cache session information of SA TOKEN (dependency needs to be added,please refer to the official documentation of SA TOKEN for Redis caching configuration instructions)
## 1. If you need to use Redis to cache metadata information, please configure cache. Type to Redis and then configure the following configuration items
## 2. If you need to use Redis to cache SA Token session information, please follow the instructions in the official SA Token documentation to configure it
# Note: Please pay attention to the indentation after opening comments, otherwise it may cause configuration file parsing errors. Note that when both 1 and 2 are used simultaneously, only the same Redis database can be supported
# redis:
# redis:
# host: localhost
# host: localhost
# port: 6379
# port: 6379
# username:
# password:
# password:
# Redis database number
# database: 10
# database: 10
# jedis:
# jedis:
# pool:
# pool:
# # The maximum number of connections in the connection pool (use a negative value to indicate no limit)
# The maximum number of connections in the connection pool (use a negative value to indicate no limit)
# max-active: 50
# max-active: 50
# # The maximum blocking waiting time of the connection pool (use a negative value to indicate no limit)
# The maximum blocking waiting time of the connection pool (use a negative value to indicate no limit)
# max-wait: 3000
# max-wait: 3000
# # The maximum number of idle connections in the connection pool
# The maximum number of idle connections in the connection pool
# max-idle: 20
# max-idle: 20
# # The minimum number of idle connections in the connection pool
# The minimum number of idle connections in the connection pool