Skip to main content

Store

Saves and loads replay buffers through DataStoreService, splitting large replays across multiple keys so each stays under the per-key limit.

Functions​

save​

Store.save(
key: string,
blob: buffer,
storeName: string?
) → Meta

Saves a replay under a key and records it in the index. Yields.

load​

Store.load(
key: string,
storeName: string?
) → buffer?

Loads a replay by key, or nil if it does not exist. Yields.

Show raw api
{
    "functions": [
        {
            "name": "save",
            "desc": "Saves a replay under a key and records it in the index. Yields.",
            "params": [
                {
                    "name": "key",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "blob",
                    "desc": "",
                    "lua_type": "buffer"
                },
                {
                    "name": "storeName",
                    "desc": "",
                    "lua_type": "string?"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Meta\n"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 37,
                "path": "src/Flashback/Store.luau"
            }
        },
        {
            "name": "load",
            "desc": "Loads a replay by key, or nil if it does not exist. Yields.",
            "params": [
                {
                    "name": "key",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "storeName",
                    "desc": "",
                    "lua_type": "string?"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "buffer?\n"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 74,
                "path": "src/Flashback/Store.luau"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "Store",
    "desc": "Saves and loads replay buffers through DataStoreService, splitting large\nreplays across multiple keys so each stays under the per-key limit.",
    "source": {
        "line": 7,
        "path": "src/Flashback/Store.luau"
    }
}