Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

MemoryStoreHashMapPages

MemoryStoreHashMapPages : DataStorePages

Overview

A Pages object that lets you iterate through the items stored in a MemoryStoreHashMap page by page.

It can only be retrieved through the MemoryStoreHashMap:ListItemsAsync() method and cannot be created with Instance.new(). It can only be used in a server environment.

Calling GetCurrentPage() retrieves the items on the current page as an array, and each item is a table with the following fields.

  • key : The key of the item.

  • value : The value stored in the item.

If there are no stored items, GetCurrentPage() returns an empty table, not nil.

If IsFinished is false, you can load the next page with AdvanceToNextPageAsync(), and IsFinished becomes true when there are no more pages to load. The page navigation behavior and constraints are the same as DataStorePages.

Important Notes

  • The count specified in ListItemsAsync is only the maximum number of items per page. A page holding fewer items than that does not mean it is the last page, so check IsFinished to determine whether it is the last page.

  • The iteration result is not a fixed snapshot taken at retrieval time. Items added during iteration may or may not appear, and the same item can appear more than once. However, items that exist throughout the iteration appear at least once.

Properties

Methods

Events

Last updated