Redix LogoDocumentation
API ReferenceLists

RPush

Push one or more values to the right (tail) of a list

Syntax

Redix.RPush(key, value1, value2, ...)

Parameters

Prop

Type

Returns

Prop

Type

Examples

-- Queue implementation (FIFO)
Redix.RPush('queue:jobs', {job = 'sendEmail', to = 'user@example.com'})

-- Add to chat history
Redix.RPush('chat:history', {
    user = 'John',
    message = 'Hello!',
    timestamp = os.time()
})