Commit f5f8380f by Future

屏蔽本地缓存使用

parent beaf0a91
......@@ -146,17 +146,17 @@
<artifactId>hutool-all</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-cache</artifactId>
<version>2.5.2</version>
</dependency>
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache</artifactId>
<version>2.10.8</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-starter-cache</artifactId>-->
<!-- <version>2.5.2</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>net.sf.ehcache</groupId>-->
<!-- <artifactId>ehcache</artifactId>-->
<!-- <version>2.10.8</version>-->
<!-- </dependency>-->
<dependency>
<groupId>org.apache.lucene</groupId>
......
......@@ -9,8 +9,6 @@ import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.Cache;
import org.springframework.cache.CacheManager;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
import java.util.List;
......@@ -64,12 +62,12 @@ public class EhcacheService {
return imClientService.getCacheImClient(id);
}
@Cacheable(value = "business", key = "#id")
// @Cacheable(value = "business", key = "#id")
public ImConversationQueryVo getEhCacheConversation(Long id) {
return imConversationService.getCacheImConversationById(id);
}
@CacheEvict(value = "business", key = "#id")
// @CacheEvict(value = "business", key = "#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