Class Cache<T>
java.lang.Object
com.zetaplugins.lifestealz.caches.Cache<T>
- Direct Known Subclasses:
EliminatedPlayersCache,OfflinePlayerCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllItems(Set<T> items) Add all items to the cachevoidAdd an item to the cachevoidClear the cacheGet a set of all cached dataprotected LifeStealZabstract voidReload the cache from the databasevoidremoveItem(T item) Remove an item from the cache
-
Constructor Details
-
Cache
-
-
Method Details
-
reloadCache
public abstract void reloadCache()Reload the cache from the database -
getCachedData
Get a set of all cached data -
addItem
Add an item to the cache- Parameters:
item- The item to add
-
removeItem
Remove an item from the cache- Parameters:
item- The item to remove
-
addAllItems
Add all items to the cache- Parameters:
items- The items to add
-
clearCache
public void clearCache()Clear the cache -
getPlugin
-