Push To Queue Back (LCC.kvdb.queue.push_back)
Signature
size, err = LCC.kvdb.queue.push_back(name, value, timeout?)
Parameters
- name
String. Queue name (non-empty, max256bytes). - value
String. Value to push (must be valid UTF-8). - timeout
Number, optional. Request timeout in seconds, default60.
Returns
- size
Number. Queue length after the push;nilon failure. - err
String ornil. Error description when the call fails.
Notes
Pushes an item onto the tail of the queue.
Shares the same constraints aspush_front.
Example
local size, err = LCC.kvdb.queue.push_back("pending", "task#2")
if not size then
error(err)
end