"use strict";(self.webpackChunkdocs_site=self.webpackChunkdocs_site||[]).push([[1530],{8453:(e,n,t)=>{t.d(n,{R:()=>i,x:()=>a});var r=t(6540);const o={},s=r.createContext(o);function i(e){const n=r.useContext(s);return r.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:i(e.components),r.createElement(s.Provider,{value:n},e.children)}},9353:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>a,default:()=>u,frontMatter:()=>i,metadata:()=>r,toc:()=>d});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":"Move With Overwrite-And-Merge (LCC.web_file.move_overwrite_merge)","permalink":"/docs/en/XXTLanControl.lua/web-file/move_overwrite_merge"},"next":{"title":"Dictionary APIs","permalink":"/docs/en/XXTLanControl.lua/kvdb/dict/"}}');var o=t(4848),s=t(8453);const i={sidebar_position:10},a="KVDB Overview",c={},d=[];function l(e){const n={blockquote:"blockquote",code:"code",h1:"h1",header:"header",li:"li",p:"p",strong:"strong",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:"kvdb-overview",children:"KVDB Overview"})}),"\n",(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.code,{children:"LCC.kvdb"})," wraps the control center's key-value database:"]}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:[(0,o.jsx)(n.strong,{children:"queue"}),": FIFO queue storage with push, pop, move, and bulk removal operations"]}),"\n",(0,o.jsxs)(n.li,{children:[(0,o.jsx)(n.strong,{children:"dict"}),": dictionary storage with write, copy, increment, and clear helpers"]}),"\n"]}),"\n",(0,o.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,o.jsx)(n.code,{children:"LCC.kvdb"}),"."]}),"\n",(0,o.jsxs)(n.blockquote,{children:["\n",(0,o.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,s.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}}}]);