API ReferenceHashes
HSet
Set a single field in a hash
Syntax
Redix.HSet(key, field, value)Parameters
Prop
Type
Returns
Prop
Type
Examples
-- Set player name
Redix.HSet('player:123', 'name', 'John Doe')
-- Set player level
Redix.HSet('player:123', 'level', 50)
-- Set complex value
Redix.HSet('player:123', 'appearance', {
hair = 1,
hairColor = 2
})