public class CacheRefresherImpl extends Object implements CacheRefresher
CacheRefresher.| Constructor and Description |
|---|
CacheRefresherImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getScopeAndKeyString(CacheItem item) |
protected void |
refreshItem(CacheItem item,
Cache cache)
Refreshes only one item.
|
void |
refreshItems(List<CacheItem> itemsToRefresh,
Cache cache)
Refreshes the specified list of
CacheItems. |
public void refreshItems(List<CacheItem> itemsToRefresh, Cache cache)
CacheItems.refreshItems in interface CacheRefreshercache - the cache where the new item values should be putprotected void refreshItem(CacheItem item, Cache cache) throws Exception
CacheLoader is called to get a new value of the item.
If the value returned by the loader is null, the item is removed from the cache instead.ExceptionCopyright © 2018 CrafterCMS. All rights reserved.