getMany method
Get multiple entries at once Returns a map of key -> data (only includes keys that exist and are not expired)
Implementation
Future<Map<String, dynamic>> getMany(List<dynamic> keys) async {
final result = <String, dynamic>{};
for (final key in keys) {
final normalizedKey = _normalizeKey(key);
final data = await getIfPresent(key);
if (data != null) {
result[normalizedKey] = data;
}
}
return result;
}