{"id":201662,"date":"2025-05-10T12:01:13","date_gmt":"2025-05-10T04:01:13","guid":{"rendered":"https:\/\/server.hk\/cnblog\/201662\/"},"modified":"2025-05-10T12:01:13","modified_gmt":"2025-05-10T04:01:13","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8redis%e4%b8%ad%e6%89%a7%e8%a1%8clua%e8%84%9a%e6%9c%ac%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/201662\/","title":{"rendered":"\u5982\u4f55\u5728Redis\u4e2d\u6267\u884cLua\u811a\u672c\uff1f"},"content":{"rendered":"<p><b><\/b> <\/p>\n<h1>\u5982\u4f55\u5728Redis\u4e2d\u6267\u884cLua\u811a\u672c\uff1f<\/h1>\n<p><span style=\"cursor: pointer\"><i><\/i>\u6536\u85cf<\/span> <\/p>\n<p>\u6700\u8fd1\u53d1\u73b0\u4e0d\u5c11\u5c0f\u4f19\u4f34\u90fd\u5bf9<span style=\"color: #FF6600;font-family:\">\u6570\u636e\u5e93<\/span>\u5f88\u611f\u5174\u8da3\uff0c\u6240\u4ee5\u4eca\u5929\u7ee7\u7eed\u7ed9\u5927\u5bb6\u4ecb\u7ecd<span style=\"color: #FF6600;font-family:\">\u6570\u636e\u5e93<\/span>\u76f8\u5173\u7684\u77e5\u8bc6\uff0c\u672c\u6587<span style=\"color: #FF6600;font-family:\">\u300a\u5982\u4f55\u5728Redis\u4e2d\u6267\u884cLua\u811a\u672c\uff1f\u300b<\/span>\u4e3b\u8981\u5185\u5bb9\u6d89\u53ca\u5230<span style=\"color: #FF6600;font-family:\">Redis\u3001lua\u811a\u672c<\/span>\u7b49\u7b49\u77e5\u8bc6\u70b9\uff0c\u5e0c\u671b\u80fd\u5e2e\u5230\u4f60\uff01\u5f53\u7136\u5982\u679c\u9605\u8bfb\u672c\u6587\u65f6\u5b58\u5728\u4e0d\u540c\u60f3\u6cd5\uff0c\u53ef\u4ee5\u5728\u8bc4\u8bba\u4e2d\u8868\u8fbe\uff0c\u4f46\u662f\u8bf7\u52ff\u4f7f\u7528\u8fc7\u6fc0\u7684\u63aa\u8f9e~<\/p>\n<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20230412\/168130098264369df64fe99.png\" style=\"max-width:100%\" class=\"aligncenter\"> <\/p>\n<h2>Redis\u4e2d\u9700\u8981\u6267\u884cLua\u811a\u672c\u7684\u573a\u666f<\/h2>\n<p><span style=\"color: #404040\">Redis\u4e2d\u6bcf\u6761\u547d\u4ee4\u90fd\u662f\u539f\u5b50\u6027\u7684\uff0c\u5373\u6267\u884c\u7ed3\u679c\u8981\u4e48\u5168\u90e8\u6210\u529f\u8981\u4e48\u5168\u90e8\u5931\u8d25\u3002\u5728\u67d0\u4e9b\u4e1a\u52a1\u573a\u666f\u4e0b\uff0c\u9700\u8981\u6267\u884c\u591a\u6761\u547d\u4ee4\uff0c\u5e76\u4e14\u8981\u4fdd\u8bc1\u591a\u6761\u547d\u4ee4\u7684\u539f\u5b50\u6027\u3002\u8fd9\u65f6\uff0c\u5982\u679c\u547d\u4ee4\u9010\u6761\u6267\u884c\uff0c\u663e\u7136\u662f\u4e0d\u80fd\u4fdd\u8bc1\u539f\u5b50\u6027\u7684\u3002\u6709\u540c\u5b66\u53ef\u80fd\u4f1a\u60f3\u5230\u4f7f\u7528Redis\u7684\u4e8b\u52a1\u529f\u80fd\uff0c\u4e8b\u52a1\u662f\u53ef\u4ee5\u4fdd\u8bc1\u539f\u5b50\u6027\uff0c\u4f46\u662f\u53d7\u9650\u4e8e\u547d\u4ee4\u7684\u529f\u80fd\uff0c\u6709\u4e9b\u573a\u666f\u4e0b\u5e76\u4e0d\u80fd\u5b9e\u73b0\u60f3\u8981\u7684\u529f\u80fd\u3002<\/span><\/p>\n<p><span style=\"color: #404040\">\u4f7f\u7528\u6267\u884cLua\u811a\u672c\u7684\u65b9\u5f0f\u53ef\u4ee5\u89e3\u51b3\u4ee5\u4e0a\u95ee\u9898\uff0cLua\u811a\u672c\u6574\u4f53\u4e0a\u5728Redis\u4e2d\u662f\u539f\u5b50\u6027\u7684\u3002<\/span><\/p>\n<h2>\u5728Redis\u4e2d\u6267\u884cLua\u811a\u672c<\/h2>\n<p><span style=\"color: #404040\">\u5728Redis\u4e2d\u901a\u8fc7EVAL\u547d\u4ee4\u6765\u6267\u884cLua\u811a\u672c\uff0c<\/span><span style=\"color: #333333\">\u57fa\u672c\u8bed\u6cd5\u5982\u4e0b\uff1a<\/span><\/p>\n<p><span>redis<\/span> <span style=\"color: #005cc5\">127.0<\/span><span style=\"color: #005cc5\">.0<\/span><span style=\"color: #005cc5\">.1<\/span>:<span style=\"color: #005cc5\">6379<\/span><span style=\"color: #d73a49\">&gt;<\/span> <span>EVAL<\/span> <span>script<\/span> <span>numkeys<\/span> <span>key<\/span> [<span>key<\/span> &#8230;] <span>arg<\/span> [<span>arg<\/span> &#8230;]<\/p>\n<p><span style=\"color: #333333\">\u53c2\u6570\u8bf4\u660e\uff1a<\/span><\/p>\n<ul>\n<li><span style=\"color: #333333\"><strong>script<\/strong>\uff1a \u53c2\u6570\u662f\u4e00\u6bb5Lua\u811a\u672c\u7a0b\u5e8f\u3002\u811a\u672c\u4e0d\u5fc5(\u4e5f\u4e0d\u5e94\u8be5)\u5b9a\u4e49\u4e3a\u4e00\u4e2a Lua \u51fd\u6570\u3002<\/span><\/li>\n<li><span style=\"color: #333333\"><strong>numkeys<\/strong>\uff1a \u7528\u4e8e\u6307\u5b9a\u952e\u540d\u53c2\u6570\u7684\u4e2a\u6570\u3002<\/span><\/li>\n<li><span style=\"color: #333333\"><strong>key [key &#8230;]<\/strong>\uff1a \u4ece EVAL \u7684\u7b2c\u4e09\u4e2a\u53c2\u6570\u5f00\u59cb\u7b97\u8d77\uff0c\u8868\u793a\u5728\u811a\u672c\u4e2d\u6240\u7528\u5230\u7684\u90a3\u4e9b Redis \u952e(key)\uff0c\u8fd9\u4e9b\u952e\u540d\u53c2\u6570\u53ef\u4ee5\u5728 Lua \u4e2d\u901a\u8fc7\u5168\u5c40\u53d8\u91cf KEYS \u6570\u7ec4\uff0c\u7528 1 \u4e3a\u57fa\u5740\u7684\u5f62\u5f0f\u8bbf\u95ee( KEYS[1] \uff0c KEYS[2] \uff0c\u4ee5\u6b64\u7c7b\u63a8)\u3002<\/span><\/li>\n<li><span style=\"color: #333333\"><strong>arg [arg &#8230;]<\/strong>\uff1a \u9644\u52a0\u53c2\u6570\uff0c\u5728 Lua \u4e2d\u901a\u8fc7\u5168\u5c40\u53d8\u91cf ARGV \u6570\u7ec4\u8bbf\u95ee\uff0c\u8bbf\u95ee\u7684\u5f62\u5f0f\u548c KEYS \u53d8\u91cf\u7c7b\u4f3c( ARGV[1] \u3001 ARGV[2] \uff0c\u8bf8\u5982\u6b64\u7c7b)\u3002<\/span><\/li>\n<\/ul>\n<p>\u83b7\u53d6\u6307\u5b9akey\u7684\u503c\uff0c\u76f8\u5f53\u4e8e\u4e8e GET somekey<\/p>\n<p><span>EVAL<\/span> <span style=\"color: #690\">&#8220;return redis.call(&#8216;GET&#8217;, KEYS[1])&#8221;<\/span> <span style=\"color: #005cc5\">1<\/span> <span>somekey<\/span><\/p>\n<p>\u518d\u770b\u4e00\u4e2aLPUSH\u7684\u4f8b\u5b50\uff0c\u76f8\u5f53\u4e8e LPUSH somelist 1 2 3<\/p>\n<p><span>EVAL<\/span> <span style=\"color: #690\">&#8220;return redis.call(&#8216;LPUSH&#8217;,KEYS[1], ARGV[1], ARGV[2], ARGV[3])&#8221;<\/span> <span style=\"color: #005cc5\">1<\/span> <span>somelist<\/span> <span style=\"color: #005cc5\">1<\/span> <span style=\"color: #005cc5\">2<\/span> <span style=\"color: #005cc5\">3<\/span><\/p>\n<p>\u7b80\u5355\u8bf4\u4e0bRedis\u6267\u884clua\u811a\u672c\u76f8\u5173\u7684\u5176\u4ed6\u51e0\u4e2a\u547d\u4ee4\uff1a<\/p>\n<ul>\n<li>EVALSHA\u547d\u4ee4\u6839\u636e\u7ed9\u5b9a\u7684SHA1\uff0c\u6267\u884c\u7f13\u5b58\u5728\u670d\u52a1\u5668\u4e2d\u7684\u811a\u672c\u3002<\/li>\n<li>SCRIPT EXISTS\u547d\u4ee4\u7528\u4e8e\u68c0\u67e5\u6307\u5b9aSHA1\u503c\u5bf9\u5e94\u7684\u811a\u672c\u662f\u5426\u5728Redis\u7f13\u5b58\u4e2d\u3002<\/li>\n<li>SCRIPT FLUSH\u547d\u4ee4\u7528\u4e8e\u6e05\u9664\u6240\u6709\u7684\u7f13\u5b58\u811a\u672c\u3002<\/li>\n<li>SCRIPT KILL\u547d\u4ee4\u7528\u4e8e\u6740\u6b7b\u5f53\u524d\u6b63\u5728\u8fd0\u884c\u7684 Lua \u811a\u672c\uff0c\u5f53\u4e14\u4ec5\u5f53\u8fd9\u4e2a\u811a\u672c\u6ca1\u6709\u6267\u884c\u8fc7\u4efb\u4f55\u5199\u64cd\u4f5c\u65f6\uff0c\u8fd9\u4e2a\u547d\u4ee4\u624d\u751f\u6548\u3002<span style=\"color: #333333\">\u8fd9\u4e2a\u547d\u4ee4\u4e3b\u8981\u7528\u4e8e\u7ec8\u6b62\u8fd0\u884c\u65f6\u95f4\u8fc7\u957f\u7684\u811a\u672c\uff0c\u6bd4\u5982\u4e00\u4e2a\u56e0\u4e3a BUG \u800c\u53d1\u751f\u65e0\u9650\u5faa\u73af\u7684\u811a\u672c\u3002SCRIPT KILL \u6267\u884c\u4e4b\u540e\uff0c\u5f53\u524d\u6b63\u5728\u8fd0\u884c\u7684\u811a\u672c\u4f1a\u88ab\u6740\u6b7b\uff0c\u6267\u884c\u8fd9\u4e2a\u811a\u672c\u7684\u5ba2\u6237\u7aef\u4f1a\u4ece EVAL \u547d\u4ee4\u7684\u963b\u585e\u5f53\u4e2d\u9000\u51fa\uff0c\u5e76\u6536\u5230\u4e00\u4e2a\u9519\u8bef\u4f5c\u4e3a\u8fd4\u56de\u503c\u3002<\/span><\/li>\n<\/ul>\n<h2>Lua\u811a\u672c\u4e2d\u8c03\u7528Reids\u547d\u4ee4<\/h2>\n<p>\u8c03\u7528Redis\u547d\u4ee4\uff0c\u5f53\u6267\u884c\u51fa\u9519\u65f6\uff0c\u8be5\u65b9\u6cd5\u4f1a\u76f4\u63a5\u8fd4\u56de\u9519\u8bef\uff0c\u5e76\u9000\u51fa\u3002<\/p>\n<p><span>redis<\/span>.<span>call<\/span>(<span>redisCommand<\/span>, <span>key<\/span>, <span>argv<\/span>&#8230;)<\/p>\n<p>\u8c03\u7528Redis\u547d\u4ee4\uff0c\u5f53\u6267\u884c\u51fa\u9519\u65f6\uff0c\u8bb0\u5f55\u9519\u8bef\u4fe1\u606f\uff0c\u5e76\u7ee7\u7eed\u6267\u884c\u3002<\/p>\n<p><span>redis<\/span>.<span>pcall<\/span>(<span>redisCommand<\/span>, <span>key<\/span>, <span>argv<\/span>&#8230;)<\/p>\n<p>\u8bb0\u5f55\u65e5\u5fd7\uff0c\u5199\u5165\u5230Redis\u914d\u7f6e\u7684\u65e5\u5fd7\u6587\u4ef6\u4e2d\uff0c\u65e5\u5fd7\u7ea7\u522b\u6709\u56db\u79cd\uff0c\u5206\u522b\u662fredis.LOG_DEBUG\u3001redis.LOG_VERBOS\u3001redis.LOG_NOTICE\u548credis.LOG_WARNING\u3002<\/p>\n<p><span>redis<\/span>.<span>log<\/span>(<span>logLevel<\/span>, <span>message<\/span>)<\/p>\n<p>\u8ba1\u7b97\u8f93\u5165\u5b57\u7b26\u4e32\u7684sha1\u54c8\u5e0c\u503c\u3002<\/p>\n<p>redis.sha1hex(arvg)<\/p>\n<h2>Lua\u4e0eRedis\u7c7b\u578b\u8f6c\u6362<\/h2>\n<p><span style=\"color: #404040\">Redis\u8c03\u7528Lua\u811a\u672c\uff0c\u811a\u672c\u6267\u884c\u5b8c\u6210\u540e\u5c06\u7ed3\u679c\u8fd4\u56de\u7ed9Redis\uff0cRedis\u518d\u5c06\u7ed3\u679c\u8fd4\u56de\u7ed9\u5ba2\u6237\u7aef\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\u4f1a\u51fa\u73b0Redis\u6267\u884c\u7ed3\u679c\u7c7b\u578b\u5230Lua\u6570\u636e\u7c7b\u578b\u7684\u8f6c\u6362\uff0c\u7136\u540eLua\u7c7b\u578b\u5230Redis\u7c7b\u578b\u7684\u8f6c\u6362\u3002Redis\u7c7b\u578b\u5230Lua\u7c7b\u578b\u8f6c\u6362\u5173\u7cfb\u5982\u4e0b\uff1a<\/span><\/p>\n<table style=\"width: 100%;border-collapse: collapse\">\n<tbody>\n<tr>\n<td style=\"vertical-align: top;line-height: 2;min-width: auto;margin: 4px 8px;padding: 4px 8px;cursor: default\">\n<p><span style=\"color: #404040\"><strong>Redis\u8fd4\u56de\u7684\u6570\u636e\u7c7b\u578b<\/strong><\/span><\/p>\n<\/td>\n<td style=\"vertical-align: top;line-height: 2;min-width: auto;margin: 4px 8px;padding: 4px 8px;cursor: default\">\n<p><span style=\"color: #404040\"><strong>Lua\u6570\u636e\u7c7b\u578b<\/strong><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align: top;line-height: 2;min-width: auto;margin: 4px 8px;padding: 4px 8px;cursor: default\">\n<p><span style=\"color: #404040\">integer(\u6574\u6570\u56de\u590d)<\/span><\/p>\n<\/td>\n<td style=\"vertical-align: top;line-height: 2;min-width: auto;margin: 4px 8px;padding: 4px 8px;cursor: default\">\n<p><span style=\"color: #404040\">number(\u6570\u5b57\u7c7b\u578b)<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align: top;line-height: 2;min-width: auto;margin: 4px 8px;padding: 4px 8px;cursor: default\">\n<p><span style=\"color: #404040\">bulk replay(\u5b57\u7b26\u4e32)<\/span><\/p>\n<\/td>\n<td style=\"vertical-align: top;line-height: 2;min-width: auto;margin: 4px 8px;padding: 4px 8px;cursor: default\">\n<p><span style=\"color: #404040\">string(\u5b57\u7b26\u4e32\u7c7b\u578b)<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align: top;line-height: 2;min-width: auto;margin: 4px 8px;padding: 4px 8px;cursor: default\">\n<p><span style=\"color: #404040\">\u591a\u884c\u5b57\u7b26\u4e32<\/span><\/p>\n<\/td>\n<td style=\"vertical-align: top;line-height: 2;min-width: auto;margin: 4px 8px;padding: 4px 8px;cursor: default\">\n<p><span style=\"color: #404040\">table(\u6570\u7ec4\u5f62\u5f0f)<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align: top;line-height: 2;min-width: auto;margin: 4px 8px;padding: 4px 8px;cursor: default\">\n<p><span style=\"color: #404040\">status(\u72b6\u6001\u56de\u590d)<\/span><\/p>\n<\/td>\n<td style=\"vertical-align: top;line-height: 2;min-width: auto;margin: 4px 8px;padding: 4px 8px;cursor: default\">\n<p><span style=\"color: #404040\">table(\u53ea\u6709\u4e00\u4e2aok\u5b57\u6bb5\u7684\u6570\u7ec4)<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align: top;line-height: 2;min-width: auto;margin: 4px 8px;padding: 4px 8px;cursor: default\">\n<p><span style=\"color: #404040\">error(\u9519\u8bef\u56de\u590d)<\/span><\/p>\n<\/td>\n<td style=\"vertical-align: top;line-height: 2;min-width: auto;margin: 4px 8px;padding: 4px 8px;cursor: default\">\n<p><span style=\"color: #404040\">table(\u53ea\u6709\u4e00\u4e2aerr\u5b57\u6bb5\u7684\u6570\u7ec4)<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"color: #404040\">Lua\u7c7b\u578b\u5230Redis\u7c7b\u578b\u8f6c\u6362\u5173\u7cfb\u5982\u4e0b\uff1a<\/span><\/p>\n<table style=\"width: 100%;border-collapse: collapse\">\n<tbody>\n<tr>\n<td style=\"vertical-align: top;line-height: 2;min-width: auto;margin: 4px 8px;padding: 4px 8px;cursor: default\">\n<p><span style=\"color: #404040\"><strong>Lua\u6570\u636e\u7c7b\u578b<\/strong><\/span><\/p>\n<\/td>\n<td style=\"vertical-align: top;line-height: 2;min-width: auto;margin: 4px 8px;padding: 4px 8px;cursor: default\">\n<p><span style=\"color: #404040\"><strong>Redis\u8fd4\u56de\u6570\u636e\u7c7b\u578b<\/strong><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align: top;line-height: 2;min-width: auto;margin: 4px 8px;padding: 4px 8px;cursor: default\">\n<p><span style=\"color: #404040\">number(\u6570\u5b57\u7c7b\u578b)<\/span><\/p>\n<\/td>\n<td style=\"vertical-align: top;line-height: 2;min-width: auto;margin: 4px 8px;padding: 4px 8px;cursor: default\">\n<p><span style=\"color: #404040\">integer(\u6574\u6570\u56de\u590d)<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align: top;line-height: 2;min-width: auto;margin: 4px 8px;padding: 4px 8px;cursor: default\">\n<p><span style=\"color: #404040\">string(\u5b57\u7b26\u4e32\u7c7b\u578b)<\/span><\/p>\n<\/td>\n<td style=\"vertical-align: top;line-height: 2;min-width: auto;margin: 4px 8px;padding: 4px 8px;cursor: default\">\n<p><span style=\"color: #404040\">bulk replay(\u5b57\u7b26\u4e32)<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align: top;line-height: 2;min-width: auto;margin: 4px 8px;padding: 4px 8px;cursor: default\">\n<p><span style=\"color: #404040\">table(\u6570\u7ec4\u5f62\u5f0f)<\/span><\/p>\n<\/td>\n<td style=\"vertical-align: top;line-height: 2;min-width: auto;margin: 4px 8px;padding: 4px 8px;cursor: default\">\n<p><span style=\"color: #404040\">\u591a\u884c\u5b57\u7b26\u4e32<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align: top;line-height: 2;min-width: auto;margin: 4px 8px;padding: 4px 8px;cursor: default\">\n<p><span style=\"color: #404040\">table(\u53ea\u6709\u4e00\u4e2aok\u5b57\u6bb5\u7684\u6570\u7ec4)<\/span><\/p>\n<\/td>\n<td style=\"vertical-align: top;line-height: 2;min-width: auto;margin: 4px 8px;padding: 4px 8px;cursor: default\">\n<p><span style=\"color: #404040\">status(\u72b6\u6001\u56de\u590d)<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align: top;line-height: 2;min-width: auto;margin: 4px 8px;padding: 4px 8px;cursor: default\">\n<p><span style=\"color: #404040\">table(\u53ea\u6709\u4e00\u4e2aerr\u5b57\u6bb5\u7684\u6570\u7ec4)<\/span><\/p>\n<\/td>\n<td style=\"vertical-align: top;line-height: 2;min-width: auto;margin: 4px 8px;padding: 4px 8px;cursor: default\">\n<p><span style=\"color: #404040\">error(\u9519\u8bef\u56de\u590d)<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u5728Redis\u4e2d\u6267\u884cLua\u811a\u672c&#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-201662","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/201662","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=201662"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/201662\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=201662"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=201662"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=201662"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}