"use strict";(self.webpackChunkdocs_site=self.webpackChunkdocs_site||[]).push([[4925],{6928:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>o,contentTitle:()=>s,default:()=>u,frontMatter:()=>d,metadata:()=>c,toc:()=>l});const c=JSON.parse('{"id":"XXTLanControl.lua/kvdb/dict/README","title":"Dict \u8bcd\u5178\u63a5\u53e3","description":"\u5f15\u5165\u6a21\u5757","source":"@site/docs/XXTLanControl.lua/kvdb/dict/README.md","sourceDirName":"XXTLanControl.lua/kvdb/dict","slug":"/XXTLanControl.lua/kvdb/dict/","permalink":"/docs/XXTLanControl.lua/kvdb/dict/","draft":false,"unlisted":false,"tags":[],"version":"current","sidebarPosition":10,"frontMatter":{"sidebar_position":10},"sidebar":"tutorialSidebar","previous":{"title":"KVDB \u6570\u636e\u64cd\u4f5c","permalink":"/docs/XXTLanControl.lua/kvdb/"},"next":{"title":"\u5199\u5165\u5e76\u8fd4\u56de\u539f\u503c (LCC.kvdb.dict.put)","permalink":"/docs/XXTLanControl.lua/kvdb/dict/put"}}');var i=t(4848),r=t(8453);const d={sidebar_position:10},s="Dict \u8bcd\u5178\u63a5\u53e3",o={},l=[{value:"\u5f15\u5165\u6a21\u5757",id:"\u5f15\u5165\u6a21\u5757",level:2},{value:"\u5f00\u59cb\u4e4b\u524d",id:"\u5f00\u59cb\u4e4b\u524d",level:2},{value:"\u901a\u7528\u7ea6\u675f",id:"\u901a\u7528\u7ea6\u675f",level:2}];function a(e){const n={code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,r.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.header,{children:(0,i.jsx)(n.h1,{id:"dict-\u8bcd\u5178\u63a5\u53e3",children:"Dict \u8bcd\u5178\u63a5\u53e3"})}),"\n",(0,i.jsx)(n.h2,{id:"\u5f15\u5165\u6a21\u5757",children:"\u5f15\u5165\u6a21\u5757"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-lua",children:'local LCC = require("XXTLanControl")\n'})}),"\n",(0,i.jsx)(n.h2,{id:"\u5f00\u59cb\u4e4b\u524d",children:"\u5f00\u59cb\u4e4b\u524d"}),"\n",(0,i.jsxs)(n.p,{children:["\u4f7f\u7528\u4efb\u4f55\u63a5\u53e3\u524d\uff0c\u8bf7\u786e\u4fdd\u5df2\u7ecf\u8c03\u7528 ",(0,i.jsx)(n.code,{children:"LCC.set_api_url()"})," \u6216\u4ece\u4e2d\u63a7\u542f\u52a8\u811a\u672c\uff0c\u5e76\u6267\u884c ",(0,i.jsx)(n.code,{children:"LCC.connect()"})," \u5b8c\u6210\u521d\u59cb\u5316\u3002"]}),"\n",(0,i.jsx)(n.h2,{id:"\u901a\u7528\u7ea6\u675f",children:"\u901a\u7528\u7ea6\u675f"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["\u6240\u6709\u8bcd\u5178\u540d\u79f0\u53c2\u6570\uff08\u5982 ",(0,i.jsx)(n.code,{children:"name"}),"\u3001",(0,i.jsx)(n.code,{children:"src_name"}),"\u3001",(0,i.jsx)(n.code,{children:"dst_name"}),"\uff09\u90fd\u5fc5\u987b\u4e3a\u975e\u7a7a\u5b57\u7b26\u4e32\uff0c\u4e14\u957f\u5ea6\u4e0d\u8d85\u8fc7 ",(0,i.jsx)(n.code,{children:"256"})," \u5b57\u8282\u3002"]}),"\n",(0,i.jsxs)(n.li,{children:["\u6240\u6709\u952e\u540d\u53c2\u6570\uff08\u5982 ",(0,i.jsx)(n.code,{children:"key"}),"\u3001",(0,i.jsx)(n.code,{children:"src_key"}),"\u3001",(0,i.jsx)(n.code,{children:"dst_key"}),"\uff09\u90fd\u5fc5\u987b\u4e3a\u975e\u7a7a\u4e14\u5408\u6cd5 UTF-8 \u7684\u5b57\u7b26\u4e32\u3002"]}),"\n",(0,i.jsxs)(n.li,{children:["\u6240\u6709\u5199\u5165\u7c7b\u503c\u53c2\u6570\uff08\u5982 ",(0,i.jsx)(n.code,{children:"value"}),"\uff09\u90fd\u5fc5\u987b\u4e3a\u5408\u6cd5 UTF-8 \u7684\u5b57\u7b26\u4e32\u3002"]}),"\n"]})]})}function u(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(a,{...e})}):a(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>d,x:()=>s});var c=t(6540);const i={},r=c.createContext(i);function d(e){const n=c.useContext(r);return c.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function s(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:d(e.components),c.createElement(r.Provider,{value:n},e.children)}}}]);