public class ExpiringCache extends Object implements Cache
ExpiringCacheFactory to store method's returns value
to server from store without making method call.
e.g. 1) <dubbo:service cache="expiring" cache.seconds="60" cache.interval="10"/>
2) <dubbo:consumer cache="expiring" />
Cache,
ExpiringCacheFactory,
AbstractCacheFactory,
CacheFilter| Constructor and Description |
|---|
ExpiringCache(URL url) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(Object key)
API to return stored value using a key against the calling thread specific store.
|
void |
put(Object key,
Object value)
API to store value against a key in the calling thread scope.
|
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.