// Load multiple strings sequentially
async function loadProductDetails(productId) {
const name = await StringBoot.get(`product_${productId}_name`);
const description = await StringBoot.get(`product_${productId}_description`);
const price = await StringBoot.get(`product_${productId}_price`);
return { name, description, price };
}
// Or load in parallel for better performance
async function loadProductDetailsParallel(productId) {
const [name, description, price] = await Promise.all([
StringBoot.get(`product_${productId}_name`),
StringBoot.get(`product_${productId}_description`),
StringBoot.get(`product_${productId}_price`)
]);
return { name, description, price };
}
// Usage
const product = await loadProductDetails(123);