{"id":265,"date":"2023-02-24T06:21:21","date_gmt":"2023-02-23T22:21:21","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=265"},"modified":"2023-02-24T06:21:21","modified_gmt":"2023-02-23T22:21:21","slug":"redis-stream","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/24\/redis-stream\/","title":{"rendered":"Redis Stream"},"content":{"rendered":"<h2>Redis Stream<\/h2>\n<p>Redis Stream \u662f Redis 5.0 \u7248\u672c\u65b0\u589e\u52a0\u7684\u6570\u636e\u7ed3\u6784\u3002<\/p>\n<p>Redis Stream \u4e3b\u8981\u7528\u4e8e\u6d88\u606f\u961f\u5217\uff08MQ\uff0cMessage Queue\uff09\uff0cRedis \u672c\u8eab\u662f\u6709\u4e00\u4e2a Redis \u53d1\u5e03\u8ba2\u9605 (pub\/sub) \u6765\u5b9e\u73b0\u6d88\u606f\u961f\u5217\u7684\u529f\u80fd\uff0c\u4f46\u5b83\u6709\u4e2a\u7f3a\u70b9\u5c31\u662f\u6d88\u606f\u65e0\u6cd5\u6301\u4e45\u5316\uff0c\u5982\u679c\u51fa\u73b0\u7f51\u7edc\u65ad\u5f00\u3001Redis \u5b95\u673a\u7b49\uff0c\u6d88\u606f\u5c31\u4f1a\u88ab\u4e22\u5f03\u3002<\/p>\n<p><!-- more --><\/p>\n<p>\u7b80\u5355\u6765\u8bf4\u53d1\u5e03\u8ba2\u9605 (pub\/sub) \u53ef\u4ee5\u5206\u53d1\u6d88\u606f\uff0c\u4f46\u65e0\u6cd5\u8bb0\u5f55\u5386\u53f2\u6d88\u606f\u3002<\/p>\n<p>\u800c Redis Stream \u63d0\u4f9b\u4e86\u6d88\u606f\u7684\u6301\u4e45\u5316\u548c\u4e3b\u5907\u590d\u5236\u529f\u80fd\uff0c\u53ef\u4ee5\u8ba9\u4efb\u4f55\u5ba2\u6237\u7aef\u8bbf\u95ee\u4efb\u4f55\u65f6\u523b\u7684\u6570\u636e\uff0c\u5e76\u4e14\u80fd\u8bb0\u4f4f\u6bcf\u4e00\u4e2a\u5ba2\u6237\u7aef\u7684\u8bbf\u95ee\u4f4d\u7f6e\uff0c\u8fd8\u80fd\u4fdd\u8bc1\u6d88\u606f\u4e0d\u4e22\u5931\u3002<\/p>\n<p>Redis Stream \u7684\u7ed3\u6784\u5982\u4e0b\u6240\u793a\uff0c\u5b83\u6709\u4e00\u4e2a\u6d88\u606f\u94fe\u8868\uff0c\u5c06\u6240\u6709\u52a0\u5165\u7684\u6d88\u606f\u90fd\u4e32\u8d77\u6765\uff0c\u6bcf\u4e2a\u6d88\u606f\u90fd\u6709\u4e00\u4e2a\u552f\u4e00\u7684 ID \u548c\u5bf9\u5e94\u7684\u5185\u5bb9\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.yezhou.me\/AppBlog\/images\/\u6570\u636e\u5e93\/Redis%20Stream%20\u7ed3\u6784.png\" alt=\"Redis Stream \u7ed3\u6784\" \/><\/p>\n<p>\u6bcf\u4e2a Stream \u90fd\u6709\u552f\u4e00\u7684\u540d\u79f0\uff0c\u5b83\u5c31\u662f Redis \u7684 key\uff0c\u5728\u6211\u4eec\u9996\u6b21\u4f7f\u7528 xadd \u6307\u4ee4\u8ffd\u52a0\u6d88\u606f\u65f6\u81ea\u52a8\u521b\u5efa\u3002<\/p>\n<p><strong>\u4e0a\u56fe\u89e3\u6790<\/strong>\uff1a<\/p>\n<ul>\n<li><code>Consumer Group<\/code>\uff1a\u6d88\u8d39\u7ec4\uff0c\u4f7f\u7528 XGROUP CREATE \u547d\u4ee4\u521b\u5efa\uff0c\u4e00\u4e2a\u6d88\u8d39\u7ec4\u6709\u591a\u4e2a\u6d88\u8d39\u8005(Consumer)<\/li>\n<li><code>last_delivered_id<\/code>\uff1a\u6e38\u6807\uff0c\u6bcf\u4e2a\u6d88\u8d39\u7ec4\u4f1a\u6709\u4e2a\u6e38\u6807 last_delivered_id\uff0c\u4efb\u610f\u4e00\u4e2a\u6d88\u8d39\u8005\u8bfb\u53d6\u4e86\u6d88\u606f\u90fd\u4f1a\u4f7f\u6e38\u6807 last_delivered_id \u5f80\u524d\u79fb\u52a8<\/li>\n<li><code>pending_ids<\/code>\uff1a\u6d88\u8d39\u8005(Consumer)\u7684\u72b6\u6001\u53d8\u91cf\uff0c\u4f5c\u7528\u662f\u7ef4\u62a4\u6d88\u8d39\u8005\u7684\u672a\u786e\u8ba4\u7684 id\u3002pending_ids \u8bb0\u5f55\u4e86\u5f53\u524d\u5df2\u7ecf\u88ab\u5ba2\u6237\u7aef\u8bfb\u53d6\u7684\u6d88\u606f\uff0c\u4f46\u662f\u8fd8\u6ca1\u6709 ack (Acknowledge character\uff1a\u786e\u8ba4\u5b57\u7b26\uff09<\/li>\n<\/ul>\n<p><strong>\u6d88\u606f\u961f\u5217\u76f8\u5173\u547d\u4ee4<\/strong>\uff1a<\/p>\n<ul>\n<li><code>XADD<\/code> &#8211; \u6dfb\u52a0\u6d88\u606f\u5230\u672b\u5c3e<\/li>\n<li><code>XTRIM<\/code> &#8211; \u5bf9\u6d41\u8fdb\u884c\u4fee\u526a\uff0c\u9650\u5236\u957f\u5ea6<\/li>\n<li><code>XDEL<\/code> &#8211; \u5220\u9664\u6d88\u606f<\/li>\n<li><code>XLEN<\/code> &#8211; \u83b7\u53d6\u6d41\u5305\u542b\u7684\u5143\u7d20\u6570\u91cf\uff0c\u5373\u6d88\u606f\u957f\u5ea6<\/li>\n<li><code>XRANGE<\/code> &#8211; \u83b7\u53d6\u6d88\u606f\u5217\u8868\uff0c\u4f1a\u81ea\u52a8\u8fc7\u6ee4\u5df2\u7ecf\u5220\u9664\u7684\u6d88\u606f<\/li>\n<li><code>XREVRANGE<\/code> &#8211; \u53cd\u5411\u83b7\u53d6\u6d88\u606f\u5217\u8868\uff0cID \u4ece\u5927\u5230\u5c0f<\/li>\n<li><code>XREAD<\/code> &#8211; \u4ee5\u963b\u585e\u6216\u975e\u963b\u585e\u65b9\u5f0f\u83b7\u53d6\u6d88\u606f\u5217\u8868<\/li>\n<\/ul>\n<p><strong>\u6d88\u8d39\u8005\u7ec4\u76f8\u5173\u547d\u4ee4<\/strong>\uff1a<\/p>\n<ul>\n<li><code>XGROUP CREATE<\/code> &#8211; \u521b\u5efa\u6d88\u8d39\u8005\u7ec4<\/li>\n<li><code>XREADGROUP GROUP<\/code> &#8211; \u8bfb\u53d6\u6d88\u8d39\u8005\u7ec4\u4e2d\u7684\u6d88\u606f<\/li>\n<li><code>XACK<\/code> &#8211; \u5c06\u6d88\u606f\u6807\u8bb0\u4e3a&quot;\u5df2\u5904\u7406&quot;<\/li>\n<li><code>XGROUP SETID<\/code> &#8211; \u4e3a\u6d88\u8d39\u8005\u7ec4\u8bbe\u7f6e\u65b0\u7684\u6700\u540e\u9012\u9001\u6d88\u606fID<\/li>\n<li><code>XGROUP DELCONSUMER<\/code> &#8211; \u5220\u9664\u6d88\u8d39\u8005<\/li>\n<li><code>XGROUP DESTROY<\/code> &#8211; \u5220\u9664\u6d88\u8d39\u8005\u7ec4<\/li>\n<li><code>XPENDING<\/code> &#8211; \u663e\u793a\u5f85\u5904\u7406\u6d88\u606f\u7684\u76f8\u5173\u4fe1\u606f<\/li>\n<li><code>XCLAIM<\/code> &#8211; \u8f6c\u79fb\u6d88\u606f\u7684\u5f52\u5c5e\u6743<\/li>\n<li><code>XINFO<\/code> &#8211; \u67e5\u770b\u6d41\u548c\u6d88\u8d39\u8005\u7ec4\u7684\u76f8\u5173\u4fe1\u606f<\/li>\n<li><code>XINFO GROUPS<\/code> &#8211; \u6253\u5370\u6d88\u8d39\u8005\u7ec4\u7684\u4fe1\u606f<\/li>\n<li><code>XINFO STREAM<\/code> &#8211; \u6253\u5370\u6d41\u4fe1\u606f<\/li>\n<\/ul>\n<h3>XADD<\/h3>\n<p>\u4f7f\u7528 XADD \u5411\u961f\u5217\u6dfb\u52a0\u6d88\u606f\uff0c\u5982\u679c\u6307\u5b9a\u7684\u961f\u5217\u4e0d\u5b58\u5728\uff0c\u5219\u521b\u5efa\u4e00\u4e2a\u961f\u5217\uff0cXADD \u8bed\u6cd5\u683c\u5f0f\uff1a<\/p>\n<pre><code class=\"language-bash\">XADD key ID field value [field value ...]<\/code><\/pre>\n<ul>\n<li>key\uff1a\u961f\u5217\u540d\u79f0\uff0c\u5982\u679c\u4e0d\u5b58\u5728\u5c31\u521b\u5efa<\/li>\n<li>ID\uff1a\u6d88\u606f id\uff0c\u6211\u4eec\u4f7f\u7528 * \u8868\u793a\u7531 redis \u751f\u6210\uff0c\u53ef\u4ee5\u81ea\u5b9a\u4e49\uff0c\u4f46\u662f\u8981\u81ea\u5df1\u4fdd\u8bc1\u9012\u589e\u6027<\/li>\n<li>field value\uff1a\u8bb0\u5f55<\/li>\n<\/ul>\n<p>\u5b9e\u4f8b\uff1a<\/p>\n<pre><code class=\"language-bash\">redis&gt; XADD mystream * name Sara surname OConnor\n&quot;1601372323627-0&quot;\nredis&gt; XADD mystream * field1 value1 field2 value2 field3 value3\n&quot;1601372323627-1&quot;\nredis&gt; XLEN mystream\n(integer) 2\nredis&gt; XRANGE mystream - +\n1) 1) &quot;1601372323627-0&quot;\n   2) 1) &quot;name&quot;\n      2) &quot;Sara&quot;\n      3) &quot;surname&quot;\n      4) &quot;OConnor&quot;\n2) 1) &quot;1601372323627-1&quot;\n   2) 1) &quot;field1&quot;\n      2) &quot;value1&quot;\n      3) &quot;field2&quot;\n      4) &quot;value2&quot;\n      5) &quot;field3&quot;\n      6) &quot;value3&quot;\nredis&gt;<\/code><\/pre>\n<h3>XTRIM<\/h3>\n<p>\u4f7f\u7528 XTRIM \u5bf9\u6d41\u8fdb\u884c\u4fee\u526a\uff0c\u9650\u5236\u957f\u5ea6\uff0c\u8bed\u6cd5\u683c\u5f0f\uff1a<\/p>\n<pre><code class=\"language-bash\">XTRIM key MAXLEN [~] count<\/code><\/pre>\n<ul>\n<li><code>key<\/code>\uff1a\u961f\u5217\u540d\u79f0<\/li>\n<li><code>MAXLEN<\/code>\uff1a\u957f\u5ea6<\/li>\n<li><code>count<\/code>\uff1a\u6570\u91cf<\/li>\n<\/ul>\n<p>\u5b9e\u4f8b\uff1a<\/p>\n<pre><code class=\"language-bash\">redis&gt; XADD mystream * field1 A field2 B field3 C field4 D\n&quot;1601372434568-0&quot;\nredis&gt; XTRIM mystream MAXLEN 2\n(integer) 0\nredis&gt; XRANGE mystream - +\n1) 1) &quot;1601372434568-0&quot;\n   2) 1) &quot;field1&quot;\n      2) &quot;A&quot;\n      3) &quot;field2&quot;\n      4) &quot;B&quot;\n      5) &quot;field3&quot;\n      6) &quot;C&quot;\n      7) &quot;field4&quot;\n      8) &quot;D&quot;\nredis&gt;<\/code><\/pre>\n<h3>XDEL<\/h3>\n<p>\u4f7f\u7528 XDEL \u5220\u9664\u6d88\u606f\uff0c\u8bed\u6cd5\u683c\u5f0f\uff1a<\/p>\n<pre><code class=\"language-bash\">XDEL key ID [ID ...]<\/code><\/pre>\n<ul>\n<li>key\uff1a\u961f\u5217\u540d\u79f0<\/li>\n<li>ID\uff1a\u6d88\u606f ID<\/li>\n<\/ul>\n<p>\u5b9e\u4f8b\uff1a<\/p>\n<pre><code class=\"language-bash\">> XADD mystream * a 1\n1538561698944-0\n> XADD mystream * b 2\n1538561700640-0\n> XADD mystream * c 3\n1538561701744-0\n> XDEL mystream 1538561700640-0\n(integer) 1\n127.0.0.1:6379&gt; XRANGE mystream - +\n1) 1) 1538561698944-0\n   2) 1) &quot;a&quot;\n      2) &quot;1&quot;\n2) 1) 1538561701744-0\n   2) 1) &quot;c&quot;\n      2) &quot;3&quot;<\/code><\/pre>\n<h3>XLEN<\/h3>\n<p>\u4f7f\u7528 XLEN \u83b7\u53d6\u6d41\u5305\u542b\u7684\u5143\u7d20\u6570\u91cf\uff0c\u5373\u6d88\u606f\u957f\u5ea6\uff0c\u8bed\u6cd5\u683c\u5f0f\uff1a<\/p>\n<pre><code class=\"language-bash\">XLEN key<\/code><\/pre>\n<ul>\n<li>key\uff1a\u961f\u5217\u540d\u79f0<\/li>\n<\/ul>\n<p>\u5b9e\u4f8b\uff1a<\/p>\n<pre><code class=\"language-bash\">redis&gt; XADD mystream * item 1\n&quot;1601372563177-0&quot;\nredis&gt; XADD mystream * item 2\n&quot;1601372563178-0&quot;\nredis&gt; XADD mystream * item 3\n&quot;1601372563178-1&quot;\nredis&gt; XLEN mystream\n(integer) 3\nredis&gt;<\/code><\/pre>\n<h3>XRANGE<\/h3>\n<p>\u4f7f\u7528 XRANGE \u83b7\u53d6\u6d88\u606f\u5217\u8868\uff0c\u4f1a\u81ea\u52a8\u8fc7\u6ee4\u5df2\u7ecf\u5220\u9664\u7684\u6d88\u606f\uff0c\u8bed\u6cd5\u683c\u5f0f\uff1a<\/p>\n<pre><code class=\"language-bash\">XRANGE key start end [COUNT count]<\/code><\/pre>\n<ul>\n<li>key\uff1a\u961f\u5217\u540d<\/li>\n<li>start\uff1a\u5f00\u59cb\u503c\uff0c- \u8868\u793a\u6700\u5c0f\u503c<\/li>\n<li>end \uff1a\u7ed3\u675f\u503c\uff0c+ \u8868\u793a\u6700\u5927\u503c<\/li>\n<li>count\uff1a\u6570\u91cf<\/li>\n<\/ul>\n<p>\u5b9e\u4f8b\uff1a<\/p>\n<pre><code class=\"language-bash\">redis&gt; XADD writers * name Virginia surname Woolf\n&quot;1601372577811-0&quot;\nredis&gt; XADD writers * name Jane surname Austen\n&quot;1601372577811-1&quot;\nredis&gt; XADD writers * name Toni surname Morrison\n&quot;1601372577811-2&quot;\nredis&gt; XADD writers * name Agatha surname Christie\n&quot;1601372577812-0&quot;\nredis&gt; XADD writers * name Ngozi surname Adichie\n&quot;1601372577812-1&quot;\nredis&gt; XLEN writers\n(integer) 5\nredis&gt; XRANGE writers - + COUNT 2\n1) 1) &quot;1601372577811-0&quot;\n   2) 1) &quot;name&quot;\n      2) &quot;Virginia&quot;\n      3) &quot;surname&quot;\n      4) &quot;Woolf&quot;\n2) 1) &quot;1601372577811-1&quot;\n   2) 1) &quot;name&quot;\n      2) &quot;Jane&quot;\n      3) &quot;surname&quot;\n      4) &quot;Austen&quot;\nredis&gt;<\/code><\/pre>\n<h3>XREVRANGE<\/h3>\n<p>\u4f7f\u7528 XREVRANGE \u83b7\u53d6\u6d88\u606f\u5217\u8868\uff0c\u4f1a\u81ea\u52a8\u8fc7\u6ee4\u5df2\u7ecf\u5220\u9664\u7684\u6d88\u606f\uff0c\u8bed\u6cd5\u683c\u5f0f\uff1a<\/p>\n<pre><code class=\"language-bash\">XREVRANGE key end start [COUNT count]<\/code><\/pre>\n<ul>\n<li>key\uff1a\u961f\u5217\u540d<\/li>\n<li>end\uff1a\u7ed3\u675f\u503c\uff0c+ \u8868\u793a\u6700\u5927\u503c<\/li>\n<li>start\uff1a\u5f00\u59cb\u503c\uff0c- \u8868\u793a\u6700\u5c0f\u503c<\/li>\n<li>count\uff1a\u6570\u91cf<\/li>\n<\/ul>\n<p>\u5b9e\u4f8b\uff1a<\/p>\n<pre><code class=\"language-bash\">redis&gt; XADD writers * name Virginia surname Woolf\n&quot;1601372731458-0&quot;\nredis&gt; XADD writers * name Jane surname Austen\n&quot;1601372731459-0&quot;\nredis&gt; XADD writers * name Toni surname Morrison\n&quot;1601372731459-1&quot;\nredis&gt; XADD writers * name Agatha surname Christie\n&quot;1601372731459-2&quot;\nredis&gt; XADD writers * name Ngozi surname Adichie\n&quot;1601372731459-3&quot;\nredis&gt; XLEN writers\n(integer) 5\nredis&gt; XREVRANGE writers + - COUNT 1\n1) 1) &quot;1601372731459-3&quot;\n   2) 1) &quot;name&quot;\n      2) &quot;Ngozi&quot;\n      3) &quot;surname&quot;\n      4) &quot;Adichie&quot;\nredis&gt;<\/code><\/pre>\n<h3>XREAD<\/h3>\n<p>\u4f7f\u7528 XREAD \u4ee5\u963b\u585e\u6216\u975e\u963b\u585e\u65b9\u5f0f\u83b7\u53d6\u6d88\u606f\u5217\u8868\uff0c\u8bed\u6cd5\u683c\u5f0f\uff1a<\/p>\n<pre><code class=\"language-bash\">XREAD [COUNT count] [BLOCK milliseconds] STREAMS key [key ...] id [id ...]<\/code><\/pre>\n<ul>\n<li>count\uff1a\u6570\u91cf<\/li>\n<li>milliseconds\uff1a\u53ef\u9009\uff0c\u963b\u585e\u6beb\u79d2\u6570\uff0c\u6ca1\u6709\u8bbe\u7f6e\u5c31\u662f\u975e\u963b\u585e\u6a21\u5f0f<\/li>\n<li>key\uff1a\u961f\u5217\u540d<\/li>\n<li>id\uff1a\u6d88\u606f ID<\/li>\n<\/ul>\n<p>\u5b9e\u4f8b\uff1a<\/p>\n<pre><code class=\"language-bash\"># \u4ece Stream \u5934\u90e8\u8bfb\u53d6\u4e24\u6761\u6d88\u606f\n> XREAD COUNT 2 STREAMS mystream writers 0-0 0-0\n1) 1) &quot;mystream&quot;\n   2) 1) 1) 1526984818136-0\n         2) 1) &quot;duration&quot;\n            2) &quot;1532&quot;\n            3) &quot;event-id&quot;\n            4) &quot;5&quot;\n            5) &quot;user-id&quot;\n            6) &quot;7782813&quot;\n      2) 1) 1526999352406-0\n         2) 1) &quot;duration&quot;\n            2) &quot;812&quot;\n            3) &quot;event-id&quot;\n            4) &quot;9&quot;\n            5) &quot;user-id&quot;\n            6) &quot;388234&quot;\n2) 1) &quot;writers&quot;\n   2) 1) 1) 1526985676425-0\n         2) 1) &quot;name&quot;\n            2) &quot;Virginia&quot;\n            3) &quot;surname&quot;\n            4) &quot;Woolf&quot;\n      2) 1) 1526985685298-0\n         2) 1) &quot;name&quot;\n            2) &quot;Jane&quot;\n            3) &quot;surname&quot;\n            4) &quot;Austen&quot;<\/code><\/pre>\n<h3>XGROUP CREATE<\/h3>\n<p>\u4f7f\u7528 XGROUP CREATE \u521b\u5efa\u6d88\u8d39\u8005\u7ec4\uff0c\u8bed\u6cd5\u683c\u5f0f\uff1a<\/p>\n<pre><code class=\"language-bash\">XGROUP [CREATE key groupname id-or-$] [SETID key groupname id-or-$] [DESTROY key groupname] [DELCONSUMER key groupname consumername]<\/code><\/pre>\n<ul>\n<li>key\uff1a\u961f\u5217\u540d\u79f0\uff0c\u5982\u679c\u4e0d\u5b58\u5728\u5c31\u521b\u5efa<\/li>\n<li>groupname\uff1a\u7ec4\u540d<\/li>\n<li>$\uff1a\u8868\u793a\u4ece\u5c3e\u90e8\u5f00\u59cb\u6d88\u8d39\uff0c\u53ea\u63a5\u53d7\u65b0\u6d88\u606f\uff0c\u5f53\u524d Stream \u6d88\u606f\u4f1a\u5168\u90e8\u5ffd\u7565<\/li>\n<\/ul>\n<p>\u4ece\u5934\u5f00\u59cb\u6d88\u8d39\uff1a<\/p>\n<pre><code class=\"language-bash\">XGROUP CREATE mystream consumer-group-name 0-0<\/code><\/pre>\n<p>\u4ece\u5c3e\u90e8\u5f00\u59cb\u6d88\u8d39\uff1a<\/p>\n<pre><code class=\"language-bash\">XGROUP CREATE mystream consumer-group-name $<\/code><\/pre>\n<h3>XREADGROUP GROUP<\/h3>\n<p>\u4f7f\u7528<code>XREADGROUP GROUP<\/code>\u8bfb\u53d6\u6d88\u8d39\u7ec4\u4e2d\u7684\u6d88\u606f\uff0c\u8bed\u6cd5\u683c\u5f0f\uff1a<\/p>\n<pre><code class=\"language-bash\">XREADGROUP GROUP group consumer [COUNT count] [BLOCK milliseconds] [NOACK] STREAMS key [key ...] ID [ID ...]<\/code><\/pre>\n<ul>\n<li><code>group<\/code>\uff1a\u6d88\u8d39\u7ec4\u540d<\/li>\n<li><code>consumer<\/code>\uff1a\u6d88\u8d39\u8005\u540d<\/li>\n<li><code>count<\/code>\uff1a\u8bfb\u53d6\u6570\u91cf<\/li>\n<li><code>milliseconds<\/code>\uff1a\u963b\u585e\u6beb\u79d2\u6570<\/li>\n<li><code>key<\/code>\uff1a\u961f\u5217\u540d<\/li>\n<li><code>ID<\/code>\uff1a\u6d88\u606f ID<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">XREADGROUP GROUP consumer-group-name consumer-name COUNT 1 STREAMS mystream &gt;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Redis Stream Redis Stream \u662f Redis 5.0 \u7248\u672c\u65b0\u589e\u52a0\u7684\u6570\u636e\u7ed3\u6784\u3002 Redis [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-265","post","type-post","status-publish","format-standard","hentry","category-redis"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/265","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=265"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/265\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}