Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置都是正确的,syncLocal = true也正确设置了,jvm缓存不失效 #944

Open
vivikiki123 opened this issue Nov 9, 2024 · 2 comments

Comments

@vivikiki123
Copy link

我在代码中手动实现了redis 的 MessageListener,处理消息过期通知,是否会导致广播没有到jetcache

@vivikiki123
Copy link
Author

我在代码中手动实现了redis 的 MessageListener,处理消息过期通知,是否会导致广播没有到jetcache

新建的项目,spring-boot 2.6.13,jetcache 2.7.7,redis测试可以正常订阅。
syncLocal = true
配置:
jetcache.statIntervalMinutes=15
jetcache.areaInCacheName=false
jetcache.local.default.type=caffeine
jetcache.local.default.limit=100
jetcache.local.default.keyConvertor=fastjson2
jetcache.local.default.expireAfterWriteInMillis=100000
jetcache.local.otherArea.type=linkedhashmap
jetcache.local.otherArea.limit=100
jetcache.local.otherArea.keyConvertor=none
jetcache.local.otherArea.expireAfterWriteInMillis=100000
jetcache.remote.default.type=redis
jetcache.remote.default.keyConvertor=fastjson2
jetcache.remote.default.broadcastChannel=languare-frontend
jetcache.remote.default.valueEncoder=java
jetcache.remote.default.valueDecoder=java
jetcache.remote.default.poolConfig.minIdle=5
jetcache.remote.default.poolConfig.maxIdle=20
jetcache.remote.default.poolConfig.maxTotal=50
jetcache.remote.default.host=
jetcache.remote.default.password=
jetcache.remote.default.port=6379
jetcache.remote.otherArea.type=redis
jetcache.remote.otherArea.keyConvertor=fastjson2
jetcache.remote.otherArea.broadcastChannel=projectA
jetcache.remote.otherArea.valueEncoder=java
jetcache.remote.otherArea.valueDecoder=java
jetcache.remote.otherArea.poolConfig.minIdle=5
jetcache.remote.otherArea.poolConfig.maxIdle=20
jetcache.remote.otherArea.poolConfig.maxTotal=50
jetcache.remote.otherArea.host=
jetcache.remote.otherArea.port=6379

@vivikiki123
Copy link
Author

使用redisson本地缓存可以正常失效
pom文件jetcache-starter-redis 换成 jetcache-starter-redisson
jetcache.remote.default.type=redisson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant