API ReferenceLists
RPop
Remove and return the last element from a list
Syntax
Redix.RPop(key, callback)Parameters
Prop
Type
Returns
Prop
Type
Examples
-- Process from end of list
Redix.RPop('logs:recent', function(err, log)
if not err and log then
print('Last log entry:', log.message)
end
end)
-- Undo last action
Redix.RPop('user:actions', function(err, action)
UndoAction(action)
end)