K - key typepublic class CacheableContainer<K> extends Object implements ContainerDelegate<K>
Data source container wrapper class with cache function.
When the data source is obtained from the key set,
it will first try to obtain it from the cache.
If some key sets do not exist in the cache,
it will be obtained from the original container and added to the cache for this batch of keys.
CacheObject,
CacheableContainerProcessorContainer.LifecycleEMPTY_CONTAINER_NAMESPACE| 构造器和说明 |
|---|
CacheableContainer() |
| 限定符和类型 | 方法和说明 |
|---|---|
Map<K,?> |
get(Collection<K> keys)
Enter a batch of key values to return data source objects grouped by key values.
|
CacheObject<K> |
getCurrentCache()
Get the current cache object, if the current cache object is null or invalid,
recreate it by cache manager which is specified in cache definition.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, getContainer, getNamespace, initpublic Map<K,?> get(Collection<K> keys)
Enter a batch of key values to return data source objects grouped by key values. If part of the key value entered has been cached, the data corresponding to that part of the key value will be obtained from the cache first.
public CacheObject<K> getCurrentCache()
Copyright © 2024. All rights reserved.