put method

  1. @override
Future<void> put(
  1. String key,
  2. dynamic value, {
  3. Duration? expiryDuration,
})
override

Add / Replace the cache value for the specified key. If specified expiryDuration is used instead of the configured expiry policy duration

  • key: the key
  • value: the value
  • expiryDuration: Expiry duration to be used in place of the configured expiry policy duration

Implementation

@override
Future<void> put(String key, dynamic value, {Duration? expiryDuration}) {
  _secondary.put(key, value, expiryDuration: expiryDuration);
  return _primary.put(key, value, expiryDuration: expiryDuration);
}