Call Result Cache
lrudeletes redundant caches based on the least recently used principle, keeping the hottest data cached.
threadlocalThe current thread cache, such as a page rendering, uses many portals, and each portal needs to check user information. Through thread caching, this redundant access can be reduced.
jcacheintegrates with JSR107 to bridge various cache implementations.
Cache Type Extensible Cache Extensions
About sample code
scenes to be used
The result cache is used to speed up access to popular data. Dubbo provides a declarative cache to reduce the workload of users adding cache.
How to use
<dubbo:reference interface="com.foo.BarService" cache="lru" />
<dubbo:reference interface="com.foo.BarService"> <dubbo:method name="findBar" cache="lru" /> </dubbo:reference>
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.