Skip to content

AutoLoadCache 是基于AOP+Annotation等技术实现的高效的缓存管理解决方案,实现缓存与业务逻辑的解耦,并增加异步刷新及“拿来主义机制”,以适应高并发环境下的使用。

License

Notifications You must be signed in to change notification settings

qiujiayu/AutoLoadCache

Folders and files

NameName
Last commit message
Last commit date
Mar 9, 2020
Nov 5, 2022
Oct 14, 2022
Nov 5, 2022
Nov 5, 2022
Oct 14, 2022
Nov 5, 2022
Nov 5, 2022
Mar 9, 2020
Sep 10, 2020
Mar 9, 2020
Feb 27, 2015
Nov 5, 2022
Jul 31, 2023

Repository files navigation

AutoLoadCache


Build Status Maven Central GitHub license

现在使用的缓存技术很多,比如RedisMemcacheEhCache等,甚至还有使用ConcurrentHashMapHashTable 来实现缓存。但在缓存的使用上,每个人都有自己的实现方式,大部分是直接与业务代码绑定,随着业务的变化,要更换缓存方案时,非常麻烦。接下来我们就使用AOP + Annotation 来解决这个问题,同时使用自动加载机制 来实现数据“常驻内存”。

在infoq 发表的文章《面对缓存,有哪些问题需要思考?》

《再谈缓存的穿透、数据一致性和最终一致性问题》

autoload-cache-spring-boot-starter 推荐使用这个,test目录中也有可运行例子。

源码阅读

已经实现基于aspectj 的AOP,代码在com.jarvis.cache.aop.aspectj.AspectjAopInterceptor。想通过阅读代码了解详细细节,可以以此为入口。

QQ群:429274886

About

AutoLoadCache 是基于AOP+Annotation等技术实现的高效的缓存管理解决方案,实现缓存与业务逻辑的解耦,并增加异步刷新及“拿来主义机制”,以适应高并发环境下的使用。

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published