storageSaveWithExpiry function
Save data to the storage class with an expiration time.
Implementation
Future<void> storageSaveWithExpiry(
String key,
dynamic object, {
required Duration ttl,
bool inBackpack = false,
}) async {
await NyStorage.saveWithExpiry(key, object, ttl: ttl, inBackpack: inBackpack);
}