Push to back of process queue (proc_queue_push_back)
Declaration
size = proc_queue_push_back(key, value)
Parameters
- key
String. - value
String. The value to push.
Returns
- size
Integer. Size after pushing. If 0, push failed.
Notes
- This function is equivalent to
proc_queue_push
. - All process queues whose names start with "xxtouch." or "1ferver." are preserved.
- Queue size must not exceed 10000; exceeding values will drop earliest entries.
- Push a value to the back and return the size.
- Empty string cannot be pushed.
Example
local size = proc_queue_push_back("billnos", "name")
if size ~= 0 then
print("has "..size.." bill(s)")
else
print("failed")
end