| Package | Description |
|---|---|
| com.sapportals.wcm.service.cache |
Provides a caching service.
|
| com.sapportals.wcm.util.cache |
Contains interfaces and classes for caches that are in memory or persistent.
|
| Modifier and Type | Method and Description |
|---|---|
ICache |
ICacheService.getCache(String cacheID)
Get a preconfigured cache (with properties taken from configuration).
|
ICache |
ICacheService.getCache(String cacheID,
Properties properties)
Get a cache for the given ID (and given properties, if cache does not
already exist): If no cache exists for the given ID, it will be created
with the given properties.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ICache.addEntry(ICacheEntry entry)
add a new entry to the cache
|
void |
ICache.addEntry(String key,
Object object)
create a new entry and add it to the cache
|
void |
ICache.addEntry(String key,
Object object,
int timeToLive)
create a new entry and add it to the cache
|
void |
ICache.addEntry(String key,
Object object,
int timeToLive,
long size)
create a new entry and add it to the cache
|
void |
ICache.addEntryAutoDelay(String key,
Object object,
int timeToLive)
create a new entry and add it to the cache - on access the expiration is
delayed by timeToLive
|
void |
ICache.addEntryAutoDelay(String key,
Object object,
int timeToLive,
long size)
create a new entry and add it to the cache - on access the expiration is
delayed by timeToLive
|
void |
ICache.clearCache()
remove all entries from the cache
|
boolean |
ICache.containsEntry(String key)
check, whether an entry with the key is stored in the cache
|
CacheEntryList |
ICache.elements() |
ICache |
CacheFactory.getCache(String cacheID) |
ICache |
CacheFactory.getCache(String cacheID,
boolean useDefault) |
ICache |
CacheFactory.getCache(String cacheID,
Properties properties) |
ICache |
CacheFactory.getCache(String configID,
String cacheID) |
ICache |
CacheFactory.getCache(String configID,
String cacheID,
boolean useDefault) |
ICacheEntry |
ICache.getEntry(String key)
get an entry from the cache
|
static CacheFactory |
CacheFactory.getInstance() |
Enumeration |
ICache.keys()
Deprecated.
as of NW04. Use keySet() instead
|
Set |
ICache.keySet()
Returns a setview on the current set of keys of all entries.
|
void |
ICache.refresh()
remove all expired entries
|
void |
IClusterCacheArea.refresh(ICache cache)
Remove all expired entries from the given cache (does a
cache.removeEntriesOlderThan(getLastClusterInvalidation())). |
void |
CacheFactory.removeCache(String configID,
ICache cache,
boolean useDefault)
Removes the cache instance unless it's Persistent or Singleton.
|
boolean |
ICache.removeEntriesOlderThan(long timestamp)
remove all entries from the cache with modification date older than the
given timestamp.
|
boolean |
ICache.removeEntriesStartingWith(String prefix)
remove all entries from the cache which's keys start with a specific prefix
|
boolean |
ICache.removeEntry(ICacheEntry entry)
remove an entry from the cache
|
boolean |
ICache.removeEntry(String key)
remove an entry from the cache
|
Copyright 2021 SAP SE Complete Copyright Notice