Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
GangCheng committed Aug 21, 2023
1 parent 3af849a commit 76dc80f
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
* This project is compatible with `reactivestream` aka [`project-reactor`](https://projectreactor.io/)
* This project could integrate with `Spring Framework` (version>= 2.x)
* This project implement reactive cache for business application scenarios. The default implementation includes the following:
* `InmemeoryReactiveCache` uses `java.util.DelayQueue` to implement cache behavior
* `RedisReactiveCache` uses `redis` and `spring-boot-redis` to implement cache behavior
* `DefaultReactiveCache` uses customized configuration to implement cache behavior
* `InmemeoryReactiveCache` uses `java.util.concurrent.DelayQueue` to implement cache behavior
* `CaffeineReactiveCache` uses `com.github.benmanes.caffeine.cache.Cache` to implement cache behavior
* `RedisReactiveCache` uses `redis` and `spring-boot-data-redis` to implement cache behavior
* `DefaultReactiveCache` uses customized configuration which specific configured by uses to implement cache behavior

#### Usage

Expand All @@ -27,6 +28,15 @@ ReactiveCacheManager reactiveCacheManager = ReactiveCacheManagerBuilder.newInmem
.build();
```

> CaffeineReactiveCache
```java
ReactiveCacheManager reactiveCacheManager = ReactiveCacheManagerBuilder.newCaffeineReactiveManagerBuilder()
.withMaxWaitingDuration(Duration.ofSeconds(5))
.build();
```


> RedisReactiveCache
```java
Expand Down

0 comments on commit 76dc80f

Please sign in to comment.