Schnittstelle IBrowserCacheManager
public interface IBrowserCacheManager
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoiddisable()voidenable()longGet the base update sequence number, i.e. the USN that will be returned for keys that are not explicitely managed by this cache.longGet the current update sequence number, i.e. highest USN that is currently present in this cache.Get the mapping of keys to their current update sequence number.longGet the update sequence number for the given key.longIncrement and get the current update sequence number, i.e.voidInvalidate all keys.voidinvalidateKeysByPrefix(String... p_keyPrefixes) Invalidate keys that have one of the given prefixes.booleanCheck if the cache manager is enabled.
-
Methodendetails
-
getBaseUsn
long getBaseUsn()Get the base update sequence number, i.e. the USN that will be returned for keys that are not explicitely managed by this cache.- Gibt zurück:
- The base update sequence number.
-
getCurrentUsn
long getCurrentUsn()Get the current update sequence number, i.e. highest USN that is currently present in this cache.- Gibt zurück:
- The base update sequence number.
-
incrementAndGetCurrentUsn
long incrementAndGetCurrentUsn()Increment and get the current update sequence number, i.e. highest USN that is currently present in this cache.- Gibt zurück:
- The base update sequence number.
-
getUsn
Get the update sequence number for the given key.- Parameter:
p_strKey- The key.- Gibt zurück:
- The update sequence number for the given key.
-
getKeyToUsnMapping
Get the mapping of keys to their current update sequence number.- Gibt zurück:
- The mapping.
-
isEnabled
boolean isEnabled()Check if the cache manager is enabled.- Gibt zurück:
trueif the cache manager is enabled, orfalseotherwise.
-
invalidate
void invalidate()Invalidate all keys. -
invalidateKeysByPrefix
Invalidate keys that have one of the given prefixes.- Parameter:
p_keyPrefixes- An array of key prefixes.
-
enable
void enable() -
disable
void disable()
-