CacheManager

Manages a cache of various data types using key-value pairs.

This class provides methods to update, retrieve, and check the presence of cached data with support for different data types such as Player and Clan.

The internal cache using a ConcurrentHashMap to store data.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Checks if the cache contains data associated with the provided key.

Link copied to clipboard
fun <T> getFromCache(key: String, clazz: Class<T>): T?

Retrieves data from the cache based on the provided key and data type.

Link copied to clipboard
fun <T> updateCache(key: String, data: T)

Updates the cache