Java Code Examples for com.github.benmanes.caffeine.cache.Cache#invalidateAll()
The following examples show how to use
com.github.benmanes.caffeine.cache.Cache#invalidateAll() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CaffeineCacheImpl.java From jboot with Apache License 2.0 | 5 votes |
@Override public void removeAll(String cacheName) { Cache cache = getCacheOnly(cacheName); if (cache != null) { cache.invalidateAll(); } }
Example 2
Source File: PermissionHolderCache.java From GriefDefender with MIT License | 4 votes |
public void invalidateAllPermissionCache() { for (Cache<Integer, Tristate> cache : this.permissionCache.values()) { cache.invalidateAll(); } }
Example 3
Source File: PermissionHolderCache.java From GriefDefender with MIT License | 4 votes |
public void invalidateAllPermissionCache() { for (Cache<Integer, Tristate> cache : this.permissionCache.values()) { cache.invalidateAll(); } }