1"use strict";(self.webpackChunkengula_website=self.webpackChunkengula_website||[]).push([["2037"],{7284:function(e,n,s){s.r(n),s.d(n,{default:()=>h});var r=s(2676),i=s(453);function l(e){let n=Object.assign({h1:"h1",a:"a",p:"p",strong:"strong",h2:"h2",ul:"ul",li:"li",em:"em",h3:"h3",blockquote:"blockquote",table:"table",thead:"thead",tr:"tr",th:"th",tbody:"tbody",td:"td",code:"code",ol:"ol"},(0,i.ah)(),e.components);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(n.h1,{id:"engula-客æ·ç«¯å
¼å®¹æ§æå",children:["Engula 客æ·ç«¯å
¼å®¹æ§æå",(0,r.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#engula-客æ·ç«¯å
¼å®¹æ§æå",children:"#"})]}),"\n",(0,r.jsxs)(n.p,{children:["Engula 被设计为 ",(0,r.jsx)(n.strong,{children:"Valkey/Redis 7.2 çâ峿å³ç¨âæ¿ä»£"}),"ï¼ç®æ æ¯å¨ä¸ç ´å Redis çæäºæä½æ§çåæä¸ï¼è®©åºç¨ä¸å®¢æ·ç«¯åºå¯ä»¥æ ç¼æ¥å
¥ã\næ¬æåé¢åå¼åè
说æå
¼å®¹æ§çå«ä¹ãå·²éªè¯ç客æ·ç«¯èå´ï¼ä»¥åå¦ä½ç¡®ä¿è¿ç§»åçè¡ä¸ºä¸è´ã"]}),"\n",(0,r.jsxs)(n.h2,{id:"åè®®ä¸-api-å
¼å®¹æ§",children:["åè®®ä¸ API å
¼å®¹æ§",(0,r.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#åè®®ä¸-api-å
¼å®¹æ§",children:"#"})]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"åè®®æ¯æ"}),"ï¼Engula å¯¹é½ ",(0,r.jsx)(n.strong,{children:"RESP2"})," ä¸ ",(0,r.jsx)(n.strong,{children:"RESP3"}),"ï¼è¦ç Valkey/Redis 7.2 主线å½ä»¤é¢ï¼å
¬å¼éªè¯è§ ",(0,r.jsx)(n.a,{href:"/proof-live",children:"/proof-live"}),"ã"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"é¶ä»£ç ä¿®æ¹"}),"ï¼å·²ç»ä½¿ç¨ Redis/Valkey 7.2 çåºç¨ï¼é常æ éä¿®æ¹ä»£ç æé
ç½®å³å¯è¿æ¥ Engulaã"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"Engula æ©å±"}),"ï¼é¨å Engula å¢å¼ºç¹æ§å¯è½æ æ³å¨åç Redis/Valkey ä¸è¿è¡ï¼å¦éå¯ç§»æ¤æ§ï¼è¯·é¿å
ä½¿ç¨ Redis/Valkey 7.2 å½ä»¤é¢ä¹å¤çè°ç¨ã"]}),"\n"]}),"\n",(0,r.jsxs)(n.h2,{id:"çæä¸è´æ§",children:["çæä¸è´æ§",(0,r.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#çæä¸è´æ§",children:"#"})]}),"\n",(0,r.jsx)(n.p,{children:"Engula ä¼ç´§å¯å¯¹é½ Valkey/Redis 7.2 çè¯ä¹ä¸è¡ä¸ºï¼å
æ¬ï¼"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"æ ¸å¿å½ä»¤"}),"ï¼CRUDãkey 管çä¸åç±»æ°æ®ç»ææä½"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"é群模å¼"}),"ï¼slot 管çãæææ´æ°ä¸éå®åè¯ä¹"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"Pub/Sub ä¸ Streams"}),"ï¼ä¸è´çæ¶æ¯åå䏿¶è´¹è
ç»è¡ä¸º"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"äºå¡ä¸èæ¬"}),"ï¼ç¸åçååæ§ãé离æ§ä¸æ§è¡è¯ä¹"]}),"\n"]}),"\n",(0,r.jsxs)(n.p,{children:["ä»»ä½å¯è§å¯å°çå·®å¼é½ä¼è¢«è®°å½ï¼å¹¶å¨å¯è¡èå´å
è¿è¡å
¼å®¹æ§ä¿®å¤ï¼ä»¥ä¿è¯ ",(0,r.jsx)(n.strong,{children:"å¯é¢æµç Redis è¡ä¸ºä¸è´æ§"}),"ã"]}),"\n",(0,r.jsxs)(n.h2,{id:"客æ·ç«¯åº",children:["客æ·ç«¯åº",(0,r.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#客æ·ç«¯åº",children:"#"})]}),"\n",(0,r.jsxs)(n.p,{children:["ç±äº Engula å¯¹é½ ",(0,r.jsx)(n.strong,{children:"Valkey/Redis 7.2 çåè®®ä¸ API"}),"ï¼å æ¤å¡æ¯æ¯æ Redis OSS 7.2 æ Valkey 7.2 å以ä¸ç客æ·ç«¯ï¼é常é½å¯ä»¥ç´æ¥ä¸ Engula äºæä½ã"]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"Valkey 客æ·ç«¯ç®å½"}),"ï¼",(0,r.jsx)(n.a,{href:"https://valkey.io/clients/",target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)(n.a,{href:"https://valkey.io/clients/",target:"_blank",rel:"noopener noreferrer",children:"https://valkey.io/clients/"})})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"Redis 客æ·ç«¯ç®å½"}),"ï¼",(0,r.jsx)(n.a,{href:"https://redis.io/clients",target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)(n.a,{href:"https://redis.io/clients",target:"_blank",rel:"noopener noreferrer",children:"https://redis.io/clients"})})]}),"\n"]}),"\n",(0,r.jsxs)(n.p,{children:["è¿äºç®å½å
å«åè¯è¨ç主æµå®¢æ·ç«¯ä¸å
¶ç¹æ§æ¯ææ
åµï¼ä¾å¦ ",(0,r.jsx)(n.em,{children:"read-from-replica"}),"ã",(0,r.jsx)(n.em,{children:"smart backoff"}),"ã",(0,r.jsx)(n.em,{children:"client-side caching"}
1)," çï¼ã\nåªè¦æä¸ªå®¢æ·ç«¯è½æ£ç¡®è¿æ¥ Valkey æ Redis 7.2ï¼é常就è½ä»¥ç¸åæ¹å¼è¿æ¥ Engulaã"]}),"\n",(0,r.jsxs)(n.h3,{id:"é«çº§å®¢æ·ç«¯ç¹æ§",children:["é«çº§å®¢æ·ç«¯ç¹æ§",(0,r.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#é«çº§å®¢æ·ç«¯ç¹æ§",children:"#"})]}),"\n",(0,r.jsx)(n.p,{children:"Engula æ¯æ Valkey/Redis 7.2 å®ä¹çé«çº§å®¢æ·ç«¯è¡ä¸ºãåªè¦ä½¿ç¨æ ååè®®å½ä»¤ï¼ä¸åè½åé常å¯äºæä½ï¼"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"Read from Replica"}),"ï¼ä»ä»èç¹è¯»å以åæ
è´è½½"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"Cluster-Aware SCAN"}),"ï¼è·¨é群èç¹çæ ç¼æ«æ"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"Client-Side Caching"}),"ï¼åºäºæå¡ç«¯åå©å¤±æçç¼åä¸è´æ§"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"æä¹
è¿æ¥æ± "}),"ï¼å¤ç¨è¿æ¥æåæ§è½"]}),"\n"]}),"\n",(0,r.jsxs)(n.blockquote,{children:["\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"æç¤ºï¼"})," é¨åç¹æ§éè¦å¨å®¢æ·ç«¯ä¾§å¼å¯é
ç½®æè¿è¡æ¶å¼å
³ã\n请åèå
·ä½å®¢æ·ç«¯çææ¡£è¿è¡è®¾ç½®ï¼Engula æä¾ç¸åºçæå¡ç«¯è½åæ¯æã"]}),"\n"]}),"\n",(0,r.jsxs)(n.h2,{id:"宿¹å·²éªè¯å®¢æ·ç«¯",children:["宿¹å·²éªè¯å®¢æ·ç«¯",(0,r.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#宿¹å·²éªè¯å®¢æ·ç«¯",children:"#"})]}),"\n",(0,r.jsx)(n.p,{children:"Engula å¨ CI æµæ°´çº¿ä¸æç»å¯¹ä¸»æµ Redis/Valkey 客æ·ç«¯è¿è¡å
¼å®¹æ§éªè¯ã尽管å 乿æ Redis/Valkey 7.2 å
¼å®¹å®¢æ·ç«¯é½åºå½å¯ä»¥æ£å¸¸å·¥ä½ï¼ä½ä»¥ä¸å®¢æ·ç«¯å·²è¢«æç¡®éªè¯ï¼"}),"\n",(0,r.jsxs)(n.table,{children:["\n",(0,r.jsxs)(n.thead,{children:["\n",(0,r.jsxs)(n.tr,{children:["\n",(0,r.jsx)(n.th,{children:"è¯è¨"}),"\n",(0,r.jsx)(n.th,{children:"常è§å·²éªè¯å®¢æ·ç«¯"}),"\n"]}),"\n"]}),"\n",(0,r.jsxs)(n.tbody,{children:["\n",(0,r.jsxs)(n.tr,{children:["\n",(0,r.jsx)(n.td,{children:(0,r.jsx)(n.strong,{children:"Go"})}),"\n",(0,r.jsxs)(n.td,{children:[(0,r.jsx)(n.code,{children:"go-redis"}),", ",(0,r.jsx)(n.code,{children:"valkey-go"})]}),"\n"]}),"\n",(0,r.jsxs)(n.tr,{children:["\n",(0,r.jsx)(n.td,{children:(0,r.jsx)(n.strong,{children:"Java"})}),"\n",(0,r.jsxs)(n.td,{children:[(0,r.jsx)(n.code,{children:"jedis"}),", ",(0,r.jsx)(n.code,{children:"valkey-java"}),", ",(0,r.jsx)(n.code,{children:"redisson"})]}),"\n"]}),"\n",(0,r.jsxs)(n.tr,{children:["\n",(0,r.jsx)(n.td,{children:(0,r.jsx)(n.strong,{children:"JavaScript / TypeScript"})}),"\n",(0,r.jsxs)(n.td,{children:[(0,r.jsx)(n.code,{children:"node-redis"}),", ",(0,r.jsx)(n.code,{children:"iovalkey"})]}),"\n"]}),"\n",(0,r.jsxs)(n.tr,{children:["\n",(0,r.jsx)(n.td,{children:(0,r.jsx)(n.strong,{children:"Python"})}),"\n",(0,r.jsxs)(n.td,{children:[(0,r.jsx)(n.code,{children:"redis-py"}),", ",(0,r.jsx)(n.code,{children:"valkey-py"})]}),"\n"]}),"\n",(0,r.jsxs)(n.tr,{children:["\n",(0,r.jsx)(n.td,{children:(0,r.jsx)(n.strong,{children:"PHP"})}),"\n",(0,r.jsxs)(n.td,{children:[(0,r.jsx)(n.code,{children:"phpredis"}),", ",(0,r.jsx)(n.code,{children:"predis"})]}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:"妿æ¨ä½¿ç¨ç客æ·ç«¯æªå¨å表ä¸ï¼ä½å£°ææ¯æ Valkey/Redis 7.2ï¼åé常ä¹åºå½å¯ç¨ã\nå¦éå°å¼å¸¸è¡ä¸ºï¼è¯·åé¦ç»æä»¬ï¼ä»¥ä¾¿è¯ä¼°å¹¶çº³å
¥éªè¯è¦çéã"}),"\n",(0,r.jsxs)(n.h2,{id:"è¿ç§»å»ºè®®",children:["è¿ç§»å»ºè®®",(0,r.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#è¿ç§»å»ºè®®",children:"#"})]}),"\n",(0,r.jsx)(n.p,{children:"ä» Valkey/Redis 7.2 è¿ç§»å° Engula ä¸è¬éå¸¸ç´æ¥ï¼"}),"\n",(0,r.jsxs)(n.ol,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"ä¿æç¸åè¿æ¥é
ç½®"}),"ï¼è®¤è¯ãTLSãè¶
æ¶ãè¿æ¥æ± çï¼ã"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"åæ¶å级客æ·ç«¯çæ¬"}),"ï¼ä»¥è·å¾ Redis/Valkey 7.2 è¯ä¹ç¸å
³çææ°ä¿®å¤ã"]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"æå®¢æ·ç«¯ææ¡£å¯ç¨ç¹æ§"}),"ï¼å¦ ",(0,r.jsx)(n.em,{children:"client-side caching"}),"ã",(0,r.jsx)(n.em,{children:"read-from-replica"}),"ãæ ",(0,r.jsx)(n.em,{children:"Pub/Sub èªå¨éè¿"}),"ã\nEngula ä¼å¹é
è¿äºç¹æ§å¨æå¡ç«¯ä¾§ç颿è¡ä¸ºã"]}),"\n"]}),"\n",(0,r.jsxs)(n.h2,{id:"å
¼å®¹æ§æµè¯è¦ç",children:["å
¼å®¹æ§æµè¯è¦ç",(0,r.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#å
¼å®¹æ§æµè¯è¦ç",children:"#"})]}),"\n",(0,r.jsx)(n.p,{children:"Engula ä¼å¯¹ä¸»æµ Redis 客æ·ç«¯ SDK åèªå¨åå
¼å®¹æ§éªè¯ï¼è¦çï¼"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:"è¿æ¥å»ºç«ä¸å½ä»¤æ§è¡"}),"\n",(0,r.jsx)(n.li,{children:"æ°æ®ç»æä¸äºå¡"}),"\n",(0,r.jsx)(n.li,{children:"Pub/Sub ä¸ Streams"}),"\n",(0,r.jsx)(n.li,{children:"Pipeline ä¸ Lua èæ¬"}),"\n",(0,r.jsx)(n.li,{children:"é群模å¼å¤ç"}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:"æ´å¤ä¿¡æ¯ï¼"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:(0,r.jsx)(n.a,{href:"/zh/docs/tools/clientcompat",children:"Engula ClientCompat"})}),"ï¼ç¨ Docker è¿è¡ç¤¾åºå®¢æ·ç«¯å®æ¹æµè¯éï¼æ¥çæµè¯æ¹æ³ãè¦çèå´ä¸æ¥åç»æã"]}),"\n"]}),"\n",(0,r.jsx)(n.p,{children:"Engula å¢é伿ç»å®åæµè¯å¥ä»¶ï¼åæ¶åç°å¹¶ä¿®å¤å·®å¼ã欢è¿ç¤¾åºè´¡ç®ä¸ PR æ¥æ©å±è¦çèå´ã"}),"\n",(0,r.jsxs)(n.h2,{id:"è·å帮å©",children:["è·å帮å©",(0,r.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#è·å帮å©",children:"#"})]}),"\n",(0,r.jsx)(n.p,{children:"妿æ¨éå°å®¢æ·ç«¯è¡ä¸ºå¼å¸¸æåè®®å¤çå·®å¼ï¼"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:"æäº¤å
å«çæ¬ä¿¡æ¯ãé
ç½®ä¸æå°å¤ç°ç issueã"}),"\n",(0,r.jsx)(n.li,{children:"æ¥ç客æ·ç«¯ç issue tracker æ release notesï¼ç¡®è®¤æ¯å¦åå¨ Redis/Valkey 7.2 ç¸å
³å·²ç¥é®é¢ä¸ä¿®å¤ã"}),"\n",(0,r.jsxs)(n.li,{children:["éè¿ ",(0,r.jsx)(n.a,{href:"mailto:[email protected]",children:"[email protected]"})," èç³» ",(0,r.jsx)(n.strong,{children:"Engula å¢é"}),"ï¼æä»¬ä¼ä¸å®¢æ·ç«¯ç»´æ¤è
åä½ç¡®ä¿ä¸è´æ§ä¸äºæä½ã"]}),"\n"]}),"\n",(0,r.jsxs)(n.h3,{id:"æ»ç»",children:["æ»ç»",(0,r.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#æ»ç»",children:"#"})]}),"\n",(0,r.jsxs)(n.p,{children:["ä¸å¥è¯ï¼",(0,r.jsx)(n.strong,{children:"è½è· Valkey æ Redis 7.2ï¼å°±è½è· Engulaã"}),"\nä»å®æ¹ Valkey/Redis 客æ·ç«¯ç®å½éæ©æ¨å好ç客æ·ç«¯ï¼å³å¯æ ç¼ä½¿ç¨ Engula ç髿§è½ä¸é«å
åæçæ¶æã"]})]})}function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,i.ah)(),e.components);return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}let h=d;d.__RSPRESS_PAGE_META={},d.__RSPRESS_PAGE_META["zh%2Fdocs%2Fgetting-started%2Fclient.md"]={toc:[{text:"åè®®ä¸ API å
¼å®¹æ§",id:"åè®®ä¸-api-å
¼å®¹æ§",depth:2},{text:"çæä¸è´æ§",id:"çæä¸è´æ§",depth:2},{text:"客æ·ç«¯åº",id:"客æ·ç«¯åº",depth:2},{text:"é«çº§å®¢æ·ç«¯ç¹æ§",id:"é«çº§å®¢æ·ç«¯ç¹æ§",depth:3},{text:"宿¹å·²éªè¯å®¢æ·ç«¯",id:"宿¹å·²éªè¯å®¢æ·ç«¯",depth:2},{text:"è¿ç§»å»ºè®®",id:"è¿ç§»å»ºè®®",depth:2},{text:"å
¼å®¹æ§æµè¯è¦ç",id:"å
¼å®¹æ§æµè¯è¦ç",depth:2},{text:"è·å帮å©",id:"è·å帮å©",depth:2},{text:"æ»ç»",id:"æ»ç»",depth:3}],title:"Engula 客æ·ç«¯å
¼å®¹æ§æå",headingTitle:"Engula 客æ·ç«¯å
¼å®¹æ§æå",frontmatter:{}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.