Commit f5f8380f by Future

屏蔽本地缓存使用

parent beaf0a91
...@@ -146,17 +146,17 @@ ...@@ -146,17 +146,17 @@
<artifactId>hutool-all</artifactId> <artifactId>hutool-all</artifactId>
</dependency> </dependency>
<dependency> <!-- <dependency>-->
<groupId>org.springframework.boot</groupId> <!-- <groupId>org.springframework.boot</groupId>-->
<artifactId>spring-boot-starter-cache</artifactId> <!-- <artifactId>spring-boot-starter-cache</artifactId>-->
<version>2.5.2</version> <!-- <version>2.5.2</version>-->
</dependency> <!-- </dependency>-->
<dependency> <!-- <dependency>-->
<groupId>net.sf.ehcache</groupId> <!-- <groupId>net.sf.ehcache</groupId>-->
<artifactId>ehcache</artifactId> <!-- <artifactId>ehcache</artifactId>-->
<version>2.10.8</version> <!-- <version>2.10.8</version>-->
</dependency> <!-- </dependency>-->
<dependency> <dependency>
<groupId>org.apache.lucene</groupId> <groupId>org.apache.lucene</groupId>
......
...@@ -9,8 +9,6 @@ import org.apache.commons.lang3.StringUtils; ...@@ -9,8 +9,6 @@ import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.Cache; import org.springframework.cache.Cache;
import org.springframework.cache.CacheManager; import org.springframework.cache.CacheManager;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.List; import java.util.List;
...@@ -64,12 +62,12 @@ public class EhcacheService { ...@@ -64,12 +62,12 @@ public class EhcacheService {
return imClientService.getCacheImClient(id); return imClientService.getCacheImClient(id);
} }
@Cacheable(value = "business", key = "#id") // @Cacheable(value = "business", key = "#id")
public ImConversationQueryVo getEhCacheConversation(Long id) { public ImConversationQueryVo getEhCacheConversation(Long id) {
return imConversationService.getCacheImConversationById(id); return imConversationService.getCacheImConversationById(id);
} }
@CacheEvict(value = "business", key = "#id") // @CacheEvict(value = "business", key = "#id")
public void delEhCacheConversation(Long id) { public void delEhCacheConversation(Long id) {
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment