I’ve been testing MemoryStoreService and I’ve recently came across a bug, maybe it’s just my bad skills as a developer, but, when I’m reading Data from Queue and try to remove them using the provided id, as stated in Developer Docs, the data isn’t removed whatsoever. Moreover, the id is refreshing everytime I read the data from the queue. Am I doing it wrong? Here’s the code for anyone who wants to try it:
local MemoryStoreService = game:GetService("MemoryStoreService")
local Queue = MemoryStoreService:GetQueue("MATCHMAKING_TEST3", 0)
for i = 1, 10 do
Queue:AddAsync({
Id = 1234567890
}, 60)
end
local Data, Id = Queue:ReadAsync(10, false, -1)
print(Data)
Queue:RemoveAsync(Id)
After running this code the first time, remove the AddAsync method in order to just read the data from the queue.