"use strict";(self.webpackChunkdocs_site=self.webpackChunkdocs_site||[]).push([[1530],{8453:(e,n,t)=>{t.d(n,{R:()=>a,x:()=>i});var r=t(6540);const s={},o=r.createContext(s);function a(e){const n=r.useContext(o);return r.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),r.createElement(o.Provider,{value:n},e.children)}},9353:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>i,default:()=>u,frontMatter:()=>a,metadata:()=>r,toc:()=>l});const r=JSON.parse('{"id":"XXTLanControl.lua/kvdb/README","title":"KVDB Overview","description":"LCC.kvdb wraps the control center\'s key-value database:","source":"@site/i18n/en/docusaurus-plugin-content-docs/current/XXTLanControl.lua/kvdb/README.md","sourceDirName":"XXTLanControl.lua/kvdb","slug":"/XXTLanControl.lua/kvdb/","permalink":"/docs/en/XXTLanControl.lua/kvdb/","draft":false,"unlisted":false,"tags":[],"version":"current","sidebarPosition":10,"frontMatter":{"sidebar_position":10},"sidebar":"tutorialSidebar","previous":{"title":"Cancel Current Script Requests (LCC.assist.cancel_all)","permalink":"/docs/en/XXTLanControl.lua/assist/cancel_all"},"next":{"title":"Dictionary APIs","permalink":"/docs/en/XXTLanControl.lua/kvdb/dict/"}}');var s=t(4848),o=t(8453);const a={sidebar_position:10},i="KVDB Overview",c={},l=[];function d(e){const n={blockquote:"blockquote",code:"code",h1:"h1",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,o.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"kvdb-overview",children:"KVDB Overview"})}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"LCC.kvdb"})," wraps the control center's key-value database:"]}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"queue"}),": FIFO queue storage with push, pop, move, and bulk removal operations"]}),"\n",(0,s.jsxs)(n.li,{children:[(0,s.jsx)(n.strong,{children:"dict"}),": dictionary storage with write, copy, increment, and clear helpers"]}),"\n"]}),"\n",(0,s.jsxs)(n.p,{children:["If you already maintain queues, dictionaries, or task state in the UI, your scripts can continue working with that data directly through ",(0,s.jsx)(n.code,{children:"LCC.kvdb"}),"."]}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsx)(n.p,{children:"Queue names, dictionary names, and keys may contain Chinese characters. The module handles the validation and encoding required by the server."}),"\n"]})]})}function u(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}}}]);