mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
feat: update cache time
This commit is contained in:
@@ -3,7 +3,7 @@ import { registerEvent } from "../register-event";
|
|||||||
import { HydraApi } from "@main/services";
|
import { HydraApi } from "@main/services";
|
||||||
import { gamesShopAssetsSublevel, levelKeys } from "@main/level";
|
import { gamesShopAssetsSublevel, levelKeys } from "@main/level";
|
||||||
|
|
||||||
const LOCAL_CACHE_EXPIRATION = 1000 * 60 * 30; // 30 minutes
|
const LOCAL_CACHE_EXPIRATION = 1000 * 60 * 60 * 8; // 8 hours
|
||||||
|
|
||||||
export const getGameAssets = async (objectId: string, shop: GameShop) => {
|
export const getGameAssets = async (objectId: string, shop: GameShop) => {
|
||||||
const cachedAssets = await gamesShopAssetsSublevel.get(
|
const cachedAssets = await gamesShopAssetsSublevel.get(
|
||||||
|
|||||||
Reference in New Issue
Block a user