Am I trippin? or does :ListItemsAsync() for hashmaps just not work

So I was going to use a HashMap but ListItemsAsync just isn’t returning anything from the test script I wrote…

local hashMap = game:GetService("MemoryStoreService"):GetHashMap("Testing")
hashMap:SetAsync("asdas", "A", 3600)
hashMap:SetAsync("asdads", "B", 3600)
local list = hashMap:ListItemsAsync(200)
print(list:GetCurrentPage())
1 Like

It does work, just not the way you expect it to.
Due to how hashmaps work, items aren’t listed in the order they are inserted, and they are not guaranteed to be sequential. Because they aren’t sequential, they are also not guaranteed to be on the first page.

If you take a look at the documentation, you will see an example of how to properly use this function.

This could be completely wrong because I haven’t personally worked with memory store queue’s yet but this may be what you are looking for if the insertion order matters: