getConfigCacheTimestamp function

Future<int?> getConfigCacheTimestamp()

Gets the timestamp of the last cached config

Usage:

final timestamp = await getConfigCacheTimestamp();
if (timestamp != null) {
  final cacheDate = DateTime.fromMillisecondsSinceEpoch(timestamp);
  print('Config cached at: $cacheDate');
}

@returns Future<int?> Timestamp in milliseconds or null if no cache exists

Implementation

Future<int?> getConfigCacheTimestamp() async {
  return await cdnConfigInstance.getConfigCacheTimestamp();
}