向进程队列词典头部压入一个值 (proc_queue_push_front)
声明
尺寸 = proc_queue_push_front(键, 值)
参数
- 键
字符串型,代表键 - 值
字符串型,代表需要压入的值
返回值
- 尺寸
整数型,压入值之后,返回该队列的尺寸,如果返回 0 ,则为压入失败
说明
所有以 "xxtouch." 或 "1ferver." 开头的进程队列词典全部被保留
进程队列词典的队列尺寸不能大于 10000,尺寸超过的队列将丢弃最先压入的值
往进程队列词典头部压入一个值,压入值之后,返回该队列的尺寸
不能压入空字符串
示例
local size = proc_queue_push_front("billnos", "name")
if size ~= 0 then
print("has "..size.." bill(s)")
else
print("failed")
end