mirror of
https://gitee.com/orangeform/orange-admin.git
synced 2026-01-18 11:06:36 +08:00
commit:集成Minio
This commit is contained in:
@@ -21,7 +21,7 @@ import java.util.stream.Collectors;
|
||||
* @param <K> 字典表主键类型。
|
||||
* @param <V> 字典表对象类型。
|
||||
* @author Jerry
|
||||
* @date 2020-09-27
|
||||
* @date 2020-10-19
|
||||
*/
|
||||
@Slf4j
|
||||
public class RedisDictionaryCache<K, V> implements DictionaryCache<K, V> {
|
||||
|
||||
@@ -21,7 +21,7 @@ import java.util.stream.Collectors;
|
||||
* @param <K> 字典表主键类型。
|
||||
* @param <V> 字典表对象类型。
|
||||
* @author Jerry
|
||||
* @date 2020-09-27
|
||||
* @date 2020-10-19
|
||||
*/
|
||||
@Slf4j
|
||||
public class RedisTreeDictionaryCache<K, V> extends RedisDictionaryCache<K, V> {
|
||||
|
||||
@@ -15,7 +15,7 @@ import java.util.Map;
|
||||
* 使用Redisson作为Redis的分布式缓存库。
|
||||
*
|
||||
* @author Jerry
|
||||
* @date 2020-09-27
|
||||
* @date 2020-10-19
|
||||
*/
|
||||
@Configuration
|
||||
@EnableCaching
|
||||
|
||||
@@ -13,7 +13,7 @@ import java.util.Set;
|
||||
* Session数据缓存辅助类。
|
||||
*
|
||||
* @author Jerry
|
||||
* @date 2020-09-27
|
||||
* @date 2020-10-19
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@Component
|
||||
|
||||
@@ -11,7 +11,7 @@ import redis.clients.jedis.JedisPoolConfig;
|
||||
* Redis配置类。
|
||||
*
|
||||
* @author Jerry
|
||||
* @date 2020-09-27
|
||||
* @date 2020-10-19
|
||||
*/
|
||||
@Configuration
|
||||
@ConditionalOnProperty(name = "redis.jedis.enabled", havingValue = "true")
|
||||
|
||||
@@ -13,7 +13,7 @@ import org.springframework.context.annotation.Configuration;
|
||||
* 这里我们只是使用了Redisson的分布式锁,以及map等数据结构作为字典缓存使用。更多用法请参考其文档。
|
||||
*
|
||||
* @author Jerry
|
||||
* @date 2020-09-27
|
||||
* @date 2020-10-19
|
||||
*/
|
||||
@Configuration
|
||||
@ConditionalOnProperty(name = "redis.redisson.enabled", havingValue = "true")
|
||||
|
||||
Reference in New Issue
Block a user