Comments (2)
CacheUpdate/CacheInvalidate有个multi属性,可以put/remove多次,不过能干的事情也比较简单。
可以看看源代码里面的注释,文档里面好像没有写。
from jetcache.
感谢解惑
已实现,虽然需要再定义一个相同name的 @cached 但能满足我目前的需求
@CacheUpdate(name = CachePoolDefName.adminToken, key = "new String[]{'userId:' + #userId,'token:' + #result.token}", value = "new Object[]{#result,#result}", multi = true)
现在又有新的问题产生了,a项目里面用户登录生成了缓存A1,需要在B项目中封禁该用户并删除缓存A1,删除时会报错Cache operation aborted because can't find cached definition
请问这个是否有解决方案呢
CacheUpdate/CacheInvalidate有个multi属性,可以put/remove多次,不过能干的事情也比较简单。
可以看看源代码里面的注释,文档里面好像没有写。
@areyouok
from jetcache.
Related Issues (20)
- 如何自定义 RedisCache ? HOT 1
- 高并发下,出现OOM以及其他异常 HOT 2
- 高并发下,出现OOM以及其他异常 HOT 1
- 关于本地缓存数据容量统计
- com.esotericsoftware.kryo.KryoException: Encountered unregistered class ID:
- jetcache(RedisLettuceCache) GET error HOT 3
- 如何防止一级缓存穿透到二级缓存的呢? HOT 2
- jetcache(RedisLettuceCache) GET error HOT 3
- 报错jedis问题,不能使用lettuce吗? HOT 3
- 密码校验失败情况:Illegal character in authority at index 8: redis://r0&2o7^[email protected]:6379 HOT 1
- 在单元测试时,遇到无法更新缓存、删除缓存情况出现,想了解是什么原因? HOT 6
- cacheType指定了BOTH或者REMOTE时,不配置jetcache.remote再调用缓存方法能否不影响主业务 HOT 1
- 項目部署N+個時CacheInvalidate不生效
- 注解类型支持 HOT 5
- Error creating bean with name 'redissonAutoInit' defined in class path resource HOT 2
- CacheValueHolder类为何要使用final修饰?使用jackson某些情况下可能无法序列化和反序列化 HOT 2
- 代码中使用太多Lock了,高并发系统经常死锁 HOT 3
- Cached注解能否增加缓存失败处理策略 HOT 1
- Jetcache 当前版本是否不支持 Springcloud 和 Webflux ? HOT 3
- 在使用Mybatis-plus的接口方法时怎么缓存 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jetcache.