putMany<T> method

  1. @override
FutureOr<void> putMany<T>(
  1. Map<String, T> object, {
  2. Duration? ttl,
})
override

Stores all entries from object. The optional ttl applies uniformly to every entry; pass null to let the TTL policy decide per key, Duration.zero for no expiry.

Implementation

@override
FutureOr<void> putMany<T>(Map<String, T> object, {Duration? ttl}) {
  store.addAll(object);
}