Skip to main content

AssetServiceCache

AssetServiceCache is a cache for the AssetServiceUtils functions.

Functions

Init

AssetServiceCache:Init(serviceBagServiceBag) → ()

Initializes the AssetServiceCache.

PromiseBundleDetails

AssetServiceCache:PromiseBundleDetails(bundleIdnumber) → Promise<BundleDetails>

Returns a promise that resolves to the bundle details for the given bundleId.

Show raw api
{
    "functions": [
        {
            "name": "Init",
            "desc": "Initializes the AssetServiceCache.",
            "params": [
                {
                    "name": "serviceBag",
                    "desc": "",
                    "lua_type": "ServiceBag"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 22,
                "path": "src/assetserviceutils/src/Shared/AssetServiceCache.lua"
            }
        },
        {
            "name": "PromiseBundleDetails",
            "desc": "Returns a promise that resolves to the bundle details for the given bundleId.",
            "params": [
                {
                    "name": "bundleId",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<BundleDetails>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 34,
                "path": "src/assetserviceutils/src/Shared/AssetServiceCache.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "AssetServiceCache",
    "desc": "AssetServiceCache is a cache for the AssetServiceUtils functions.",
    "source": {
        "line": 7,
        "path": "src/assetserviceutils/src/Shared/AssetServiceCache.lua"
    }
}