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
The key to associate with the cached data.
The data to be cached. Must be of type Player or Clan.
Throws
if an unsupported data type is provided.