GithubHelp home page GithubHelp logo

几个有关使用cache的疑问 about mango HOT 5 CLOSED

ixqbar avatar ixqbar commented on July 25, 2024
几个有关使用cache的疑问

from mango.

Comments (5)

liangyanghe avatar liangyanghe commented on July 25, 2024

1)
的确是由SQL判断的,通过select,delete,update,insert等判断请求类型,触发不同的缓存操作

2)
是的

3)
public User getUser(@cacheby int uid, @cacheby String name)这样是可以的,
这时key=prefix + “" + uid + "" + name

from mango.

ixqbar avatar ixqbar commented on July 25, 2024

感谢回复,第三点疑问
如果用户需求的是通过getUser读取一条记录时想保存缓存到不同的key,比如分别以uid, username保存到2个key key1:uid key2:username
这样的情况该如何注解,还是目前不支持

from mango.

liangyanghe avatar liangyanghe commented on July 25, 2024

这个不支持,可以考虑自己写代码完成。
不过通过Mango框架集成缓存,应该能满足70%的缓存需求~

from mango.

ixqbar avatar ixqbar commented on July 25, 2024

感谢

from mango.

tk1990 avatar tk1990 commented on July 25, 2024

是否可以在dao内不删除db,只删除缓存?

from mango.

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.