Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wecloud_im_server
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
wecloud_im_server
Commits
f5f8380f
Commit
f5f8380f
authored
Oct 16, 2022
by
Future
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
屏蔽本地缓存使用
parent
beaf0a91
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
15 deletions
+13
-15
core/pom.xml
+11
-11
core/src/main/java/com/wecloud/im/service/EhcacheService.java
+2
-4
No files found.
core/pom.xml
View file @
f5f8380f
...
...
@@ -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>
...
...
core/src/main/java/com/wecloud/im/service/EhcacheService.java
View file @
f5f8380f
...
...
@@ -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
)
{
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment