Skip to content

MemoryStore ​

Functions ​

shardIndex ​

luau
MemoryStore.shardIndex(key: string, shardCount: number, offset: number?, seed: string?): number

getItemsFromHashMap Yields ​

luau
MemoryStore.getItemsFromHashMap(hashMap: MemoryStoreHashMap): { [string]: any }

getSharded Yields ​

luau
MemoryStore.getSharded(hashMap: MemoryStoreHashMap, keyPrefix: string, shardCount: number, maxProbes: number?, attempts: number?): (boolean, any)

setSharded ​

luau
MemoryStore.setSharded(hashMap: MemoryStoreHashMap, keyPrefix: string, value: any, expiration: number, shardCount: number, attempts: number?): boolean