putExpiredTyped method

Future<void> putExpiredTyped(
  1. String key,
  2. Map<String, Object?> valueJson, {
  3. Duration? expirationDuration,
})
inherited

The same as putExpired, but using structures and serialization

Implementation

Future<void> putExpiredTyped(
  String key,
  Map<String, Object?> valueJson, {
  Duration? expirationDuration,
}) =>
    putExpired(
      key: key,
      value: jsonEncode(valueJson),
      expirationDuration: expirationDuration,
    );