getCachedData<T> method
Get cached data for a query
Implementation
T? getCachedData<T>(Object queryKey) {
// Changed to Object
final normalizedKey = QueryKey.normalize(queryKey);
final entry = _cache[normalizedKey];
if (entry == null || entry.isExpired) {
return null;
}
return entry.data as T?;
}