This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git
The following commit(s) were added to refs/heads/master by this push:
new a1c2c49037 [fix] 优化调用结果缓存 (#1172)
a1c2c49037 is described below
commit a1c2c49037237489f3d8f72f02ef380113860e75
Author: JIAN ZHONG <[email protected]>
AuthorDate: Fri Jul 1 10:19:19 2022 +0800
[fix] 优化调用结果缓存 (#1172)
---
.../advanced-features-and-usage/rpc/result-cache.md | 21 ++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)
diff --git
a/content/zh/docs3-building/java-sdk/advanced-features-and-usage/rpc/result-cache.md
b/content/zh/docs3-building/java-sdk/advanced-features-and-usage/rpc/result-cache.md
index 4a89565f2f..e55427e23a 100644
---
a/content/zh/docs3-building/java-sdk/advanced-features-and-usage/rpc/result-cache.md
+++
b/content/zh/docs3-building/java-sdk/advanced-features-and-usage/rpc/result-cache.md
@@ -5,18 +5,21 @@ linkTitle: "调用结果缓存"
weight: 7
description: "通过缓存结果加速访问速度"
---
+## 特性说明
+结果缓存,用于加速热门数据的访问速度,Dubbo 提供声明式缓存,以减少用户加缓存的工作量。
-结果缓存,用于加速热门数据的访问速度,Dubbo 提供声明式缓存,以减少用户加缓存的工作量。
-
-## 缓存类型
+#### 缓存类型
* `lru` 基于最近最少使用原则删除多余缓存,保持最热的数据被缓存。
* `threadlocal` 当前线程缓存,比如一个页面渲染,用到很多 portal,每个 portal
都要去查用户信息,通过线程缓存,可以减少这种多余访问。
* `jcache` 与 [JSR107](http://jcp.org/en/jsr/detail?id=107%27) 集成,可以桥接各种缓存实现。
-缓存类型可扩展,参见:[缓存扩展](../../references/spis/cache)
+缓存类型可扩展 [缓存扩展](../../../reference-manual/spi/description/cache)
+
+关于
[示例代码](https://github.com/apache/dubbo-samples/tree/master/dubbo-samples-cache)
-## 配置
+## 使用场景
+## 使用方式
```xml
<dubbo:reference interface="com.foo.BarService" cache="lru" />
@@ -30,9 +33,5 @@ description: "通过缓存结果加速访问速度"
</dubbo:reference>
```
-{{% alert title="提示" color="primary" %}}
-`2.1.0` 以上版本支持。
-
-[示例代码](https://github.com/apache/dubbo-samples/tree/master/dubbo-samples-cache)
-{{% /alert %}}
-
+#### 提示:
+`2.1.0` 以上版本支持。