From 848054f126942c4a207b6256716a8642c8deea51 Mon Sep 17 00:00:00 2001 From: fwq <582742538@qq.com> Date: 星期二, 08 八月 2023 15:23:32 +0800 Subject: [PATCH] redisson原子加减操作 --- src/main/java/com/hx/redisson/manager/RedisManager.java | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/hx/redisson/manager/RedisManager.java b/src/main/java/com/hx/redisson/manager/RedisManager.java index e4f42c7..6798614 100644 --- a/src/main/java/com/hx/redisson/manager/RedisManager.java +++ b/src/main/java/com/hx/redisson/manager/RedisManager.java @@ -1,5 +1,6 @@ package com.hx.redisson.manager; +import org.redisson.api.RedissonClient; import org.springframework.data.redis.core.RedisTemplate; import java.util.Map; @@ -15,6 +16,8 @@ private Map<String, RedisTemplate> redisTemplateMap = new ConcurrentHashMap<>(); + public static Map<String, RedissonClient> redissonTemplateMap = new ConcurrentHashMap<>(); + /** * 鏋勯�犳柟娉曞垵濮嬪寲 redisTemplateMap 鐨勬暟鎹� * @@ -23,6 +26,7 @@ public RedisManager(Map<String, RedisTemplate> redisTemplateMap) { this.redisTemplateMap = redisTemplateMap; } + /** * 鏍规嵁鏁版嵁搴撳簭鍙凤紝杩斿洖瀵瑰簲鐨凴edisTemplate @@ -38,4 +42,5 @@ return redisTemplate; } + } -- Gitblit v1.8.0