🔨 修改无缓存配置.

This commit is contained in:
lijiahangmax
2025-07-02 23:50:27 +08:00
parent 2175a9fb40
commit 0b4e42ee89
5 changed files with 8 additions and 10 deletions

View File

@@ -37,7 +37,7 @@
<artifactId>netty-all</artifactId>
</dependency>
<!-- test redis noRedis -->
<!-- test redis MockRedis -->
<dependency>
<groupId>com.github.fppt</groupId>
<artifactId>jedis-mock</artifactId>

View File

@@ -38,17 +38,17 @@ import java.net.InetAddress;
import java.util.function.Supplier;
/**
* noRedis 配置
* MockRedis
* 仅用于本地调试无 redis 的情况
*
* @author Jiahang Li
* @version 1.0.0
* @since 2024/12/26 10:02
*/
@ConditionalOnProperty(value = "no.redis", havingValue = "true")
@ConditionalOnProperty(value = "spring.redis.mock", havingValue = "true")
@AutoConfiguration
@AutoConfigureOrder(AutoConfigureOrderConst.FRAMEWORK_REDIS - 10)
public class OrionNoRedisAutoConfiguration {
public class OrionMockRedisAutoConfiguration {
/**
* @return mocked redis server

View File

@@ -32,9 +32,9 @@
"defaultValue": "1"
},
{
"name": "no.redis",
"name": "spring.redis.mock",
"type": "java.lang.Boolean",
"description": "是否无 redis.",
"description": "是否使用 mock redis, 一般用于无 redis 调试时使用.",
"defaultValue": false
}
]

View File

@@ -1,3 +1,3 @@
org.dromara.visor.framework.redis.configuration.OrionNoRedisAutoConfiguration
org.dromara.visor.framework.redis.configuration.OrionMockRedisAutoConfiguration
org.dromara.visor.framework.redis.configuration.OrionRedisAutoConfiguration
org.dromara.visor.framework.redis.configuration.OrionCacheAutoConfiguration