MemoryStoreService Error

Idk why Roblox just throws this error in front of my face when I didn’t do anything wrong. I set the expiration time 2 seconds & the game isn’t released. I am testing in Roblox studio, there is also no reason I’m calling MemoryStoreService too much making it throttle. Anyone help me fix this bug (I don’t want promises to throw me errors its so annoying when knit is combined with promises)

Knit.Start():andThen(function()
    local MazeService = Knit.GetService("MazeService")
    local Algorithms = {"Prims", "Backtrack"}
    if RunService:IsStudio() then
        local TestHashMap = MemoryStoreService:GetSortedMap("TestMazeInfo")
        TestHashMap:SetAsync(game.GameId, {MazeSize = 50, Seed = 0}, 2)
        local LobbyInfo = TestHashMap:GetAsync(game.GameId)
        MazeService:NewMaze{MazeSize = LobbyInfo.MazeSize or 50, Algorithm = Algorithms[math.random(1, #Algorithms)]}:Render()
    else
        local HashMap = MemoryStoreService:GetSortedMap("MazeInfo")
        local LobbyInfo = HashMap:GetAsync(tostring(game.PrivateServerId))
        MazeService:NewMaze{MazeSize = LobbyInfo.MazeSize;
        Seed = LobbyInfo.Seed, Algorithm = Algorithms[math.random(1, #Algorithms)]}:Render()
    end
end):catch(warn)

This is the only part where I’m calling MemoryStoreService. Every time it throws me this error, I have to wait around a few minutes to make it get off limit. Very annoying when I need to constantly check my code changes.

1 Like

Seems like issue has been fixed from the developer forum linked below me

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.