"use strict";(self.webpackChunkdocs_site=self.webpackChunkdocs_site||[]).push([[6615],{4008:(e,n,l)=>{l.r(n),l.d(n,{assets:()=>i,contentTitle:()=>t,default:()=>a,frontMatter:()=>u,metadata:()=>s,toc:()=>d});const s=JSON.parse('{"id":"XXTLanControl.lua/kvdb/queue/pop_values","title":"\u6309\u503c\u6279\u91cf\u5220\u9664 (LCC.kvdb.queue.pop_values)","description":"\u58f0\u660e","source":"@site/docs/XXTLanControl.lua/kvdb/queue/pop_values.md","sourceDirName":"XXTLanControl.lua/kvdb/queue","slug":"/XXTLanControl.lua/kvdb/queue/pop_values","permalink":"/docs/XXTLanControl.lua/kvdb/queue/pop_values","draft":false,"unlisted":false,"tags":[],"version":"current","sidebarPosition":70,"frontMatter":{"sidebar_position":70},"sidebar":"tutorialSidebar","previous":{"title":"\u539f\u5b50\u79fb\u52a8\u961f\u5217\u5143\u7d20 (LCC.kvdb.queue.move)","permalink":"/docs/XXTLanControl.lua/kvdb/queue/move"},"next":{"title":"\u5217\u51fa\u961f\u5217\u5185\u5bb9 (LCC.kvdb.queue.list)","permalink":"/docs/XXTLanControl.lua/kvdb/queue/list"}}');var o=l(4848),r=l(8453);const u={sidebar_position:70},t="\u6309\u503c\u6279\u91cf\u5220\u9664 (LCC.kvdb.queue.pop_values)",i={},d=[{value:"\u58f0\u660e",id:"\u58f0\u660e",level:2},{value:"\u53c2\u6570",id:"\u53c2\u6570",level:2},{value:"\u8fd4\u56de\u503c",id:"\u8fd4\u56de\u503c",level:2},{value:"\u8bf4\u660e",id:"\u8bf4\u660e",level:2},{value:"\u793a\u4f8b",id:"\u793a\u4f8b",level:2}];function c(e){const n={blockquote:"blockquote",br:"br",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,r.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"\u6309\u503c\u6279\u91cf\u5220\u9664-lcckvdbqueuepop_values",children:"\u6309\u503c\u6279\u91cf\u5220\u9664 (LCC.kvdb.queue.pop_values)"})}),"\n",(0,o.jsx)(n.h2,{id:"\u58f0\u660e",children:"\u58f0\u660e"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-lua",children:"count, err = LCC.kvdb.queue.pop_values(name, value, timeout?)\n"})}),"\n",(0,o.jsx)(n.h2,{id:"\u53c2\u6570",children:"\u53c2\u6570"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:["name",(0,o.jsx)(n.br,{}),"\n","\u5b57\u7b26\u4e32\u578b\uff0c\u961f\u5217\u540d\u79f0\uff08\u975e\u7a7a\uff0c\u6700\u957f ",(0,o.jsx)(n.code,{children:"256"})," \u5b57\u8282\uff09"]}),"\n",(0,o.jsxs)(n.li,{children:["value",(0,o.jsx)(n.br,{}),"\n","\u5b57\u7b26\u4e32\u578b\uff0c\u8981\u5339\u914d\u5220\u9664\u7684\u503c\uff08\u5fc5\u987b\u4e3a\u5408\u6cd5 UTF-8\uff09"]}),"\n",(0,o.jsxs)(n.li,{children:["timeout",(0,o.jsx)(n.br,{}),"\n","\u6570\u503c\u578b\uff0c\u53ef\u9009\uff1b\u8bf7\u6c42\u8d85\u65f6\u65f6\u95f4\uff08\u79d2\uff09\uff0c\u9ed8\u8ba4 ",(0,o.jsx)(n.code,{children:"60"})]}),"\n"]}),"\n",(0,o.jsx)(n.h2,{id:"\u8fd4\u56de\u503c",children:"\u8fd4\u56de\u503c"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:["count",(0,o.jsx)(n.br,{}),"\n","\u6570\u503c\u578b\uff0c\u88ab\u5220\u9664\u7684\u5143\u7d20\u6570\u91cf\uff1b\u5931\u8d25\u65f6\u4e3a ",(0,o.jsx)(n.code,{children:"nil"})]}),"\n",(0,o.jsxs)(n.li,{children:["err",(0,o.jsx)(n.br,{}),"\n","\u5b57\u7b26\u4e32\u578b\u6216 ",(0,o.jsx)(n.code,{children:"nil"}),"\uff0c\u5931\u8d25\u65f6\u7684\u9519\u8bef\u63cf\u8ff0"]}),"\n"]}),"\n",(0,o.jsx)(n.h2,{id:"\u8bf4\u660e",children:"\u8bf4\u660e"}),"\n",(0,o.jsxs)(n.blockquote,{children:["\n",(0,o.jsxs)(n.p,{children:["\u539f\u5b50\u5730\u5220\u9664\u961f\u5217\u5185\u6240\u6709\u5339\u914d\u6307\u5b9a\u503c\u7684\u5143\u7d20\u3002",(0,o.jsx)(n.br,{}),"\n","\u8fd4\u56de\u503c\u8868\u793a\u672c\u6b21\u5220\u9664\u7684\u5143\u7d20\u6570\u91cf\u3002"]}),"\n"]}),"\n",(0,o.jsx)(n.h2,{id:"\u793a\u4f8b",children:"\u793a\u4f8b"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-lua",children:'local removed, err = LCC.kvdb.queue.pop_values("\u5f85\u5904\u7406", "timeout")\nif removed then\n    LCC.log(2, "\u6e05\u7406\u5f02\u5e38\u4efb\u52a1", removed)\nend\n'})})]})}function a(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(c,{...e})}):c(e)}},8453:(e,n,l)=>{l.d(n,{R:()=>u,x:()=>t});var s=l(6540);const o={},r=s.createContext(o);function u(e){const n=s.useContext(r);return s.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function t(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:u(e.components),s.createElement(r.Provider,{value:n},e.children)}}}]);