2025-11-12 openHIS 发版

This commit is contained in:
whm
2025-11-12 17:06:09 +08:00
parent 88535b8e7c
commit e8d67e6681
777 changed files with 62002 additions and 20046 deletions

View File

@@ -6,6 +6,7 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.ValueOperations;
import org.springframework.data.redis.core.script.DefaultRedisScript;
import org.springframework.data.redis.serializer.StringRedisSerializer;
@@ -45,6 +46,11 @@ public class RedisConfig extends CachingConfigurerSupport {
return redisScript;
}
@Bean
public ValueOperations<Object, Object> valueOperations(RedisTemplate<Object, Object> redisTemplate) {
return redisTemplate.opsForValue();
}
/**
* 限流脚本
*/