put method
Add / Replace the cache value for the specified key. If specified expiryDuration is used
instead of the configured expiry policy duration
key: the keyvalue: the valueexpiryDuration: 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);
}