putExpiredTyped method
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,
);