Cache Result
Cache result in dubbo
Cache result is used to speed up access to popular data. Dubbo provides declarative caching to reduce the user work of adding cache 1.
Cache Type
lruDelete excess cache Based on the principle of least recently used. The hottest data is cached.threadlocalThe current thread cache. For example, a page have a lot of portal and each portal need to check user information, you can reduce this redundant visit with this cache.jcacheintegrate with JSR107 , you can bridge a variety of cache implementation.
Caching type can be extended,refer to:Cache extension
Configuration
<dubbo:reference interface="com.foo.BarService" cache="lru" />
or:
<dubbo:reference interface="com.foo.BarService">
<dubbo:method name="findBar" cache="lru" />
</dubbo:reference>
Notice
supported in2.1.0 or above.Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified January 22, 2021: Merge branch 'master' of https://github.com/apache/dubbo-website (f48eac9)
