get From Cache
Retrieves data from the cache based on the provided key and data type.
Return
The cached data of the specified type or null
if not found or if the data type is unsupported.
Parameters
key
The key associated with the cached data.
clazz
The Class object representing the expected data type.