Skip to content
Roblox API Reference

MemoryStoreHashMap

Provides access to a hash map within MemoryStoreService.
  • Not creatable
  • Not replicated
Memory category
Instances
Own members
5
Inherited members
75
Subclasses
0
Siblings
608

Properties23

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Methods47

Inherited fromObject3
  • Get an event that fires when a given property of the object changes.
    Parameters
    ParameterDescription
    property: string
    The property to connect to.
    Returns
    TypeDescription
    RBXScriptSignal
    A signal that fires whenever the property changes.
  • Object:IsA(className: string): boolean
    Returns true if an object's class matches or inherits from a given class.
    • Custom Lua state
    • Thread safe
    Parameters
    ParameterDescription
    className: string
    The class against which the Object's class will be checked. Case-sensitive.
    Returns
    TypeDescription
    boolean
    Describes whether the Object's class matched or is a subclass of the given class.
  • Object:isA(className: string): boolean
    Deprecated: This deprecated function is a variant of Object:IsA() which should be used instead.
    • Deprecated
    • Custom Lua state
    Parameters
    Parameter
    className: string
    Returns
    Type
    boolean

    Use IsA instead.

Inherited fromInstance39
Defined byMemoryStoreHashMap5
  • MemoryStoreHashMap:GetAsync(key: string): any
    Retrieves the value of a key in the hash map.
    • Yields
    • Capabilities: DataStore
    Parameters
    ParameterDescription
    key: string
    The key whose value you want to retrieve.
    Returns
    TypeDescription
    any
    The value, or nil if the key doesn't exist.
  • MemoryStoreHashMap:ListItemsAsync(count: number): MemoryStoreHashMapPages
    Returns a MemoryStoreHashMapPages object for enumerating through items in the hash map.
    • Yields
    • Capabilities: DataStore
    Parameters
    ParameterDescription
    count: number
    Maximum possible number of items that can be returned.
    Returns
    TypeDescription
    MemoryStoreHashMapPages
    A MemoryStoreHashMapPages instance that enumerates the items as MemoryStoreHashMapPages instances.
  • MemoryStoreHashMap:RemoveAsync(key: string)
    Removes an item from the hash map.
    • Yields
    • Capabilities: DataStore
    Parameters
    ParameterDescription
    key: string
    The key to remove.
  • MemoryStoreHashMap:SetAsync(key: string,value: any,expiration: number,): boolean
    Sets the value of a key in the hash map.
    • Yields
    • Capabilities: DataStore
    Parameters
    ParameterDescription
    key: string
    The key whose value to set.
    value: any
    The value to set.
    expiration: number
    Item expiration in seconds, after which the item is automatically removed from the hash map. The maximum expiration time is 45 days (3,888,000 seconds).
    Returns
    TypeDescription
    boolean
    true if the key already had a value that was overwritten, or false if the key was newly created.
  • MemoryStoreHashMap:UpdateAsync(key: string,transformFunction: (...any) -> ...any,expiration: number,): any
    Retrieves the value of a key from a hash map and lets you update it to a new value.
    • Yields
    • Capabilities: DataStore
    Parameters
    ParameterDescription
    key: string
    The key whose value you want to update.
    transformFunction: (...any) -> ...any
    The transform function, which you provide. This function takes the old value as an input and returns the new value.
    expiration: number
    Item expiration in seconds, after which the item is automatically removed from the hash map. The maximum expiration time is 45 days (3,888,000 seconds).
    Returns
    TypeDescription
    any
    The last value returned by the transform function.

Events10

Inherited fromObject1
Inherited fromInstance9