| Package | Description |
|---|---|
| org.craftercms.core.cache | |
| org.craftercms.core.cache.impl | |
| org.craftercms.core.cache.impl.store | |
| org.craftercms.core.service | |
| org.craftercms.core.service.impl |
| Modifier and Type | Method and Description |
|---|---|
CacheItem |
Cache.get(String scope,
Object key)
Retrieves an item from a scope.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CacheItemImpl
Default implementation of
CacheItem. |
| Modifier and Type | Method and Description |
|---|---|
CacheItem |
CacheImpl.get(String scope,
Object key)
Retrieves an item from a scope.
|
CacheItem |
CacheStoreAdapter.get(String scope,
Object key)
Retrieves an item from a scope.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
CacheImpl.checkForExpiration(CacheItem item)
Checks if the given
CacheItem has expired. |
protected boolean |
CacheImpl.checkForRefresh(CacheItem item,
List<CacheItem> itemsToRefresh)
Checks if a given
CacheItem needs to be refreshed. |
protected void |
CacheImpl.doChecks(CacheItem item,
List<CacheItem> itemsToRefresh)
Checks if the given
CacheItem has expired or needs to be refreshed. |
protected String |
CacheRefresherImpl.getScopeAndKeyString(CacheItem item) |
void |
CacheStoreAdapter.put(CacheItem item)
Puts an item in a scope.
|
protected void |
CacheRefresherImpl.refreshItem(CacheItem item,
Cache cache)
Refreshes only one item.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
CacheImpl.checkForRefresh(CacheItem item,
List<CacheItem> itemsToRefresh)
Checks if a given
CacheItem needs to be refreshed. |
protected void |
CacheImpl.doChecks(CacheItem item,
List<CacheItem> itemsToRefresh)
Checks if the given
CacheItem has expired or needs to be refreshed. |
void |
CacheRefresher.refreshItems(List<CacheItem> itemsToRefresh,
Cache cache)
Refreshes the specified list of
CacheItems. |
void |
CacheRefresherImpl.refreshItems(List<CacheItem> itemsToRefresh,
Cache cache)
Refreshes the specified list of
CacheItems. |
| Modifier and Type | Method and Description |
|---|---|
CacheItem |
MapCacheStoreAdapter.get(String scope,
Object key)
Retrieves an item from a scope.
|
CacheItem |
EhCacheStoreAdapter.get(String scope,
Object key)
Retrieves an item from a scope.
|
CacheItem |
NoopCacheStoreAdapter.get(String scope,
Object key) |
| Modifier and Type | Method and Description |
|---|---|
void |
MapCacheStoreAdapter.put(CacheItem item)
Puts an item in a scope.
|
void |
EhCacheStoreAdapter.put(CacheItem item)
Puts an item in a scope.
|
void |
NoopCacheStoreAdapter.put(CacheItem item) |
| Modifier and Type | Method and Description |
|---|---|
CacheItem |
CacheService.getItem(Context context,
Object key)
Retrieves an item from the scope of the given context, or null if not found.
|
| Modifier and Type | Method and Description |
|---|---|
CacheItem |
CacheServiceImpl.getItem(Context context,
Object key) |
Copyright © 2018 CrafterCMS. All rights reserved.