add: app data query cache option

This commit is contained in:
trisua 2025-08-17 14:52:29 -04:00
parent fdbc08912d
commit 8116307ba0
11 changed files with 100 additions and 49 deletions

View file

@ -32,6 +32,8 @@ pub enum DeveloperPassStorageQuota {
Tier2,
/// The app is limited to 100 MB.
Tier3,
/// The app is not limited.
Unlimited,
}
impl Default for DeveloperPassStorageQuota {
@ -46,6 +48,7 @@ impl DeveloperPassStorageQuota {
DeveloperPassStorageQuota::Tier1 => 26214400,
DeveloperPassStorageQuota::Tier2 => 52428800,
DeveloperPassStorageQuota::Tier3 => 104857600,
DeveloperPassStorageQuota::Unlimited => usize::MAX,
}
}
}

View file

@ -31,6 +31,7 @@ macro_rules! api_return_ok {
pub struct SimplifiedQuery {
pub query: AppDataSelectQuery,
pub mode: AppDataSelectMode,
pub cache: bool,
}
/// The data client is used to access an app's data storage capabilities.