{"id":201801,"date":"2025-05-10T10:52:32","date_gmt":"2025-05-10T02:52:32","guid":{"rendered":"https:\/\/server.hk\/cnblog\/201801\/"},"modified":"2025-05-10T10:52:32","modified_gmt":"2025-05-10T02:52:32","slug":"redis%e4%b8%ad-hyperloglog%e6%95%b0%e6%8d%ae%e7%b1%bb%e5%9e%8b%e4%bd%bf%e7%94%a8%e5%b0%8f%e7%bb%93","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/201801\/","title":{"rendered":"Redis\u4e2d\u00a0HyperLogLog\u6570\u636e\u7c7b\u578b\u4f7f\u7528\u5c0f\u7ed3"},"content":{"rendered":"<p><b><\/b> <\/p>\n<h1>Redis\u4e2d&nbsp;HyperLogLog\u6570\u636e\u7c7b\u578b\u4f7f\u7528\u5c0f\u7ed3<\/h1>\n<p><span style=\"cursor: pointer\"><i><\/i>\u6536\u85cf<\/span> <\/p>\n<p>\u4e00\u5206\u8015\u8018\uff0c\u4e00\u5206\u6536\u83b7\uff01\u65e2\u7136\u6253\u5f00\u4e86\u8fd9\u7bc7\u6587\u7ae0<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300aRedis\u4e2d&nbsp;HyperLogLog\u6570\u636e\u7c7b\u578b\u4f7f\u7528\u5c0f\u7ed3\u300b<\/span>\uff0c\u5c31\u575a\u6301\u770b\u4e0b\u53bb\u5427\uff01\u6587\u4e2d\u5185\u5bb9\u5305\u542b<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u6570\u636e\u7c7b\u578b\u3001RedisHyperLogLog<\/span>\u7b49\u7b49\u77e5\u8bc6\u70b9&#8230;\u5e0c\u671b\u4f60\u80fd\u5728\u9605\u8bfb\u672c\u6587\u540e\uff0c\u80fd\u771f\u771f\u5b9e\u5b9e\u5b66\u5230\u77e5\u8bc6\u6216\u8005\u5e2e\u4f60\u89e3\u51b3\u5fc3\u4e2d\u7684\u7591\u60d1\uff0c\u4e5f\u6b22\u8fce\u5927\u4f6c\u6216\u8005\u65b0\u4eba\u670b\u53cb\u4eec\u591a\u7559\u8a00\u8bc4\u8bba\uff0c\u591a\u7ed9\u5efa\u8bae\uff01\u8c22\u8c22\uff01<\/p>\n<h2>1. HyperLogLog \u7684\u539f\u7406<\/h2>\n<p>\u3000\u3000Redis HyperLogLog\u57fa\u4e8e\u4e00\u79cd\u79f0\u4e3aHyperLogLog\u7b97\u6cd5\u7684\u6982\u7387\u6027\u7b97\u6cd5\u6765\u4f30\u8ba1\u57fa\u6570\u3002 HyperLogLog\u4f7f\u7528\u4e00\u4e2a\u957f\u5ea6\u4e3am\u7684\u4f4d\u6570\u7ec4\u548c\u4e00\u4e9bhash\u51fd\u6570\u6765\u4f30\u8ba1\u96c6\u5408\u4e2d\u7684\u552f\u4e00\u5143\u7d20\u6570\u3002<\/p>\n<p>\u5728 HyperLogLog \u7b97\u6cd5\u4e2d\uff0c\u5bf9\u6bcf\u4e2a\u5143\u7d20\u8fdb\u884c\u54c8\u5e0c\u5904\u7406\uff0c\u628a\u54c8\u5e0c\u503c\u8f6c\u6362\u4e3a\u4e8c\u8fdb\u5236\u540e\uff0c\u6839\u636e\u4e8c\u8fdb\u5236\u4e32\u524d\u7f00\u4e2d 1 \u7684\u4e2a\u6570\u6765\u7ed9\u6bcf\u4e2a\u5143\u7d20\u6253\u5206\u3002\u4f8b\u5982\uff0c\u4e00\u4e2a\u5143\u7d20\u7684\u54c8\u5e0c\u503c\u4e3a01110100011\uff0c\u90a3\u4e48\u524d\u7f00\u4e2d1\u7684\u4e2a\u6570\u662f3\uff0c\u56e0\u6b64\u5728 HyperLogLog \u7b97\u6cd5\u4e2d\uff0c\u8fd9\u4e2a\u5143\u7d20\u7684\u5206\u6570\u4e3a3\u3002<\/p>\n<p>\u3000\u3000\u5f53\u6240\u6709\u5143\u7d20\u7684\u5206\u6570\u7edf\u8ba1\u5b8c\u4e4b\u540e\uff0c\u53d6\u6bcf\u4e00\u4e2a\u5206\u6570\u7684\u5012\u6570\uff081 \/ 2^n\uff09\uff0c\u7136\u540e\u5c06\u8fd9\u4e9b\u5012\u6570\u76f8\u52a0\u540e\u53d6\u5012\u6570\uff0c\u5c31\u5f97\u5230\u4e00\u4e2a\u57fa\u6570\u4f30\u8ba1\u503c\uff0c\u8fd9\u4e2a\u503c\u5c31\u662fHyperLogLog\u7b97\u6cd5\u7684\u4f30\u8ba1\u7ed3\u679c\u3002<\/p>\n<p>\u3000\u3000HyperLogLog\u7b97\u6cd5\u901a\u8fc7\u5bf9\u4f4d\u6570\u7ec4\u7684\u957f\u5ea6m\u7684\u5927\u5c0f\u8fdb\u884c\u53d6\u820d\uff0c\u6298\u8877\u6570\u636e\u7ed3\u6784\u5360\u7528\u7684\u5185\u5b58\u4e0e\u4f30\u8ba1\u503c\u7684\u7cbe\u51c6\u5ea6\uff08\u5373\u4f30\u8ba1\u8bef\u5dee\uff09\uff0c\u5f97\u5230\u4e86\u5728\u6570\u636e\u5360\u7528\u7a7a\u95f4\u4e0e\u9519\u8bef\u8f83\u5c0f\u7a0b\u5ea6\u4e4b\u95f4\u5b8c\u7f8e\u7684\u5e73\u8861\u3002<\/p>\n<p>\u3000\u3000\u7b80\u800c\u8a00\u4e4b\uff0cHyperLogLog\u7b97\u6cd5\u7684\u6838\u5fc3\u601d\u60f3\u662f\u57fa\u4e8e\u54c8\u5e0c\u51fd\u6570\u548c\u4f4d\u8fd0\u7b97\uff0c\u901a\u8fc7\u5c06\u54c8\u5e0c\u503c\u8f6c\u6362\u6210\u6bd4\u7279\u6d41\u5e76\u7edf\u8ba1\u524d\u5bfc0\u7684\u4e2a\u6570\uff0c\u4ece\u800c\u5feb\u901f\u4f30\u7b97\u5927\u578b\u6570\u636e\u96c6\u4e2d\u552f\u4e00\u503c\u7684\u6570\u91cf\u3002\u901a\u8fc7 hyperloglog \u7b97\u6cd5\u6211\u4eec\u53ef\u4ee5\u5728\u975e\u5e38\u5927\u7684\u6570\u636e\u96c6\u4e2d\u8fdb\u884c\u6781\u901f\u7684\u7f51\u9875\u6d4f\u89c8\u5668\u53bb\u91cd\u3002<\/p>\n<h2>2.\u4f7f\u7528\u6b65\u9aa4\uff1a<\/h2>\n<p>\u3000\u3000Redis HyperLogLog\u662f\u4e00\u79cd\u53ef\u7528\u4e8e\u4f30\u7b97\u96c6\u5408\u4e2d\u5143\u7d20\u6570\u91cf\u7684\u6570\u636e\u7ed3\u6784\uff0c\u5b83\u80fd\u591f\u901a\u8fc7\u4f7f\u7528\u975e\u5e38\u5c11\u7684\u5185\u5b58\u6765\u7ef4\u62a4\u6d77\u91cf\u7684\u6570\u636e\u3002\u5b83\u7684\u7cbe\u786e\u5ea6\u8981\u6bd4\u4f7f\u7528\u4e00\u822c\u7684\u4f30\u8ba1\u7b97\u6cd5\u9ad8\uff0c\u5e76\u4e14\u5728\u5904\u7406\u5927\u91cf\u6570\u636e\u65f6\u7684\u901f\u5ea6\u4e5f\u975e\u5e38\u5feb\u3002<\/p>\n<p>\u3000\u3000\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\uff0c\u6211\u4eec\u53ef\u4ee5\u7528HyperLogLog\u6765\u8ba1\u7b97\u8bbf\u95ee\u7f51\u7ad9\u7684\u72ec\u7acbIP\u6570\uff0c\u5177\u4f53\u53ef\u4ee5\u6309\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a<\/p>\n<ul>\n<li>\u9996\u5148\u521b\u5efa\u4e00\u4e2aHyperLogLog\u6570\u636e\u7ed3\u6784\uff1a\u3000\u3000<code>PFADD hll:unique_ips 127.0.0.1<\/code><\/li>\n<li>\u4e3a\u6bcf\u6b21\u8bbf\u95eeip\u6dfb\u52a0\u5230unique_ips\u6570\u636e\u7ed3\u6784\u4e2d\uff1a <code>PFADD hll:unique_ips 192.168.1.1<\/code><\/li>\n<li>\u83b7\u53d6\u8ba1\u7b97\u96c6\u5408\u4e2d\u5143\u7d20\u6570\u91cf\u7684\u8fd1\u4f3c\u503c: <code>PFCOUNT hll:unique_ips<\/code><\/li>\n<li>\u53ef\u4ee5\u901a\u8fc7\u5bf9\u591a\u4e2aHyperLogLog\u7ed3\u6784\uff08\u4f8b\u5982\u6309\u5929\u6216\u6309\u5c0f\u65f6\uff09\u7684\u5408\u5e76\uff0c\u6765\u83b7\u5f97\u66f4\u7cbe\u786e\u7684\u8ba1\u6570\u3002<\/li>\n<\/ul>\n<p>\u3000\u3000\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cHyperLogLog\u867d\u7136\u53ef\u4ee5\u8282\u7701\u5927\u91cf\u7684\u5185\u5b58\uff0c\u4f46\u5b83\u662f\u4e00\u79cd\u4f30\u8ba1\u7b97\u6cd5\uff0c\u8bef\u5dee\u8303\u56f4\u5e76\u4e0d\u662f\u5b8c\u5168\u7cbe\u786e\u7684\uff0c\u5b9e\u9645\u4f7f\u7528\u65f6\u5e94\u6ce8\u610f\u5176\u9002\u7528\u8303\u56f4\u3002<\/p>\n<h2>3.\u5b9e\u73b0\u8bf7\u6c42ip\u53bb\u91cd\u7684\u6d4f\u89c8\u91cf\u4f7f\u7528\u793a\u4f8b<\/h2>\n<p style=\"text-align:center\"><img decoding=\"async\" style=\"max-width:100%\" src=\"https:\/\/www.17golang.com\/uploads\/20230512\/1683881470645dfdfe2ae60.jpg1683881470645dfdfe2ae78.jpg\" class=\"aligncenter\"><\/p>\n<h2>4.Jedis\u5ba2\u6237\u7aef\u4f7f\u7528<\/h2>\n<p>\u3000\u30001. \u6dfb\u52a0\u4f9d\u8d56\uff0c\u5f15\u5165jedis\u4f9d\u8d56\uff1a<\/p>\n<pre>\n   \n    \n     redis.clients\n    \n    \n     jedis\n    \n    \n     3.6.0\n    \n   <\/pre>\n<p>\u3000\u30002.\u521b\u5efa\u4e00\u4e2aJedis\u5bf9\u8c61\uff1a<\/p>\n<pre>Jedis jedis = new Jedis(\"localhost\");<\/pre>\n<p>\u3000\u30003.\u5411HyperLogLog\u6570\u636e\u7ed3\u6784\u6dfb\u52a0\u5143\u7d20\uff1a<\/p>\n<pre>jedis.pfadd(\"hll:unique_ips\", \"127.0.0.1\");<\/pre>\n<p>\u3000\u30004.\u83b7\u53d6\u8ba1\u7b97\u96c6\u5408\u4e2d\u5143\u7d20\u6570\u91cf\u7684\u8fd1\u4f3c\u503c\uff1a<\/p>\n<pre>Long count = jedis.pfcount(\"hll:unique_ips\");\nSystem.out.println(count);<\/pre>\n<p>\u3000\u30005.\u53ef\u4ee5\u901a\u8fc7\u5bf9\u591a\u4e2aHyperLogLog\u7ed3\u6784\u7684\u5408\u5e76\u6765\u83b7\u5f97\u66f4\u7cbe\u786e\u7684\u8ba1\u6570\u3002\u5728Jedis\u4e2d\u53ef\u4ee5\u4f7f\u7528<code>PFMERGE<\/code>\u547d\u4ee4\u6765\u5408\u5e76HyperLogLog\u6570\u636e\u7ed3\u6784\uff1a<\/p>\n<pre>jedis.pfmerge(\"hll:unique_ips\", \"hll:unique_ips1\", \"hll:unique_ips2\", \"hll:unique_ips3\");<\/pre>\n<h2>5.Redission\u4f7f\u7528\u4f9d\u8d56<\/h2>\n<p>\u3000\u30001.\u521b\u5efaRedissonClient\u5bf9\u8c61<\/p>\n<pre>Config config = new Config();\nconfig.useSingleServer().setAddress(\"redis:\/\/localhost:6379\");\nRedissonClient redisson = Redisson.create(config);<\/pre>\n<p>\u3000\u30002.\u521b\u5efaRHyperLogLog\u5bf9\u8c61<\/p>\n<pre>RHyperLogLog\n   \n     uniqueIps = redisson.getHyperLogLog(\"hll:unique_ips\");\n   <\/pre>\n<p>\u3000\u30003.\u6dfb\u52a0\u5143\u7d20<\/p>\n<pre>uniqueIps.add(\"127.0.0.1\");<\/pre>\n<p>\u3000\u30004..\u83b7\u53d6\u8fd1\u4f3c\u6570\u91cf<\/p>\n<pre>long approximateCount = uniqueIps.count();\nSystem.out.println(approximateCount);<\/pre>\n<p>\u3000\u30005.\u5408\u5e76\u591a\u4e2aHyperLogLog\u5bf9\u8c61<\/p>\n<pre>RHyperLogLog\n   \n     uniqueIps1 = redisson.getHyperLogLog(\"hll:unique_ips1\");\nRHyperLogLog\n    \n      uniqueIps2 = redisson.getHyperLogLog(\"hll:unique_ips2\"); uniqueIps.mergeWith(uniqueIps1, uniqueIps2);\n    \n   <\/pre>\n<h2>6.HyperLogLog \u63d0\u4f9b\u4e86\u54ea\u4e9b\u7279\u6027\u548c\u65b9\u6cd5<\/h2>\n<p>\u3000\u3000\u7279\u6027\uff1a<\/p>\n<ul>\n<li>\u7cbe\u786e\u5ea6\u4f4e\uff0c\u4f46\u5360\u7528\u5185\u5b58\u6781\u5c11\u3002<\/li>\n<li>\u652f\u6301\u63d2\u5165\u65b0\u5143\u7d20\uff0c\u540c\u65f6\u4e0d\u4f1a\u91cd\u590d\u8ba1\u6570\u3002<\/li>\n<li>\u63d0\u4f9b\u6307\u4ee4\u6765\u4f18\u5316\u5185\u5b58\u4f7f\u7528\u548c\u8ba1\u6570\u51c6\u786e\u6027\u3002\u4f8b\u5982PFADD\u3001PFCOUNT\u3001PFMERGE\u7b49\u6307\u4ee4\u3002<\/li>\n<li>\u80fd\u591f\u4f30\u8ba1\u4e00\u4e2a\u6570\u636e\u96c6\u4e2d\u7684\u4e0d\u540c\u5143\u7d20\u6570\u91cf\uff0c\u5373\u96c6\u5408\u7684\u57fa\u6570(cardinality)\u3002<\/li>\n<li>\u652f\u6301\u5bf9\u591a\u4e2aHyperLogLog\u5bf9\u8c61\u8fdb\u884c\u5408\u5e76\u64cd\u4f5c\uff0c\u4ee5\u83b7\u5f97\u8fd9\u4e9b\u96c6\u5408\u7684\u603b\u57fa\u6570\u7684\u8fd1\u4f3c\u503c\u3002<\/li>\n<\/ul>\n<p>\u3000\u3000HyperLogLog\u5e38\u7528\u7684\u65b9\u6cd5\uff1a<\/p>\n<ul>\n<li>PFADD key element [element &#8230;]\uff1a\u6dfb\u52a0\u4e00\u4e2a\u6216\u591a\u4e2a\u5143\u7d20\u5230HyperLogLog\u7ed3\u6784\u4e2d\u3002<\/li>\n<li>PFCOUNT key [key &#8230;]\uff1a\u83b7\u53d6\u4e00\u4e2a\u6216\u591a\u4e2aHyperLogLog\u7ed3\u6784\u7684\u57fa\u6570\u4f30\u8ba1\u503c\u3002<\/li>\n<li>PFMERGE destkey sourcekey [sourcekey &#8230;]\uff1a\u5408\u5e76\u4e00\u4e2a\u6216\u591a\u4e2aHyperLogLog\u7ed3\u6784\u5230\u4e00\u4e2a\u76ee\u6807\u7ed3\u6784\u4e2d\u3002<\/li>\n<li>PFSELFTEST [numtests]: \u6d4b\u8bd5HyperLogLog\u4f30\u503c\u6027\u80fd\u548c\u51c6\u786e\u6027(\u4ec5\u9650Redis4.0+\u7248\u672c)<\/li>\n<\/ul>\n<p>\u3000\u3000\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cHyperLogLog\u867d\u7136\u53ef\u4ee5\u8282\u7701\u5927\u91cf\u5185\u5b58\uff0c\u4f46\u4ecd\u7136\u662f\u4e00\u79cd\u4f30\u8ba1\u7b97\u6cd5\uff0c\u8bef\u5dee\u8303\u56f4\u5e76\u4e0d\u662f\u5b8c\u5168\u7cbe\u786e\u7684\uff0c\u5e76\u4e14\u5177\u6709\u4e00\u5b9a\u7684\u8ba1\u7b97\u6210\u672c\u3002\u5728\u4f7f\u7528\u65f6\u9700\u8981\u6839\u636e\u5b9e\u9645\u5e94\u7528\u60c5\u51b5\u9009\u62e9\u662f\u5426\u4f7f\u7528HyperLogLog\u6216\u5176\u4ed6\u6570\u636e\u7ed3\u6784\u6765\u4f30\u8ba1\u5143\u7d20\u6570\u91cf\u3002<\/p>\n<h2>7.\u4f7f\u7528\u573a\u666f\u603b\u7ed3\uff1a<\/h2>\n<p>\u3000\u3000Redis\u4f7f\u7528HyperLogLog\u7684\u4e3b\u8981\u4f5c\u7528\u662f\u5728\u5927\u6570\u636e\u6d41\uff08view\uff0cIP\uff0c\u57ce\u5e02\uff09\u7684\u60c5\u51b5\u4e0b\u8fdb\u884c\u53bb\u91cd\u8ba1\u6570\u3002<\/p>\n<p>\u3000\u3000\u5177\u4f53\u6765\u8bf4\uff0c\u4ee5\u4e0b\u662fRedis HyperLogLog\u7528\u4e8e\u53bb\u91cd\u8ba1\u6570\u7684\u4e00\u4e9b\u573a\u666f\uff1a<\/p>\n<ul>\n<li>\u7edf\u8ba1\u9875\u9762\u8bbf\u95ee\u91cf &#8211; \u5728Web\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c HyperLogLog\u53ef\u4ee5\u4f7f\u7528\u4e3a\u6bcf\u4e2a\u9875\u9762\u8ba1\u7b97\u591a\u5c11\u6b21\u72ec\u7279\u7684\u8bbf\u95ee\u8005\u3002\u901a\u8fc7\u8de8\u8d8a\u591a\u4e2a\u4e0d\u540c\u7684\u65f6\u95f4\u6bb5\u4f7f\u7528HyperLogLog\uff0c\u53ef\u4ee5\u8ba1\u7b97\u51fa\u8fd9\u4e2a\u9875\u9762\u7684\u6240\u6709\u65f6\u95f4\u7684\u5e73\u5747\u8bbf\u95ee\u6570\u3002<\/li>\n<li>\u7edf\u8ba1\u7528\u6237\u6570 &#8211; \u5728\u5206\u6790\u5927\u6570\u636e\u96c6\u5408\u7684\u7528\u6237\u6570\u91cf\u65b9\u9762\uff0cHyperLogLog\u4e5f\u975e\u5e38\u6709\u7528\u3002\u4f5c\u4e3a\u4e00\u79cd\u57fa\u4e8e\u6982\u7387\u7684\u6570\u636e\u7ed3\u6784\uff0c\u5c24\u5176\u662f\u5728\u5904\u7406\u72ec\u7279\u7684\u7528\u6237ID\u8fd9\u6837\u7684\u6570\u636e\u96c6\u5408\u65f6\u3002\u5728\u6b64\u60c5\u51b5\u4e0b\uff0cHyperLogLog\u9996\u5148\u6267\u884c\u6563\u5217\uff0c\u6b64\u540e\u4ec5\u5728\u5185\u90e8\u5b58\u50a8\u6709\u9650\u7684\u6563\u5217\u503c\uff0c\u540c\u65f6\u8fd8\u80fd\u591f\u63a8\u65ad\u5927\u5c0f\u3002<\/li>\n<li>\u7edf\u8ba1\u5e7f\u544a\u70b9\u51fb\u91cf &#8211; \u5bf9\u4e8e\u7f51\u7ad9\u6216\u5e94\u7528\u7a0b\u5e8f\u7684\u5e7f\u544a\u5206\u6790\uff0cHyperLogLog\u53ef\u4ee5\u7528\u4e8e\u6355\u83b7\u6709\u6548\u70b9\u51fb\u6570\u91cf\uff0c\u5373\u975e\u91cd\u590d\u6216\u552f\u4e00\u70b9\u51fb\u6570\u91cf\u3002<\/li>\n<\/ul>\n<p>\u603b\u4e4b\uff0c\u5bf9\u4e8e\u9700\u8981\u8fdb\u884c\u53bb\u91cd\u8ba1\u6570\u7684\u5927\u6570\u636e\u6d41\u7684\u60c5\u51b5\u4e0b\uff0cRedis\u7684HyperLogLog\u662f\u4e00\u79cd\u7b80\u5355\u800c\u5f3a\u5927\u7684\u5de5\u5177\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Redis\u4e2d&nbsp;Hype&#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-201801","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/201801","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=201801"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/201801\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=201801"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=201801"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=201801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}