"use strict";(self.webpackChunkdocs_site=self.webpackChunkdocs_site||[]).push([[6212],{1677:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>l,default:()=>d,frontMatter:()=>a,metadata:()=>r,toc:()=>u});const r=JSON.parse('{"id":"XXTLanControl.lua/kvdb/queue/README","title":"Queue APIs","description":"Import Module","source":"@site/i18n/en/docusaurus-plugin-content-docs/current/XXTLanControl.lua/kvdb/queue/README.md","sourceDirName":"XXTLanControl.lua/kvdb/queue","slug":"/XXTLanControl.lua/kvdb/queue/","permalink":"/docs/en/XXTLanControl.lua/kvdb/queue/","draft":false,"unlisted":false,"tags":[],"version":"current","sidebarPosition":10,"frontMatter":{"sidebar_position":10},"sidebar":"tutorialSidebar","previous":{"title":"Clear Dictionary (LCC.kvdb.dict.clear)","permalink":"/docs/en/XXTLanControl.lua/kvdb/dict/clear"},"next":{"title":"Push To Queue Front (LCC.kvdb.queue.push_front)","permalink":"/docs/en/XXTLanControl.lua/kvdb/queue/push_front"}}');var o=t(4848),s=t(8453);const a={sidebar_position:10},l="Queue APIs",i={},u=[{value:"Import Module",id:"import-module",level:2},{value:"Before You Start",id:"before-you-start",level:2},{value:"Shared Constraints",id:"shared-constraints",level:2}];function c(e){const n={code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"queue-apis",children:"Queue APIs"})}),"\n",(0,o.jsx)(n.h2,{id:"import-module",children:"Import Module"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-lua",children:'local LCC = require("XXTLanControl")\n'})}),"\n",(0,o.jsx)(n.h2,{id:"before-you-start",children:"Before You Start"}),"\n",(0,o.jsxs)(n.p,{children:["Before using any helper, ensure you either invoke ",(0,o.jsx)(n.code,{children:"LCC.set_api_url()"})," or launch the script from the controller, and always complete initialisation by calling ",(0,o.jsx)(n.code,{children:"LCC.connect()"}),"."]}),"\n",(0,o.jsx)(n.h2,{id:"shared-constraints",children:"Shared Constraints"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:["All queue name parameters such as ",(0,o.jsx)(n.code,{children:"name"}),", ",(0,o.jsx)(n.code,{children:"from_name"}),", and ",(0,o.jsx)(n.code,{children:"to_name"})," must be non-empty strings and no longer than ",(0,o.jsx)(n.code,{children:"256"})," bytes."]}),"\n",(0,o.jsxs)(n.li,{children:["All value parameters such as ",(0,o.jsx)(n.code,{children:"value"})," must be valid UTF-8 strings; batch pushes accept a continuous string array."]}),"\n"]})]})}function d(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(c,{...e})}):c(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>a,x:()=>l});var r=t(6540);const o={},s=r.createContext(o);function a(e){const n=r.useContext(s);return r.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:a(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]);