public final class CacheManager extends Object
Constructor and Description |
---|
CacheManager() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanUp()
Cleans up all cache entries that have been invalidated.
|
static com.google.common.collect.ImmutableList<com.google.common.cache.Cache<CacheKey,?>> |
getCacheList() |
static long |
invalidateAll()
Invalidates all entries in all caches.
|
static long |
invalidateTenantCaches()
Invalidates all caches of the current tenant.
|
static long |
invalidateTenantCaches(String tenantId)
Invalidates all caches of the given tenant.
|
static long |
invalidateUserCaches()
Invalidates all caches of the current user.
|
static long |
invalidateUserCaches(String tenantId,
String userName)
Invalidates all caches of the given user.
|
static long |
invalidateUserEntries(com.google.common.cache.Cache<CacheKey,?> cache)
Invalidates all cache entries of the current user.
|
static long |
invalidateUserEntries(String tenantId,
String userName,
com.google.common.cache.Cache<CacheKey,?> cache)
Invalidates all cache entries of the given user.
|
static <T> com.google.common.cache.Cache<CacheKey,T> |
register(com.google.common.cache.Cache<CacheKey,T> cache) |
public static com.google.common.collect.ImmutableList<com.google.common.cache.Cache<CacheKey,?>> getCacheList()
public static <T> com.google.common.cache.Cache<CacheKey,T> register(com.google.common.cache.Cache<CacheKey,T> cache)
public static void cleanUp()
public static long invalidateAll()
public static long invalidateTenantCaches() throws TenantNotFoundException
TenantNotFoundException
public static long invalidateTenantCaches(String tenantId)
public static long invalidateUserCaches() throws TenantNotFoundException, UserNotAuthenticatedException
TenantNotFoundException
UserNotAuthenticatedException
public static long invalidateUserCaches(String tenantId, String userName)
public static long invalidateUserEntries(com.google.common.cache.Cache<CacheKey,?> cache) throws TenantNotFoundException, UserNotAuthenticatedException
TenantNotFoundException
UserNotAuthenticatedException
Copyright © 2017 SAP SE. All rights reserved.