{"id":201235,"date":"2025-05-10T09:56:45","date_gmt":"2025-05-10T01:56:45","guid":{"rendered":"https:\/\/server.hk\/cnblog\/201235\/"},"modified":"2025-05-10T09:56:45","modified_gmt":"2025-05-10T01:56:45","slug":"redisstream%e5%ae%9e%e7%8e%b0%e6%b6%88%e6%81%af%e9%98%9f%e5%88%97%e7%9a%84%e5%ae%9e%e8%b7%b5","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/201235\/","title":{"rendered":"redisstream\u5b9e\u73b0\u6d88\u606f\u961f\u5217\u7684\u5b9e\u8df5"},"content":{"rendered":"<p><b><\/b> <\/p>\n<h1>redisstream\u5b9e\u73b0\u6d88\u606f\u961f\u5217\u7684\u5b9e\u8df5<\/h1>\n<p><span style=\"cursor: pointer\"><i><\/i>\u6536\u85cf<\/span> <\/p>\n<p>\u5728\u6570\u636e\u5e93\u5b9e\u6218\u5f00\u53d1\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u7ecf\u5e38\u4f1a\u9047\u5230\u4e00\u4e9b\u8fd9\u6837\u90a3\u6837\u7684\u95ee\u9898\uff0c\u7136\u540e\u8981\u5361\u597d\u534a\u5929\uff0c\u7b49\u95ee\u9898\u89e3\u51b3\u4e86\u624d\u53d1\u73b0\u539f\u6765\u4e00\u4e9b\u7ec6\u8282\u77e5\u8bc6\u70b9\u8fd8\u662f\u6ca1\u6709\u638c\u63e1\u597d\u3002\u4eca\u5929golang\u5b66\u4e60\u7f51\u5c31\u6574\u7406\u5206\u4eab\u300aredisstream\u5b9e\u73b0\u6d88\u606f\u961f\u5217\u7684\u5b9e\u8df5\u300b\uff0c\u804a\u804a\u6d88\u606f\u961f\u5217\u3001RedisStream\uff0c\u5e0c\u671b\u53ef\u4ee5\u5e2e\u52a9\u5230\u6b63\u5728\u52aa\u529b\u8d5a\u94b1\u7684\u4f60\u3002<\/p>\n<p>Redis5.0\u5e26\u6765\u4e86Stream\u7c7b\u578b\u3002\u4ece\u5b57\u9762\u4e0a\u770b\u662f\u6d41\u7c7b\u578b\uff0c\u4f46\u5176\u5b9e\u4ece\u529f\u80fd\u4e0a\u770b\uff0c\u5e94\u8be5\u662fRedis\u5bf9\u6d88\u606f\u961f\u5217\uff08MQ\uff0cMessage Queue\uff09\u7684\u5b8c\u5584\u5b9e\u73b0\u3002<\/p>\n<p>\u57fa\u4e8eredis\u5b9e\u73b0\u6d88\u606f\u961f\u5217\u7684\u65b9\u5f0f\u6709\u5f88\u591a\uff1a<\/p>\n<ul>\n<li>PUB\/SUB\uff0c\u8ba2\u9605\/\u53d1\u5e03\u6a21\u5f0f<\/li>\n<li>\u57fa\u4e8eList\u7684 LPUSH+BRPOP \u7684\u5b9e\u73b0<\/li>\n<\/ul>\n<h2>redis \u5b9e\u73b0\u6d88\u606f\u5bf9\u52174\u4e2d\u65b9\u6cd5<\/h2>\n<h3>\u53d1\u5e03\u8ba2\u9605<\/h3>\n<p>\u53d1\u5e03\u8ba2\u9605\u4f18\u70b9\uff1a \u5178\u578b\u7684\u4e00\u5bf9\u7684\uff0c\u6240\u6709\u6d88\u8d39\u8005\u90fd\u80fd\u540c\u65f6\u6d88\u8d39\u5230\u6d88\u606f\u3002\u4e3b\u52a8\u901a\u77e5\u8ba2\u9605\u8005\u800c\u4e0d\u662f\u8ba2\u9605\u8005\u8f6e\u8be2\u53bb\u8bfb\u3002<\/p>\n<p>\u53d1\u5e03\u8ba2\u9605\u7f3a\u70b9\uff1a \u4e0d\u652f\u6301\u591a\u4e2a\u6d88\u8d39\u8005\u516c\u5e73\u6d88\u8d39\u6d88\u606f\uff0c\u6d88\u606f\u6ca1\u6709\u6301\u4e45\u5316\uff0c\u4e0d\u7ba1\u8ba2\u9605\u8005\u662f\u5426\u6536\u5230\u6d88\u606f\uff0c\u6d88\u606f\u90fd\u4f1a\u4e22\u5931\u3002<\/p>\n<p>\u4f7f\u7528\u573a\u666f\uff1a\u5fae\u670d\u52a1\u95f4\u7684\u6d88\u606f\u540c\u6b65\uff0c\u5982 \u5206\u5e03\u5f0fwebSocker\uff0c\u6570\u636e\u540c\u6b65\u7b49\u3002<\/p>\n<h3>list \u961f\u5217<\/h3>\n<p>\u751f\u4ea7\u8005\u901a\u8fc7lpush\u751f\u6210\u6d88\u606f\uff0c\u6d88\u8d39\u8005\u901a\u8fc7blpop\u963b\u585e\u8bfb\u53d6\u6d88\u606f\u3002<\/p>\n<p>**list\u961f\u5217\u4f18\u70b9\uff1a**\u652f\u6301\u591a\u4e2a\u6d88\u8d39\u8005\u516c\u5e73\u6d88\u8d39\u6d88\u606f\uff0c\u5bf9\u6d88\u606f\u8fdb\u884c\u5b58\u50a8\uff0c\u53ef\u4ee5\u901a\u8fc7lrange\u67e5\u8be2\u961f\u5217\u5185\u7684\u6d88\u606f\u3002<\/p>\n<p>**list\u961f\u5217\u7f3a\u70b9\uff1a**blpop\u4ecd\u7136\u4f1a\u963b\u585e\u5f53\u524d\u8fde\u63a5\uff0c\u5bfc\u81f4\u8fde\u63a5\u4e0d\u53ef\u7528\u3002\u4e00\u65e6blpop\u6210\u529f\u6d88\u606f\u5c31\u4e22\u5f03\u4e86\uff0c\u671f\u95f4\u5982\u679c\u670d\u52a1\u5668\u5b95\u673a\u6d88\u606f\u4f1a\u4e22\u5931\uff0c\u4e0d\u652f\u6301\u4e00\u5bf9\u591a\u6d88\u8d39\u8005\u3002<\/p>\n<h3>zset \u961f\u5217<\/h3>\n<p>\u751f\u4ea7\u8005\u901a\u8fc7zadd \u521b\u5efa\u6d88\u606f\u65f6\u6307\u5b9a\u5206\u6570\uff0c\u53ef\u4ee5\u786e\u5b9a\u6d88\u606f\u7684\u987a\u5e8f\uff0c\u6d88\u8d39\u8005\u901a\u8fc7zrange\u83b7\u53d6\u6d88\u606f\u540e\u8fdb\u884c\u6d88\u8d39\uff0c\u6d88\u8d39\u5b8c\u540e\u901azrem\u5220\u9664\u6d88\u606f\u3002<\/p>\n<p>zset\u4f18\u70b9\uff1a \u4fdd\u8bc1\u4e86\u6d88\u606f\u7684\u987a\u5e8f\uff0c\u6d88\u8d39\u8005\u6d88\u8d39\u5931\u8d25\u540e\u91cd\u65b0\u5165\u961f\u4e0d\u4f1a\u6253\u4e71\u6d88\u8d39\u987a\u5e8f\u3002<\/p>\n<p>zset\u7f3a\u70b9\uff1a \u4e0d\u652f\u6301\u4e00\u5bf9\u591a\u6d88\u8d39\uff0c\u591a\u4e2a\u6d88\u8d39\u8005\u6d88\u8d39\u65f6\u53ef\u80fd\u51fa\u73b0\u8bfb\u53d6\u540c\u4e00\u6761\u6d88\u606f\u7684\u60c5\u51b5\uff0c\u5f97\u901a\u8fc7\u52a0\u9501\u6216\u5176\u4ed6\u65b9\u5f0f\u89e3\u51b3\u6d88\u8d39\u7684\u5e42\u7b49\u6027\u3002<\/p>\n<p>zset\u4f7f\u7528\u573a\u666f\uff1a\u7531\u4e8e\u6570\u636e\u662f\u6709\u5e8f\u7684\uff0c\u5e38\u5e38\u88ab\u7528\u4e8e\u5ef6\u8fdf\u961f\u5217\uff0c\u5982 redisson\u7684DelayQueue<\/p>\n<h3>Stream \u961f\u5217<\/h3>\n<p>Redis5.0\u5e26\u6765\u4e86Stream\u7c7b\u578b\u3002\u4ece\u5b57\u9762\u4e0a\u770b\u662f\u6d41\u7c7b\u578b\uff0c\u4f46\u5176\u5b9e\u4ece\u529f\u80fd\u4e0a\u770b\uff0c\u5e94\u8be5\u662fRedis\u5bf9\u6d88\u606f\u961f\u5217\uff08MQ\uff0cMessage Queue\uff09\u7684\u5b8c\u5584\u5b9e\u73b0\u3002<\/p>\n<p>\u53c2\u8003kafka\u7684\u601d\u60f3\uff0c\u901a\u8fc7\u591a\u4e2a\u6d88\u8d39\u8005\u7ec4\u548c\u6d88\u8d39\u8005\u652f\u6301\u4e00\u5bf9\u591a\u6d88\u8d39\uff0c\u516c\u5e73\u6d88\u8d39\uff0c\u6d88\u8d39\u8005\u5185\u7ef4\u62a4\u4e86pending\u5217\u8868\u9632\u6b62\u6d88\u606f\u4e22\u5931\u3002<\/p>\n<p>\u63d0\u4f9b\u6d88\u606fack\u673a\u5236\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20221231\/167248531763b019c5a8f54.jpg\" class=\"aligncenter\"><\/p>\n<h2>\u57fa\u672c\u547d\u4ee4<\/h2>\n<h3>xadd \u751f\u4ea7\u6d88\u606f<\/h3>\n<p>\u5f80 stream \u5185\u521b\u5efa\u6d88\u606f \u8bed\u6cd5\u4e3a\uff1a<\/p>\n<blockquote>\n<p>XADD key ID field string [field string \u2026]<\/p>\n<\/blockquote>\n<pre># * \u8868\u793a\u81ea\u52a8\u751f\u6210id redis\u4f1a\u6839\u636e\u65f6\u95f4\u6233+\u5e8f\u5217\u53f7\u81ea\u52a8\u751f\u6210id\uff0c\u4e0d\u5efa\u8bae\u6211\u4eec\u81ea\u5df1\u6307\u5b9aid\nxadd stream1 * name zs age 23  \n<\/pre>\n<h3>\u8bfb\u53d6\u6d88\u606f<\/h3>\n<p>\u8bfb\u53d6stream\u5185\u7684\u6d88\u606f\uff0c\u8fd9\u4e2a\u5e76\u4e0d\u662f\u6d88\u8d39\uff0c\u53ea\u662f\u63d0\u4f9b\u4e86\u67e5\u770b\u6570\u636e\u7684\u529f\u80fd\uff0c\u8bed\u6cd5\u4e3a\uff1a<\/p>\n<blockquote>\n<p>XREAD [COUNT count] [BLOCK milliseconds] STREAMS key [key \u2026] ID [ID \u2026]<\/p>\n<\/blockquote>\n<pre>#\u8868\u793a\u4ece stream1 \u5185\u53d6\u51fa\u4e00\u6761\u6d88\u606f\uff0c\u4ece\u7b2c0\u6761\u6d88\u606f\u8bfb\u53d6(0\u8868\u793a\u6700\u5c0f\u7684id)\nxread count 1 streams stream1 0\n#\u8868\u793a\u4ece stream1 \u5185 id=1649143363972-0 \u5f00\u59cb\u8bfb\u53d6\u4e00\u6761\u6d88\u606f\uff0c\u8bfb\u53d6\u7684\u662f\u6307\u5b9aid\u7684\u4e0b\u4e00\u6761\u6d88\u606f\nxread count 1 streams msg 1649143363972-0\n\n#\u8868\u793a\u4e00\u76f4\u963b\u585e\u8bfb\u53d6\u6700\u65b0\u7684\u6d88\u606f($\u8868\u793a\u83b7\u53d6\u4e0b\u4e00\u4e2a\u751f\u6210\u7684\u6d88\u606f)\nxread count 1 block 0 streams stream1 $ \n\nxrange stream - + 10\n<\/pre>\n<blockquote>\n<p>XRANGE key startID endID count<\/p>\n<\/blockquote>\n<pre>#\u8868\u793a\u4ecestream1\u5185\u53d610\u6761\u6d88\u606f \u8d77\u59cb\u4f4d\u7f6e\u4e3a -(\u6700\u5c0fID) \u7ed3\u675f\u4f4d\u7f6e\u4e3a+(\u6700\u5927ID)\nxrange stream1 - + 10 \n<\/pre>\n<h3>xgroup \u6d88\u8d39\u8005\u7ec4<\/h3>\n<p>redis stream \u501f\u9274\u4e86kafka\u7684\u8bbe\u8ba1\uff0c\u91c7\u7528\u4e86\u6d88\u8d39\u8005\u548c\u6d88\u8d39\u8005\u7ec4\u7684\u6982\u5ff5\u3002\u5141\u8bb8\u591a\u4e2a\u6d88\u8d39\u8005\u7ec4\u6d88\u8d39stream\u7684\u6d88\u606f\uff0c\u6bcf\u4e2a\u6d88\u8d39\u8005\u7ec4\u90fd\u80fd\u6536\u5230\u5b8c\u6574\u7684\u6d88\u606f\uff0c\u4f8b\u5982\uff1astream\u5185\u670910\u6761\u6d88\u606f\uff0c\u6d88\u8d39\u8005\u7ec4A\u548c\u6d88\u8d39\u8005\u7ec4B\u540c\u65f6\u6d88\u8d39\u65f6\uff0c\u90fd\u80fd\u83b7\u53d6\u5230\u8fd910\u6761\u6d88\u606f\u3002<\/p>\n<p>\u6bcf\u4e2a\u6d88\u8d39\u8005\u7ec4\u5185\u53ef\u4ee5\u6709\u591a\u4e2a\u6d88\u8d39\u8005\u6d88\u8d39\uff0c\u6d88\u606f\u4f1a\u5e73\u5747\u5206\u644a\u7ed9\u5404\u4e2a\u6d88\u8d39\u8005\uff0c\u4f8b\u5982\uff1astream\u670910\u6761\u6d88\u606f\uff0c\u6d88\u8d39\u8005A\uff0cB\uff0cC\u540c\u65f6\u5728\u540c\u4e00\u4e2a\u7ec4\u5185\u6d88\u8d39\uff0cA\u63a5\u6536\u5230 1\uff0c4\uff0c7\uff0c10\uff0cB\u63a5\u6536\u5230 2\uff0c5\uff0c8\uff0cC\u63a5\u6536\u5230 3\uff0c6\uff0c9<\/p>\n<p>\u521b\u5efa\u6d88\u8d39\u8005\u7ec4\uff1a<\/p>\n<pre>#\u6d88\u8d39\u6d88\u606f\u9996\u5148\u5f97\u521b\u5efa\u6d88\u8d39\u8005\u7ec4\n# \u8868\u793a\u4e3a\u961f\u5217 stream1 \u521b\u5efa\u4e00\u4e2a\u6d88\u8d39\u8005\u7ec4 group1 \u4ece\u6d88\u606fid=0(\u7b2c\u4e00\u6761\u6d88\u606f)\u5f00\u59cb\u8bfb\u53d6\u6d88\u606f\nxgroup create stream1 group1 0\n\n#\u67e5\u8be2stream1\u5185\u7684\u6240\u6709\u6d88\u8d39\u8005\u7ec4\u4fe1\u606f\nxinfo groups stream1\n<\/pre>\n<h3>xreadgroup \u6d88\u8d39\u6d88\u606f<\/h3>\n<p>\u901a\u8fc7xreadgroup\u53ef\u4ee5\u5728\u6d88\u8d39\u8005\u7ec4\u5185\u521b\u5efa\u6d88\u8d39\u8005\u6d88\u8d39\u6d88\u606f<\/p>\n<blockquote>\n<p>XREADGROUP group groupName consumerName [COUNT count] [BLOCK milliseconds] STREAMS key [key \u2026] ID [ID \u2026]<\/p>\n<\/blockquote>\n<pre>#\u521b\u5efa\u6d88\u8d39\u8005\u8bfb\u53d6\u6d88\u606f\n#\u5728group1\u6d88\u8d39\u8005\u7ec4\u5185\u901a\u8fc7consumer1\u6d88\u8d39stream1\u5185\u7684\u6d88\u606f\uff0c\u6d88\u8d391\u6761\u672a\u5206\u914d\u7684\u6d88\u606f (&gt; \u8868\u793a\u672a\u5206\u914d\u8fc7\u6d88\u8d39\u8005\u7684\u6d88\u606f)\nxreadgrup group group1 consumer1 count 1 streams stream1 &gt; \n<\/pre>\n<h3>Pending \u7b49\u5f85\u5217\u8868<\/h3>\n<p>\u901a\u8fc7 xreadgroup \u8bfb\u53d6\u6d88\u606f\u65f6\u6d88\u606f\u4f1a\u5206\u914d\u7ed9\u5bf9\u5e94\u7684\u6d88\u8d39\u8005\uff0c\u6bcf\u4e2a\u6d88\u8d39\u8005\u5185\u90fd\u7ef4\u62a4\u4e86\u4e00\u4e2aPending\u5217\u8868\u7528\u4e8e\u4fdd\u5b58\u63a5\u6536\u5230\u7684\u6d88\u606f\uff0c\u5f53\u6d88\u606fack\u540e\u4f1a\u4ecepending\u5217\u8868\u5185\u79fb\u9664\uff0c\u4e5f\u5c31\u662f\u8bf4pending\u5217\u8868\u5185\u7ef4\u62a4\u7684\u662f\u6240\u6709\u672aack\u7684\u6d88\u606fid<\/p>\n<p>\u6bcf\u4e2aPending\u7684\u6d88\u606f\u67094\u4e2a\u5c5e\u6027\uff1a<\/p>\n<ul>\n<li>\u6d88\u606fID<\/li>\n<li>\u6240\u5c5e\u6d88\u8d39\u8005<\/li>\n<li>IDLE\uff0c\u5df2\u8bfb\u53d6\u65f6\u957f<\/li>\n<li>delivery counter\uff0c\u6d88\u606f\u88ab\u8bfb\u53d6\u6b21\u6570<\/li>\n<\/ul>\n<blockquote>\n<p>XPENDING key group [start end count] [consumer]<\/p>\n<\/blockquote>\n<pre>#\u67e5\u770bpending\u5217\u8868\n# \u67e5\u770bgroup1\u7ec4\u5185\u7684consumer1\u7684pending\u5217\u8868 - \u8868\u793a\u6700\u5c0f\u7684\u6d88\u606fid + \u8868\u793a\u6700\u5927\u7684\u6d88\u606fID\nxpending stream1 group1 - + 10 consumer1\n# \u67e5\u770bgroup1\u7ec4\u5185\u7684\u6240\u6709\u6d88\u8d39\u8005pending\u7c7b\u8868\nxpending stream1 group1 - + 10 \n<\/pre>\n<h3>\u6d88\u606f\u786e\u8ba4<\/h3>\n<p>\u5f53\u6d88\u8d39\u8005\u6d88\u8d39\u4e86\u6d88\u606f\uff0c\u9700\u8981\u901a\u8fc7 <code>xack<\/code> \u547d\u4ee4\u786e\u8ba4\u6d88\u606f\uff0cxack\u540e\u7684\u6d88\u606f\u4f1a\u4ecepending\u5217\u8868\u79fb\u9664<\/p>\n<blockquote>\n<p>XACK key gruopName ID<\/p>\n<\/blockquote>\n<pre>xack stream1 group1 xxx\n<\/pre>\n<h3>\u6d88\u606f\u8f6c\u79fb<\/h3>\n<p>\u5f53\u6d88\u8d39\u8005\u63a5\u6536\u5230\u6d88\u606f\u5374\u4e0d\u80fd\u6b63\u786e\u6d88\u8d39\u65f6(\u62a5\u9519\u6216\u5176\u4ed6\u539f\u56e0)\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>XCLAIM<\/code> \u5c06\u6d88\u606f\u8f6c\u79fb\u7ed9\u5176\u4ed6\u6d88\u8d39\u8005\u6d88\u8d39\uff0c\u9700\u8981\u8bbe\u7f6e\u7ec4\u3001\u8f6c\u79fb\u7684\u76ee\u6807\u6d88\u8d39\u8005\u548c\u6d88\u606fID\uff0c\u540c\u65f6\u9700\u8981\u63d0\u4f9bIDLE\uff08\u5df2\u88ab\u8bfb\u53d6\u65f6\u957f\uff09\uff0c\u53ea\u6709\u8d85\u8fc7\u8fd9\u4e2a\u65f6\u957f\uff0c\u624d\u80fd\u88ab\u8f6c\u79fb\u3002<\/p>\n<p>\u901a\u8fc7xclaim\u8f6c\u79fb\u7684\u6d88\u606f\u53ea\u662f\u5c06\u6d88\u606f\u79fb\u5165\u53e6\u4e00\u4e2a\u6d88\u8d39\u8005\u7684pending\u5217\u8868\uff0c\u6d88\u8d39\u8005\u5e76\u4e0d\u80fd\u901a\u8fc7xreadgroup\u8bfb\u53d6\u5230\u6d88\u606f\uff0c\u53ea\u80fd\u901a\u8fc7xpending\u8bfb\u53d6\u5230\u3002<\/p>\n<pre># \u8868\u793a\u5c06ID\u4e3a 1553585533795-1 \u7684\u6d88\u606f\u8f6c\u79fb\u5230\u6d88\u8d39\u8005B\u6d88\u8d39\uff0c\u524d\u63d0\u662f\u6d88\u8d39\nXCLAIM stream1 group1 consumer1 3600000 1553585533795-1\n<\/pre>\n<h3>\u4fe1\u606f\u76d1\u63a7<\/h3>\n<p>redis\u63d0\u4f9b\u4e86xinfo\u6765\u67e5\u770bstream\u7684\u4fe1\u606f<\/p>\n<pre>#\u67e5\u770bsream\u4fe1\u606f\nxinfo stream steam1\n#\u67e5\u8be2\u6d88\u8d39\u8005\u7ec4\u4fe1\u606f\nxinfo groups group1 \n\n#\u67e5\u8be2\u6d88\u8d39\u8005\u4fe1\u606f\nxinfo consumers consumer1\n<\/pre>\n<h2>SpringBoot \u6574\u5408<\/h2>\n<p>1 \u5f15\u5165\u4f9d\u8d56<\/p>\n<pre>\n   \n    \n     org.springframework.boot\n    \n    \n    <p><\/p>\n\n    <p><\/p>\n\n    \n   <\/pre>\n","protected":false},"excerpt":{"rendered":"<p>redisstream\u5b9e\u73b0\u6d88\u606f\u961f&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-201235","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/201235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=201235"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/201235\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=201235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=201235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=201235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}