

GitHub - qiujiayu/AutoLoadCache: AutoLoadCache 是基于AOP+Annotation等技术实现的...
source link: https://github.com/qiujiayu/AutoLoadCache
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md
AutoLoadCache
现在使用的缓存技术很多,比如Redis、 Memcache 、 EhCache等,甚至还有使用ConcurrentHashMap 或 HashTable 来实现缓存。但在缓存的使用上,每个人都有自己的实现方式,大部分是直接与业务代码绑定,随着业务的变化,要更换缓存方案时,非常麻烦。接下来我们就使用AOP + Annotation 来解决这个问题,同时使用自动加载机制 来实现数据“常驻内存”。
设计思想及原理
在infoq 发表的文章《面对缓存,有哪些问题需要思考?》
使用方法
注解(Annotation)说明
分布式锁支持
表达式的应用
缓存删除
注意事项
与Spring Cache的区别
最佳实战
autoload-cache-spring-boot-starter 推荐使用这个,test目录中也有可运行例子。
源码阅读
已经实现基于aspectj 的AOP,代码在com.jarvis.cache.aop.aspectj.AspectjAopInterceptor。想通过阅读代码了解详细细节,可以以此为入口。
注意:有些类get, set, hashCode(), toString() equals()等方法是使用 lombok 自动生成的,所以使用Eclipse 和 IntelliJ IDEA 时,需要先安装lombok。
更新日志
QQ群:429274886
Recommend
-
114
GitHub is where people build software. More than 28 million people use GitHub to discover, fork, and contribute to over 80 million projects.
-
55
海尔智慧家庭将结合人工智能、区块链、云计算和大数据等前沿技术,搭建U+开放平台,可以窥见海尔已经确定了区块链技术到自己的战略布局。
-
50
Interactive grep annotation tool for manual static analysis in Emacs Lisp
-
46
8月22日,银保监会发布的《中国银保监会办公厅关于2017年保险小额理赔服务监测情况的通报》(下称通报)指出,车险报案索赔环节耗时最长,达9.94天,在整个出险支付周期中占比为85.84%;个人医疗保险理赔用时则集中在出险报案环节,周期达...
-
32
README.md
-
74
MpApt - Kotlin (Native/JS/JVM) Annotation Processor library Introduction 🙋...
-
10
Company Dictionary This simple company backend emulates ac-source-dictionary and vim's dictionary omnicompletion (C-x C-k). It's much like com...
-
6
MapStruct - Java bean mappings, the easy way! What is MapStruct? MapStruct is a Java annotation processor for the generation of type-safe and...
-
3
app截图
-
7
某公司有三个部门,要使三个部门可以访问互联网,但各个部门之间不能相互访问。内网有一台服务器,所有人都要能访问到,而且要对内外提供HTTP、DNS服务。三个部门的机器均使用动态IP上网,服务器使用静态IP上网。ISP提供静态IP接入...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK