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

  • lru Delete excess cache Based on the principle of least recently used. The hottest data is cached.
  • threadlocal The 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.
  • jcache integrate with JSR107 , you can bridge a variety of cache implementation.

Caching type can be extended,refer to:Cache extension


<dubbo:reference interface="" cache="lru" />


<dubbo:reference interface="">
    <dubbo:method name="findBar" cache="lru" />

Last modified December 13, 2022: Fix check (#1723) (af2f296e656)