putMany method
Stores multiple values in the cache.
- Parameters:
values: A map of key-value pairs to store.ttl: The duration for which the items should remain in the cache.
Implementation
@override
Future<void> putMany(Map<String, dynamic> values, Duration ttl) async {
for (final entry in values.entries) {
await put(entry.key, entry.value, ttl);
}
}