get abstract method
Returns the cache value for the specified key
. If specified expiryDuration
is used
instead of the configured expiry policy duration
key
: the keyexpiryDuration
: Expiry duration to be used in place of the configured expiry policy duration
Implementation
Future<dynamic> get(String key, {Duration? expiryDuration});