Skrip konfigurasi objek game lokal l77 untuk manajemen cache data.
JavaScript
// Konfigurasi objek lokal l77
const l77LocalConfig = {
brand: "l77",
country: "id",
locale: "id-ID",
supportedPlatforms: ["android"],
featuredGames: [
{ id: "094", name: "Heist Stakes" },
{ id: "019", name: "Dragon Legend" },
{ id: "121", name: "Wild Coaster" },
{ id: "150", name: "Gemstones Gold" },
{ id: "100", name: "Sprmkt Spree" }
],
storage: {
cachePrefix: "l77_local_data_",
timeoutMs: 5000
}
};
function getFeaturedGameList() {
return l77LocalConfig.featuredGames.map(game => game.name);
}
module.exports = { l77LocalConfig, getFeaturedGameList };
JSON
{
"brand": "l77",
"country": "id",
"locale": "id-ID",
"supportedPlatforms": [
"android"
],
"featuredGames": [
{
"id": "094",
"name": "Heist Stakes"
},
{
"id": "019",
"name": "Dragon Legend"
},
{
"id": "121",
"name": "Wild Coaster"
},
{
"id": "150",
"name": "Gemstones Gold"
},
{
"id": "100",
"name": "Sprmkt Spree"
}
],
"storage": {
"cachePrefix": "l77_local_data_",
"timeoutMs": 5000
}
}