基于方法的切片缓存插件Aspect-Cache-Plug.zip

时间:2022-08-08 00:01:41
【文件属性】:

文件名称:基于方法的切片缓存插件Aspect-Cache-Plug.zip

文件大小:11KB

文件格式:ZIP

更新时间:2022-08-08 00:01:41

开源项目

Aspect-Cache-Plug先介绍缓存使用下场景对同一请求(针对不同请求参数)进行缓存,可以减少服务器压力、加快响应速度查询接口:根据请求条件对返回结果进行缓存更新接口:根据条件对指定缓存进行清除@Aspect(key = "query") public Object query(String q) {   // do something   return null; }@Aspect(key = "update") public Object update(String q) {   // do something     return null; }缓存query方法返回值                        this[0] new java.util.Date()                            执行update时清除query的返回结果                                    query               加入spring支持                                                                                                                                                                                                       this[1] "." this[2]                                                                   this[0]                                                                                                                                                                    this[0]                                                                                                                                                                                     this[0] new java.util.Date()                                                                                                                                                                                                            this[0]                                                                                                queryMethod1                             space2QueryMethod1                                                                                           标签:Aspect


【文件预览】:
aspect-cache-plug-master
----src()
--------main()
----README.md(3KB)
----pom.xml(2KB)

网友评论