{"id":1258,"date":"2021-07-30T14:22:33","date_gmt":"2021-07-30T06:22:33","guid":{"rendered":"https:\/\/egonlin.com\/?p=1258"},"modified":"2024-04-06T16:46:25","modified_gmt":"2024-04-06T08:46:25","slug":"%e7%ac%ac%e4%ba%8c%e8%8a%82%ef%bc%9a%e5%93%88%e5%b8%8c%e6%95%b0%e6%8d%ae%e7%bb%93%e6%9e%84","status":"publish","type":"post","link":"https:\/\/egonlin.com\/?p=1258","title":{"rendered":"\u7b2c\u4e8c\u8282\uff1a\u54c8\u5e0c\u6570\u636e\u7ed3\u6784"},"content":{"rendered":"<h1>redis\u54c8\u5e0c\u6570\u636e\u7ed3\u6784<\/h1>\n<h2>\u4e00\u3001\u7279\u70b9<\/h2>\n<pre><code class=\"language-bash\">key     value \nstu     id:101 name:hu age:24<\/code><\/pre>\n<h2>\u4e8c\u3001\u5e94\u7528\u573a\u666f<\/h2>\n<pre><code class=\"language-bash\">\u6570\u636e\u5e93\u7f13\u5b58(\u6bcf\u2f00\u4e2a\u8868\u2fa5\u6bcf\u2f00\u2f8f\u90fd\u662f\u2f00\u4e2a\u952e\u503c\u5bf9)<\/code><\/pre>\n<h2>\u4e09\u3001\u4f7f\u7528<\/h2>\n<h3>1\u3001HSET\uff1a\u5199\u5165\u6570\u636e<\/h3>\n<pre><code class=\"language-bash\">127.0.0.1:6379&gt; HSET people name xiaowu sex man add shanghai\n3<\/code><\/pre>\n<h3>2\u3001HGET\uff1a\u83b7\u53d6\u6570\u636e<\/h3>\n<pre><code class=\"language-bash\">127.0.0.1:6379&gt; HGET people name\nxiaowu\n127.0.0.1:6379&gt; HGET people sex\nman<\/code><\/pre>\n<h3>3\u3001HSET\uff1a\u4fee\u6539\u6570\u636e<\/h3>\n<pre><code class=\"language-bash\">127.0.0.1:6379&gt; HSET people name wuxiaoyuan\n0\n127.0.0.1:6379&gt; HGET people name\nwuxiaoyuan<\/code><\/pre>\n<h3>4\u3001HDEL\uff1a\u5220\u9664\u6570\u636e<\/h3>\n<pre><code class=\"language-bash\">127.0.0.1:6379&gt; HDEL people name\n1\n127.0.0.1:6379&gt; HGET people name\n\n127.0.0.1:6379&gt; <\/code><\/pre>\n<h3>5\u3001DEL\uff1a\u5220\u9664\u6240\u6709\u6570\u636e<\/h3>\n<pre><code class=\"language-bash\">127.0.0.1:6379&gt; DEL people\n1\n127.0.0.1:6379&gt; HGET people sex\n\n127.0.0.1:6379&gt; HGET people add\n\n127.0.0.1:6379&gt; <\/code><\/pre>\n<h3>6\u3001HMGET\uff1a\u83b7\u53d6\u591a\u4e2a\u503c<\/h3>\n<pre><code class=\"language-bash\">127.0.0.1:6379&gt; HSET people name wuxiaoyuan sex man add shanghai zhuji linyi\n4\n127.0.0.1:6379&gt; HMGET people name add zhuji\nwuxiaoyuan\nshanghai\nlinyi\n127.0.0.1:6379&gt; <\/code><\/pre>\n<h3>7\u3001HGETALL\uff1a\u83b7\u53d6\u6240\u6709key\u548cvalue<\/h3>\n<pre><code class=\"language-bash\">127.0.0.1:6379&gt; HGETALL people\nname\nwuxiaoyuan\nsex\nman\nadd\nshanghai\nzhuji\nlinyi<\/code><\/pre>\n<h3>8\u3001HKEYS\uff1a\u83b7\u53d6\u6240\u6709key<\/h3>\n<pre><code class=\"language-bash\">127.0.0.1:6379&gt; HKEYS people\nname\nsex\nadd\nzhuji<\/code><\/pre>\n<h3>9\u3001HVALS\uff1a\u83b7\u53d6\u6240\u6709\u7684value<\/h3>\n<pre><code class=\"language-bash\">127.0.0.1:6379&gt; HVALS people\nwuxiaoyuan\nman\nshanghai\nlinyi<\/code><\/pre>\n<h3>10\u3001\u8ba1\u6570<\/h3>\n<h4>1\uff09HINCRBY\uff1a\u589e\u52a0<\/h4>\n<p><\/p><div id=\"rml_readmorelogin_placeholder\" style=\"position:relative;\"><div id=\"rml_fade_content\" style=\"position: absolute;\r\ntop:-10em;\r\nwidth:100%;\r\nheight:10em;\r\nbackground: -webkit-linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\r\nbackground-image: -moz-linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\r\nbackground-image: -o-linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\r\nbackground-image: linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\r\nbackground-image: -ms-linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\"><\/div><div class=\"wpf-controller aru_rml_from_in_post\" style=\"background-color:#eeeeee;border:5px solid #cce6ff;\" id=\"ARU_ReadMoreLogin_ReadMoreLoginController\"><h2 id=\"Header\">\u67e5\u770b\u66f4\u591a<\/h2><div id=\"Message\"><p>\u8054\u7cfb\u7ba1\u7406\u5458\u5fae\u4fe1tutu19192010\uff0c\u6ce8\u518c\u8d26\u53f7<\/p>\n<\/div><div id=\"StatusBarHeader\"><\/div><form id=\"ARU_ReadMoreLogin_ReadMoreLoginController\"><input name=\"post_id\" value=\"1258\" type=\"hidden\"\/><input name=\"_init_callback\" value=\"InitLogin\" type=\"hidden\"\/><input name=\"post_id\" value=\"1258\" type=\"hidden\"\/><input name=\"rt_ype\" value=\"1\" type=\"hidden\"\/><input name=\"nonce\" value=\"8fd4a62e3a\" type=\"hidden\"\/><input name=\"_wpnonce\" value=\"f48666364f\" type=\"hidden\"\/><input name=\"_controller\" value=\"ARU_ReadMoreLogin\\ReadMoreLoginController\" type=\"hidden\"\/><input name=\"_proxy_controller\" value=\"ARU_ReadMoreLogin\\ReadMoreLoginController\" type=\"hidden\"\/><input name=\"_view\" value=\"ARU_ReadMoreLogin\\ReadMoreLoginView\" type=\"hidden\"\/><table class=\"wpf-table-placeholder\"><tbody class=\"wpf-table-placeholder\"><tr class=\"wpf-table-placeholder\"><td class=\"wpf-table-placeholder-input\" width=\"400px\"><table class=\"wpf-table-placeholder\"><tbody class=\"wpf-table-placeholder\"><tr class=\"wpf-table-placeholder\"><th class=\"wpf-table-placeholder-input\"><label class=\"wpf-label\">Username:<\/label><\/th><\/tr><tr class=\"wpf-table-placeholder\"><td class=\"wpf-table-placeholder-input\"><input class=\"regular-text text_input\" name=\"username\" value=\"\" type=\"text\"\/><\/td><\/tr><tr class=\"wpf-table-placeholder\"><th class=\"wpf-table-placeholder-input\"><label class=\"wpf-label\">Password:<\/label><\/th><\/tr><tr class=\"wpf-table-placeholder\"><td class=\"wpf-table-placeholder-input\"><input class=\"regular-text text_input\" name=\"password\" value=\"\" type=\"password\"\/><\/td><\/tr><\/tbody><\/table><p class=\"wpf-table-placeholder submit\"><button class=\"wp_plugin_framework_ajax_button\" type=\"button\" style=\"background-color:#4D90FE;;color:#ffffff;;border:1px solid #3079ed;\" name=\"_event\" value=\"ButtonLogin\">Log in<\/button><\/p><\/td><td class=\"wpf-table-placeholder-input\"><\/td><\/tr><\/tbody><\/table><\/form><div id=\"ButtonStartRegister\"><a href=\"https:\/\/egonlin.com\/wp-login.php?action=register\">Register<\/a><\/div><div id=\"Link1\"><a href=\"https:\/\/egonlin.com\/wp-login.php?action=lostpassword\">Forgotten username or password?<\/a><\/div><div id=\"StatusBarFooter\"><\/div><\/div><\/div><div id=aru_remaining_content><\/div>","protected":false},"excerpt":{"rendered":"<p>redis\u54c8\u5e0c\u6570\u636e\u7ed3\u6784 \u4e00\u3001\u7279\u70b9 key value stu id:101 name:hu age:24 \u4e8c\u3001 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[21,19,159,22,160,20],"_links":{"self":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/posts\/1258"}],"collection":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1258"}],"version-history":[{"count":1,"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/posts\/1258\/revisions"}],"predecessor-version":[{"id":9940,"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/posts\/1258\/revisions\/9940"}],"wp:attachment":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}