updateCache

fun <T> updateCache(key: String, data: T)

Updates the cache

This method accepts data of generic type T and associates it with the provided key in the cache. The data type is determined at runtime and must be either Player or Clan.

Parameters

key

The key to associate with the cached data.

data

The data to be cached. Must be of type Player or Clan.

Throws

if an unsupported data type is provided.