Code Monkey home page Code Monkey logo

Comments (2)

areyouok avatar areyouok commented on June 26, 2024

CacheUpdate/CacheInvalidate有个multi属性,可以put/remove多次,不过能干的事情也比较简单。

可以看看源代码里面的注释,文档里面好像没有写。

from jetcache.

SunnySideCoder avatar SunnySideCoder commented on June 26, 2024

感谢解惑
已实现,虽然需要再定义一个相同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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.