updateCache<T> method
Update cache for a query
Implementation
void updateCache<T>(String queryKey, T data, DateTime timestamp) {
final query = _queries[queryKey];
// Allow caching even without a query instance (e.g. prefetch)
// Default to 5 minutes if no query/config available
final cacheTime = query?.config.cacheTime ?? const Duration(minutes: 5);
_setCacheEntry(queryKey, data, timestamp, cacheTime);
}