putMany method

  1. @override
Future<void> putMany(
  1. Map<String, dynamic> values,
  2. Duration ttl
)
override

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);
  }
}