From 4b0018e1d2868636d7ef0a110cadc1e5cd5c3ada Mon Sep 17 00:00:00 2001 From: godotg Date: Tue, 26 Mar 2024 11:44:55 +0800 Subject: [PATCH] ref[cache]: use LazyCache instead of Caffeine --- README.md | 2 +- README_CN.md | 2 +- boot/pom.xml | 2 -- doc/TODO.md | 5 ----- doc/video-tutorial.md | 1 - event/pom.xml | 2 -- hotswap/pom.xml | 2 -- monitor/pom.xml | 2 -- net/pom.xml | 8 -------- orm/README.md | 1 - orm/README_CN.md | 1 - orm/pom.xml | 8 -------- pom.xml | 2 -- protocol/pom.xml | 2 -- scheduler/pom.xml | 2 -- storage/pom.xml | 29 +---------------------------- 16 files changed, 3 insertions(+), 68 deletions(-) diff --git a/README.md b/README.md index 941bbd24..e279b998 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ NetContext.getCosumer() HotSwapUtils.hotswapClass(bytes); ``` -#### 4. [orm](orm/README.md) automatic mapping framework based on mongodb, The secondary cache is designed using [caffeine](https://github.com/ben-manes/caffeine) to fully release the database pressure +#### 4. [orm](orm/README.md) automatic mapping framework based on mongodb ``` // You don't need to write sql and any configuration yourself, define a table in the database directly through annotation definitions diff --git a/README_CN.md b/README_CN.md index 614f17d9..c05b8320 100644 --- a/README_CN.md +++ b/README_CN.md @@ -112,7 +112,7 @@ NetContext.getCosumer() HotSwapUtils.hotswapClass(bytes); ``` -#### 4. [orm](orm/README.md) 基于mongodb的自动映射框架,使用 [caffeine](https://github.com/ben-manes/caffeine) 设计了二级缓存,充分释放数据库压力 +#### 4. [orm](orm/README.md) 基于mongodb的自动映射框架 ``` // 无需自己写sql和任何配置,直接通过注解定义在数据库中定义一张表 diff --git a/boot/pom.xml b/boot/pom.xml index fc164bde..d8be6d2c 100644 --- a/boot/pom.xml +++ b/boot/pom.xml @@ -24,8 +24,6 @@ 5.5.0 6.4.5 - - 3.1.8 5.2.3 1.10.0 diff --git a/doc/TODO.md b/doc/TODO.md index 9886a596..4ab50f0b 100644 --- a/doc/TODO.md +++ b/doc/TODO.md @@ -2,8 +2,3 @@ - 考虑用javassist的方式支持protobuf,用约定大于配置的方式,还可以原生的和pojo对象结合起来 - 通过protobuf的proto文件生成java的pojo源代码,通过动态编译java源代码的方式生成其它语言的源代码 - - -### orm - -- 使用更高性能的Cache2k替换Caffeine \ No newline at end of file diff --git a/doc/video-tutorial.md b/doc/video-tutorial.md index 38bec822..eac4270f 100644 --- a/doc/video-tutorial.md +++ b/doc/video-tutorial.md @@ -72,7 +72,6 @@ java的线程池,SingleThreadScheduledExecutor,SingleThreadExecutor ``` Mysql中的数据库,表,一条数据,在Mongodb分别叫做,数据库,集合,文档 Elastic Search的全文搜索引擎 -Java的缓存框架guava cache,还有它的升级版本caffeine mongodb的map reduce操作 分布式唯一Id,Java自带的UUID,雪花算法(SnowFlake),Redis分布式唯一Id实现,Mongodb分布式唯一Id实现,Zookeeper分布式唯一Id实现 ``` diff --git a/event/pom.xml b/event/pom.xml index 73341fbb..b55a4206 100644 --- a/event/pom.xml +++ b/event/pom.xml @@ -24,8 +24,6 @@ 5.5.0 6.4.5 - - 3.1.8 5.2.3 1.10.0 diff --git a/hotswap/pom.xml b/hotswap/pom.xml index f1fb59f3..f7b16db7 100644 --- a/hotswap/pom.xml +++ b/hotswap/pom.xml @@ -24,8 +24,6 @@ 5.5.0 6.4.5 - - 3.1.8 5.2.3 1.10.0 diff --git a/monitor/pom.xml b/monitor/pom.xml index d42e3f43..85d0017c 100644 --- a/monitor/pom.xml +++ b/monitor/pom.xml @@ -24,8 +24,6 @@ 5.5.0 6.4.5 - - 3.1.8 5.2.3 1.10.0 diff --git a/net/pom.xml b/net/pom.xml index b411dd02..dda6b9f0 100644 --- a/net/pom.xml +++ b/net/pom.xml @@ -24,8 +24,6 @@ 5.5.0 6.4.5 - - 3.1.8 5.2.3 1.10.0 @@ -121,12 +119,6 @@ - - com.github.ben-manes.caffeine - caffeine - ${caffeine.version} - - org.springframework spring-context diff --git a/orm/README.md b/orm/README.md index 83d52d67..37841900 100644 --- a/orm/README.md +++ b/orm/README.md @@ -5,7 +5,6 @@ English | [简体中文](./README_CN.md) - [orm](https://github.com/zfoo-project/zfoo/blob/main/orm/README.md) Based on MongoDB's orm framework, it provides a mapping between POJO objects and Mongo DB databases - MongoDB is a distributed database that can be used on a single machine or distributed in a single machine -- High-performance database entity object caching based on [caffeine](https://github.com/ben-manes/caffeine) ### Ⅱ. Use diff --git a/orm/README_CN.md b/orm/README_CN.md index af6e02d9..560478e1 100644 --- a/orm/README_CN.md +++ b/orm/README_CN.md @@ -4,7 +4,6 @@ - [orm](https://github.com/zfoo-project/zfoo/blob/main/orm/README.md) 基于MongoDB的orm框架,提供POJO对象和MongoDB数据库之间的映射 - mongodb是分布式数据库,可以单机使用,也可以分布式使用 -- 基于 [caffeine](https://github.com/ben-manes/caffeine) 的高性能数据库实体对象Entity缓存 ### Ⅱ. 使用 diff --git a/orm/pom.xml b/orm/pom.xml index abe4067a..ace3e314 100644 --- a/orm/pom.xml +++ b/orm/pom.xml @@ -24,8 +24,6 @@ 5.5.0 6.4.5 - - 3.1.8 5.2.3 1.10.0 @@ -82,12 +80,6 @@ ${zfoo.version} - - com.github.ben-manes.caffeine - caffeine - ${caffeine.version} - - org.javassist javassist diff --git a/pom.xml b/pom.xml index a45bc97b..05ba24ac 100644 --- a/pom.xml +++ b/pom.xml @@ -140,8 +140,6 @@ 5.5.0 6.4.5 - - 3.1.8 5.2.3 1.10.0 diff --git a/protocol/pom.xml b/protocol/pom.xml index df10833f..0313cffc 100644 --- a/protocol/pom.xml +++ b/protocol/pom.xml @@ -24,8 +24,6 @@ 5.5.0 6.4.5 - - 3.1.8 5.2.3 1.10.0 diff --git a/scheduler/pom.xml b/scheduler/pom.xml index 716d7854..ca52d209 100644 --- a/scheduler/pom.xml +++ b/scheduler/pom.xml @@ -24,8 +24,6 @@ 5.5.0 6.4.5 - - 3.1.8 5.2.3 1.10.0 diff --git a/storage/pom.xml b/storage/pom.xml index 8a0005b2..27810168 100644 --- a/storage/pom.xml +++ b/storage/pom.xml @@ -24,14 +24,11 @@ 5.5.0 6.4.5 - - 3.1.8 5.2.3 1.10.0 - 2.7 - + 0.10.1 3.3.1 3.3.1 3.11.0 @@ -54,11 +51,6 @@ - - commons-io - commons-io - ${commons-io.version} - com.zfoo scheduler @@ -72,30 +64,11 @@ - - org.apache.poi - poi - ${poi.version} - - - commons-io - commons-io - - - log4j-api - org.apache.logging.log4j - - - org.apache.poi poi-ooxml ${poi.version} - - commons-io - commons-io - log4j-api org.apache.logging.log4j