| Modifier and Type | Method and Description |
|---|---|
CacheKey |
CacheKey.append(Iterable<Object> objects) |
CacheKey |
CacheKey.append(Object... objects)
Appends the given Objects to this instance.
|
static CacheKey |
CacheKey.of(Tenant tenant,
Principal principal)
Constructs a
CacheKey for the given tenant and principal identifier, independent of whether they are
null or not. |
static CacheKey |
CacheKey.ofNoIsolation()
Constructs an instance of
CacheKey without tenant or principal isolation. |
static CacheKey |
CacheKey.ofTenantAndPrincipalIsolation()
Constructs a tenant- and principal-isolated instance of
CacheKey. |
static CacheKey |
CacheKey.ofTenantAndPrincipalOptionalIsolation()
Constructs a tenant- and principal-optional-isolated instance of
CacheKey. |
static CacheKey |
CacheKey.ofTenantIsolation()
Constructs a tenant-isolated instance of
CacheKey. |
static CacheKey |
CacheKey.ofTenantOptionalIsolation()
Constructs a tenant-optional-isolated instance of
CacheKey. |
| Modifier and Type | Method and Description |
|---|---|
static com.google.common.collect.ImmutableList<com.github.benmanes.caffeine.cache.Cache<CacheKey,?>> |
CacheManager.getCacheList()
Getter for a list of all caches registered in the
CacheManager. |
static <T> com.github.benmanes.caffeine.cache.Cache<CacheKey,T> |
CacheManager.register(com.github.benmanes.caffeine.cache.Cache<CacheKey,T> cache)
Registers a cache at in the
CacheManager. |
static <T> com.github.benmanes.caffeine.cache.Cache<CacheKey,T> |
CacheManager.unregister(com.github.benmanes.caffeine.cache.Cache<CacheKey,T> cache)
Unregisters a cache from the
CacheManager. |
| Modifier and Type | Method and Description |
|---|---|
static long |
CacheManager.invalidatePrincipalEntries(com.github.benmanes.caffeine.cache.Cache<CacheKey,?> cache)
Invalidates all cache entries of the current tenant-specific principal.
|
static long |
CacheManager.invalidatePrincipalEntries(String tenantId,
String principalId,
com.github.benmanes.caffeine.cache.Cache<CacheKey,?> cache)
Invalidates all cache entries of the given tenant-specific principal.
|
static <T> com.github.benmanes.caffeine.cache.Cache<CacheKey,T> |
CacheManager.register(com.github.benmanes.caffeine.cache.Cache<CacheKey,T> cache)
Registers a cache at in the
CacheManager. |
static <T> com.github.benmanes.caffeine.cache.Cache<CacheKey,T> |
CacheManager.unregister(com.github.benmanes.caffeine.cache.Cache<CacheKey,T> cache)
Unregisters a cache from the
CacheManager. |
Copyright © 2022 SAP SE. All rights reserved.