public interface FlagsmithCache
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp()
Performs any pending maintenance operations needed by the cache.
|
long |
estimatedSize()
Returns the approximate number of entries in this cache.
|
FlagsAndTraits |
getIfPresent(String key)
Returns the value associated with key in this cache, or null if there is no cached value for key.
|
void |
invalidate(String userId)
Discards any cached value for key userId.
|
void |
invalidateAll()
Discards all entries in the cache.
|
com.github.benmanes.caffeine.cache.stats.CacheStats |
stats()
Returns a current snapshot of this cache's cumulative statistics.
|
void cleanUp()
void invalidateAll()
void invalidate(String userId)
userId - long estimatedSize()
com.github.benmanes.caffeine.cache.stats.CacheStats stats()
FlagsAndTraits getIfPresent(String key)
key - Copyright © 2021. All rights reserved.