put abstract method

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

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

Future<void> put(String key, dynamic value, {Duration? expiryDuration});