"use strict";(self.webpackChunkdocs_site=self.webpackChunkdocs_site||[]).push([[6342],{215:(e,n,l)=>{l.r(n),l.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>a,frontMatter:()=>t,metadata:()=>o,toc:()=>i});const o=JSON.parse('{"id":"XXTLanControl.lua/kvdb/queue/pop_back","title":"\u961f\u5217\u5c3e\u90e8\u5f39\u51fa (LCC.kvdb.queue.pop_back)","description":"\u58f0\u660e","source":"@site/docs/XXTLanControl.lua/kvdb/queue/pop_back.md","sourceDirName":"XXTLanControl.lua/kvdb/queue","slug":"/XXTLanControl.lua/kvdb/queue/pop_back","permalink":"/docs/XXTLanControl.lua/kvdb/queue/pop_back","draft":false,"unlisted":false,"tags":[],"version":"current","sidebarPosition":50,"frontMatter":{"sidebar_position":50},"sidebar":"tutorialSidebar","previous":{"title":"\u961f\u5217\u5934\u90e8\u5f39\u51fa (LCC.kvdb.queue.pop_front)","permalink":"/docs/XXTLanControl.lua/kvdb/queue/pop_front"},"next":{"title":"\u539f\u5b50\u79fb\u52a8\u961f\u5217\u5143\u7d20 (LCC.kvdb.queue.move)","permalink":"/docs/XXTLanControl.lua/kvdb/queue/move"}}');var r=l(4848),s=l(8453);const t={sidebar_position:50},c="\u961f\u5217\u5c3e\u90e8\u5f39\u51fa (LCC.kvdb.queue.pop_back)",d={},i=[{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 u(e){const n={blockquote:"blockquote",br:"br",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,s.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"\u961f\u5217\u5c3e\u90e8\u5f39\u51fa-lcckvdbqueuepop_back",children:"\u961f\u5217\u5c3e\u90e8\u5f39\u51fa (LCC.kvdb.queue.pop_back)"})}),"\n",(0,r.jsx)(n.h2,{id:"\u58f0\u660e",children:"\u58f0\u660e"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-lua",children:"value, err = LCC.kvdb.queue.pop_back(name, timeout?)\n"})}),"\n",(0,r.jsx)(n.h2,{id:"\u53c2\u6570",children:"\u53c2\u6570"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["name",(0,r.jsx)(n.br,{}),"\n","\u5b57\u7b26\u4e32\u578b\uff0c\u961f\u5217\u540d\u79f0\uff08\u975e\u7a7a\uff0c\u6700\u957f ",(0,r.jsx)(n.code,{children:"256"})," \u5b57\u8282\uff09"]}),"\n",(0,r.jsxs)(n.li,{children:["timeout",(0,r.jsx)(n.br,{}),"\n","\u6570\u503c\u578b\uff0c\u53ef\u9009\uff1b\u8bf7\u6c42\u8d85\u65f6\u65f6\u95f4\uff08\u79d2\uff09\uff0c\u9ed8\u8ba4 ",(0,r.jsx)(n.code,{children:"60"})]}),"\n"]}),"\n",(0,r.jsx)(n.h2,{id:"\u8fd4\u56de\u503c",children:"\u8fd4\u56de\u503c"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["value",(0,r.jsx)(n.br,{}),"\n","\u5b57\u7b26\u4e32\u578b\uff0c\u5f39\u51fa\u7684\u5143\u7d20\uff1b\u961f\u5217\u4e3a\u7a7a\u65f6\u4e3a ",(0,r.jsx)(n.code,{children:"nil"})]}),"\n",(0,r.jsxs)(n.li,{children:["err",(0,r.jsx)(n.br,{}),"\n","\u5b57\u7b26\u4e32\u578b\u6216 ",(0,r.jsx)(n.code,{children:"nil"}),"\uff0c\u4e3a\u7a7a\u6216\u4e0d\u5b58\u5728\u65f6\u8fd4\u56de ",(0,r.jsx)(n.code,{children:"'not found'"})]}),"\n"]}),"\n",(0,r.jsx)(n.h2,{id:"\u8bf4\u660e",children:"\u8bf4\u660e"}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsxs)(n.p,{children:["\u4ece\u961f\u5217\u5c3e\u90e8\u5f39\u51fa\u4e00\u4e2a\u5143\u7d20\u3002",(0,r.jsx)(n.br,{}),"\n","\u9002\u7528\u4e8e\u540e\u8fdb\u5148\u51fa\uff08LIFO\uff09\u7684\u6d88\u8d39\u573a\u666f\u3002"]}),"\n"]}),"\n",(0,r.jsx)(n.h2,{id:"\u793a\u4f8b",children:"\u793a\u4f8b"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-lua",children:'local value, err = LCC.kvdb.queue.pop_back("\u5f85\u5904\u7406\u4efb\u52a1")\nif value then\n    print("\u5904\u7406\u6700\u65b0\u4efb\u52a1:", value)\nend\n'})})]})}function a(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(u,{...e})}):u(e)}},8453:(e,n,l)=>{l.d(n,{R:()=>t,x:()=>c});var o=l(6540);const r={},s=o.createContext(r);function t(e){const n=o.useContext(s);return o.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:t(e.components),o.createElement(s.Provider,{value:n},e.children)}}}]);