{"id":258,"date":"2023-02-24T06:14:44","date_gmt":"2023-02-23T22:14:44","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=258"},"modified":"2023-02-24T06:14:51","modified_gmt":"2023-02-23T22:14:51","slug":"redis-list","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/24\/redis-list\/","title":{"rendered":"Redis \u5217\u8868(List)"},"content":{"rendered":"<h2>Redis \u5217\u8868(List)<\/h2>\n<p>Redis\u5217\u8868\u662f\u7b80\u5355\u7684\u5b57\u7b26\u4e32\u5217\u8868\uff0c\u6309\u7167\u63d2\u5165\u987a\u5e8f\u6392\u5e8f\u3002\u53ef\u4ee5\u6dfb\u52a0\u4e00\u4e2a\u5143\u7d20\u5230\u5217\u8868\u7684\u5934\u90e8\uff08\u5de6\u8fb9\uff09\u6216\u8005\u5c3e\u90e8\uff08\u53f3\u8fb9\uff09<\/p>\n<p>\u4e00\u4e2a\u5217\u8868\u6700\u591a\u53ef\u4ee5\u5305\u542b 2^32 &#8211; 1 \u4e2a\u5143\u7d20 (4294967295, \u6bcf\u4e2a\u5217\u8868\u8d85\u8fc740\u4ebf\u4e2a\u5143\u7d20)<\/p>\n<p><!-- more --><\/p>\n<p><strong>\u5b9e\u4f8b<\/strong><\/p>\n<pre><code class=\"language-bash\">redis 127.0.0.1:6379&gt; LPUSH appblog redis\n(integer) 1\nredis 127.0.0.1:6379&gt; LPUSH appblog mongodb\n(integer) 2\nredis 127.0.0.1:6379&gt; LPUSH appblog mysql\n(integer) 3\nredis 127.0.0.1:6379&gt; LRANGE appblog 0 10\n\n1) &quot;mysql&quot;\n2) &quot;mongodb&quot;\n3) &quot;redis&quot;<\/code><\/pre>\n<p>\u5728\u4ee5\u4e0a\u5b9e\u4f8b\u4e2d\u6211\u4eec\u4f7f\u7528\u4e86 LPUSH \u5c06\u4e09\u4e2a\u503c\u63d2\u5165\u4e86\u540d\u4e3a appblog \u7684\u5217\u8868\u5f53\u4e2d<\/p>\n<h2>Redis \u5217\u8868\u547d\u4ee4<\/h2>\n<h3>BLPOP key1 [key2 ] timeout<\/h3>\n<p>\u79fb\u51fa\u5e76\u83b7\u53d6\u5217\u8868\u7684\u7b2c\u4e00\u4e2a\u5143\u7d20\uff0c\u5982\u679c\u5217\u8868\u6ca1\u6709\u5143\u7d20\u4f1a\u963b\u585e\u5217\u8868\u76f4\u5230\u7b49\u5f85\u8d85\u65f6\u6216\u53d1\u73b0\u53ef\u5f39\u51fa\u5143\u7d20\u4e3a\u6b62<\/p>\n<pre><code class=\"language-bash\">redis 127.0.0.1:6379&gt; BLPOP list1 list2 100<\/code><\/pre>\n<p>\u5728\u4ee5\u4e0a\u5b9e\u4f8b\u4e2d\uff0c\u64cd\u4f5c\u4f1a\u88ab\u963b\u585e\uff0c\u5982\u679c\u6307\u5b9a\u7684\u5217\u8868 list1 <strong>\u6216\u8005<\/strong> list2\uff08\u4f18\u5148 list1\uff09\u5b58\u5728\u6570\u636e\u5219\u4f1a\u8fd4\u56de\u7b2c\u4e00\u4e2a\u5143\u7d20\uff0c\u5426\u5219\u5728\u7b49\u5f85100\u79d2\u540e\u4f1a\u8fd4\u56de nil <\/p>\n<h3>BRPOP key1 [key2 ] timeout<\/h3>\n<p>\u79fb\u51fa\u5e76\u83b7\u53d6\u5217\u8868\u7684\u6700\u540e\u4e00\u4e2a\u5143\u7d20\uff0c\u5982\u679c\u5217\u8868\u6ca1\u6709\u5143\u7d20\u4f1a\u963b\u585e\u5217\u8868\u76f4\u5230\u7b49\u5f85\u8d85\u65f6\u6216\u53d1\u73b0\u53ef\u5f39\u51fa\u5143\u7d20\u4e3a\u6b62<\/p>\n<pre><code class=\"language-bash\">redis&gt; RPUSH list1 a b c\n(integer) 3\nredis&gt; BRPOP list1 list2 0\n1) &quot;list1&quot;\n2) &quot;c&quot;<\/code><\/pre>\n<h3>BRPOPLPUSH source destination timeout<\/h3>\n<p>\u4ece\u5217\u8868\u4e2d\u5f39\u51fa\u4e00\u4e2a\u503c\uff0c\u5c06\u5f39\u51fa\u7684\u5143\u7d20\u63d2\u5165\u5230\u53e6\u5916\u4e00\u4e2a\u5217\u8868\u4e2d\u5e76\u8fd4\u56de\u5b83\uff1b\u5982\u679c\u5217\u8868\u6ca1\u6709\u5143\u7d20\u4f1a\u963b\u585e\u5217\u8868\u76f4\u5230\u7b49\u5f85\u8d85\u65f6\u6216\u53d1\u73b0\u53ef\u5f39\u51fa\u5143\u7d20\u4e3a\u6b62<\/p>\n<pre><code class=\"language-bash\"># \u975e\u7a7a\u5217\u8868\n\nredis&gt; BRPOPLPUSH msg reciver 500\n&quot;hello moto&quot;                        # \u5f39\u51fa\u5143\u7d20\u7684\u503c\n(3.38s)                             # \u7b49\u5f85\u65f6\u957f\n\nredis&gt; LLEN reciver\n(integer) 1\n\nredis&gt; LRANGE reciver 0 0\n1) &quot;hello moto&quot;\n\n# \u7a7a\u5217\u8868\n\nredis&gt; BRPOPLPUSH msg reciver 1\n(nil)\n(1.34s)<\/code><\/pre>\n<h3>LINDEX key index<\/h3>\n<p>\u901a\u8fc7\u7d22\u5f15\u83b7\u53d6\u5217\u8868\u4e2d\u7684\u5143\u7d20\u3002\u4e5f\u53ef\u4ee5\u4f7f\u7528\u8d1f\u6570\u4e0b\u6807\uff0c\u4ee5 -1 \u8868\u793a\u5217\u8868\u7684\u6700\u540e\u4e00\u4e2a\u5143\u7d20\uff0c -2 \u8868\u793a\u5217\u8868\u7684\u5012\u6570\u7b2c\u4e8c\u4e2a\u5143\u7d20\uff0c\u4ee5\u6b64\u7c7b\u63a8\u3002<\/p>\n<pre><code class=\"language-bash\">redis 127.0.0.1:6379&gt; LPUSH mylist &quot;World&quot;\n(integer) 1\n\nredis 127.0.0.1:6379&gt; LPUSH mylist &quot;Hello&quot;\n(integer) 2\n\nredis 127.0.0.1:6379&gt; LINDEX mylist 0\n&quot;Hello&quot;\n\nredis 127.0.0.1:6379&gt; LINDEX mylist -1\n&quot;World&quot;\n\nredis 127.0.0.1:6379&gt; LINDEX mylist 3        # index\u4e0d\u5728 mylist \u7684\u533a\u95f4\u8303\u56f4\u5185\n(nil)<\/code><\/pre>\n<h3>LINSERT key BEFORE|AFTER pivot value<\/h3>\n<p>\u5728\u5217\u8868\u7684\u5143\u7d20\u524d\u6216\u8005\u540e\u63d2\u5165\u5143\u7d20<\/p>\n<ul>\n<li>\u5f53\u6307\u5b9a\u5143\u7d20\u4e0d\u5b58\u5728\u4e8e\u5217\u8868\u4e2d\u65f6\uff0c\u4e0d\u6267\u884c\u4efb\u4f55\u64cd\u4f5c<\/li>\n<li>\u5f53\u5217\u8868\u4e0d\u5b58\u5728\u65f6\uff0c\u88ab\u89c6\u4e3a\u7a7a\u5217\u8868\uff0c\u4e0d\u6267\u884c\u4efb\u4f55\u64cd\u4f5c<\/li>\n<li>\u5982\u679c key \u4e0d\u662f\u5217\u8868\u7c7b\u578b\uff0c\u8fd4\u56de\u4e00\u4e2a\u9519\u8bef<\/li>\n<li>\u5982\u679c\u547d\u4ee4\u6267\u884c\u6210\u529f\uff0c\u8fd4\u56de\u63d2\u5165\u64cd\u4f5c\u5b8c\u6210\u4e4b\u540e\uff0c\u5217\u8868\u7684\u957f\u5ea6<\/li>\n<li>\u5982\u679c\u6ca1\u6709\u627e\u5230\u6307\u5b9a\u5143\u7d20\uff0c\u8fd4\u56de -1\u3002\u5982\u679c key \u4e0d\u5b58\u5728\u6216\u4e3a\u7a7a\u5217\u8868\uff0c\u8fd4\u56de 0<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">redis&gt; RPUSH mylist &quot;Hello&quot;\n(integer) 1\nredis&gt; RPUSH mylist &quot;World&quot;\n(integer) 2\nredis&gt; LINSERT mylist BEFORE &quot;World&quot; &quot;There&quot;\n(integer) 3\nredis&gt; LRANGE mylist 0 -1\n1) &quot;Hello&quot;\n2) &quot;There&quot;\n3) &quot;World&quot;\nredis&gt; <\/code><\/pre>\n<h3>LLEN key<\/h3>\n<p>\u83b7\u53d6\u5217\u8868\u957f\u5ea6\u3002\u5982\u679c\u5217\u8868 key \u4e0d\u5b58\u5728\uff0c\u5219 key \u88ab\u89e3\u91ca\u4e3a\u4e00\u4e2a\u7a7a\u5217\u8868\uff0c\u8fd4\u56de 0\u3002\u5982\u679c key \u4e0d\u662f\u5217\u8868\u7c7b\u578b\uff0c\u8fd4\u56de\u4e00\u4e2a\u9519\u8bef<\/p>\n<pre><code class=\"language-bash\">redis 127.0.0.1:6379&gt; RPUSH list1 &quot;foo&quot;\n(integer) 1\nredis 127.0.0.1:6379&gt; RPUSH list1 &quot;bar&quot;\n(integer) 2\nredis 127.0.0.1:6379&gt; LLEN list1\n(integer) 2<\/code><\/pre>\n<h3>LPOP key<\/h3>\n<p>\u79fb\u51fa\u5e76\u83b7\u53d6\u5217\u8868\u7684\u7b2c\u4e00\u4e2a\u5143\u7d20<\/p>\n<pre><code class=\"language-bash\">redis 127.0.0.1:6379&gt; RPUSH list1 &quot;foo&quot;\n(integer) 1\nredis 127.0.0.1:6379&gt; RPUSH list1 &quot;bar&quot;\n(integer) 2\nredis 127.0.0.1:6379&gt; LPOP list1\n&quot;foo&quot;<\/code><\/pre>\n<h3>LPUSH key value1 [value2]<\/h3>\n<p>\u5c06\u4e00\u4e2a\u6216\u591a\u4e2a\u503c\u63d2\u5165\u5230\u5217\u8868\u5934\u90e8<\/p>\n<pre><code class=\"language-bash\">127.0.0.1:6379&gt; LPUSH list1 &quot;foo&quot;\n(integer) 1\n127.0.0.1:6379&gt; LPUSH list1 &quot;bar&quot;\n(integer) 2\n127.0.0.1:6379&gt; LRANGE list1 0 -1\n1) &quot;bar&quot;\n2) &quot;foo&quot;<\/code><\/pre>\n<h3>LPUSHX key value<\/h3>\n<p>\u5c06\u4e00\u4e2a\u503c\u63d2\u5165\u5230\u5df2\u5b58\u5728\u7684\u5217\u8868\u5934\u90e8\uff0c\u5217\u8868\u4e0d\u5b58\u5728\u65f6\u64cd\u4f5c\u65e0\u6548<\/p>\n<pre><code class=\"language-bash\">127.0.0.1:6379&gt; LPUSH list1 &quot;foo&quot;\n(integer) 1\n127.0.0.1:6379&gt; LPUSHX list1 &quot;bar&quot;\n(integer) 2\n127.0.0.1:6379&gt; LPUSHX list2 &quot;bar&quot;\n(integer) 0\n127.0.0.1:6379&gt; LRANGE list1 0 -1\n1) &quot;bar&quot;\n2) &quot;foo&quot;<\/code><\/pre>\n<h3>LRANGE key start stop<\/h3>\n<p>\u83b7\u53d6\u5217\u8868\u4e2d\u6307\u5b9a\u533a\u95f4\u5185\u7684\u5143\u7d20\uff0c\u533a\u95f4\u4ee5\u504f\u79fb\u91cf START \u548c END \u6307\u5b9a\u3002\u5176\u4e2d 0 \u8868\u793a\u5217\u8868\u7684\u7b2c\u4e00\u4e2a\u5143\u7d20\uff0c1 \u8868\u793a\u5217\u8868\u7684\u7b2c\u4e8c\u4e2a\u5143\u7d20\uff0c\u4ee5\u6b64\u7c7b\u63a8\u3002\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528\u8d1f\u6570\u4e0b\u6807\uff0c\u4ee5 -1 \u8868\u793a\u5217\u8868\u7684\u6700\u540e\u4e00\u4e2a\u5143\u7d20\uff0c-2 \u8868\u793a\u5217\u8868\u7684\u5012\u6570\u7b2c\u4e8c\u4e2a\u5143\u7d20\uff0c\u4ee5\u6b64\u7c7b\u63a8\u3002<\/p>\n<pre><code class=\"language-bash\">redis&gt; RPUSH mylist &quot;one&quot;\n(integer) 1\nredis&gt; RPUSH mylist &quot;two&quot;\n(integer) 2\nredis&gt; RPUSH mylist &quot;three&quot;\n(integer) 3\nredis&gt; LRANGE mylist 0 0\n1) &quot;one&quot;\nredis&gt; LRANGE mylist -3 2\n1) &quot;one&quot;\n2) &quot;two&quot;\n3) &quot;three&quot;\nredis&gt; LRANGE mylist -100 100\n1) &quot;one&quot;\n2) &quot;two&quot;\n3) &quot;three&quot;\nredis&gt; LRANGE mylist 5 10\n(empty list or set)\nredis&gt;<\/code><\/pre>\n<h3>LREM key count value<\/h3>\n<p>\u6839\u636e\u53c2\u6570 COUNT \u7684\u503c\uff0c\u79fb\u9664\u5217\u8868\u4e2d\u4e0e\u53c2\u6570 VALUE \u76f8\u7b49\u7684\u5143\u7d20\u3002<\/p>\n<p>COUNT \u7684\u503c\u53ef\u4ee5\u662f\u4ee5\u4e0b\u51e0\u79cd\uff1a<\/p>\n<ul>\n<li><code>count &gt; 0<\/code>: \u4ece\u8868\u5934\u5f00\u59cb\u5411\u8868\u5c3e\u641c\u7d22\uff0c\u79fb\u9664\u4e0e VALUE \u76f8\u7b49\u7684\u5143\u7d20\uff0c\u6570\u91cf\u4e3a COUNT<\/li>\n<li><code>count &lt; 0<\/code>: \u4ece\u8868\u5c3e\u5f00\u59cb\u5411\u8868\u5934\u641c\u7d22\uff0c\u79fb\u9664\u4e0e VALUE \u76f8\u7b49\u7684\u5143\u7d20\uff0c\u6570\u91cf\u4e3a COUNT \u7684\u7edd\u5bf9\u503c<\/li>\n<li><code>count = 0<\/code>: \u79fb\u9664\u8868\u4e2d\u6240\u6709\u4e0e VALUE \u76f8\u7b49\u7684\u503c<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">redis&gt; RPUSH mylist &quot;hello&quot;\n(integer) 1\nredis&gt; RPUSH mylist &quot;hello&quot;\n(integer) 2\nredis&gt; RPUSH mylist &quot;foo&quot;\n(integer) 3\nredis&gt; RPUSH mylist &quot;hello&quot;\n(integer) 4\nredis&gt; LREM mylist -2 &quot;hello&quot;\n(integer) 2\nredis&gt; LRANGE mylist 0 -1\n1) &quot;hello&quot;\n2) &quot;foo&quot;\nredis&gt; <\/code><\/pre>\n<h3>LSET key index value<\/h3>\n<p>\u901a\u8fc7\u7d22\u5f15\u8bbe\u7f6e\u5217\u8868\u5143\u7d20\u7684\u503c<\/p>\n<p>\u5f53\u7d22\u5f15\u53c2\u6570\u8d85\u51fa\u8303\u56f4\uff0c\u6216\u5bf9\u4e00\u4e2a\u7a7a\u5217\u8868\u8fdb\u884c LSET \u65f6\uff0c\u8fd4\u56de\u4e00\u4e2a\u9519\u8bef<\/p>\n<pre><code class=\"language-bash\">redis 127.0.0.1:6379&gt; RPUSH mylist &quot;hello&quot;\n(integer) 1\nredis 127.0.0.1:6379&gt; RPUSH mylist &quot;hello&quot;\n(integer) 2\nredis 127.0.0.1:6379&gt; RPUSH mylist &quot;foo&quot;\n(integer) 3\nredis 127.0.0.1:6379&gt; RPUSH mylist &quot;hello&quot;\n(integer) 4\nredis 127.0.0.1:6379&gt; LSET mylist 0 &quot;bar&quot;\nOK\nredis 127.0.0.1:6379&gt; LRANGE mylist 0 -1\n1: &quot;bar&quot;\n2) &quot;hello&quot;\n3) &quot;foo&quot;\n4) &quot;hello&quot;<\/code><\/pre>\n<h3>LTRIM key start stop<\/h3>\n<p>\u5bf9\u4e00\u4e2a\u5217\u8868\u8fdb\u884c\u4fee\u526a(trim)\uff0c\u5c31\u662f\u8bf4\uff0c\u8ba9\u5217\u8868\u53ea\u4fdd\u7559\u6307\u5b9a\u533a\u95f4\u5185\u7684\u5143\u7d20\uff0c\u4e0d\u5728\u6307\u5b9a\u533a\u95f4\u4e4b\u5185\u7684\u5143\u7d20\u90fd\u5c06\u88ab\u5220\u9664\u3002<\/p>\n<p>\u4e0b\u6807 0 \u8868\u793a\u5217\u8868\u7684\u7b2c\u4e00\u4e2a\u5143\u7d20\uff0c\u4ee5 1 \u8868\u793a\u5217\u8868\u7684\u7b2c\u4e8c\u4e2a\u5143\u7d20\uff0c\u4ee5\u6b64\u7c7b\u63a8\u3002 \u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528\u8d1f\u6570\u4e0b\u6807\uff0c\u4ee5 -1 \u8868\u793a\u5217\u8868\u7684\u6700\u540e\u4e00\u4e2a\u5143\u7d20\uff0c -2 \u8868\u793a\u5217\u8868\u7684\u5012\u6570\u7b2c\u4e8c\u4e2a\u5143\u7d20\uff0c\u4ee5\u6b64\u7c7b\u63a8\u3002<\/p>\n<pre><code class=\"language-bash\">redis 127.0.0.1:6379&gt; RPUSH mylist &quot;hello&quot;\n(integer) 1\nredis 127.0.0.1:6379&gt; RPUSH mylist &quot;hello&quot;\n(integer) 2\nredis 127.0.0.1:6379&gt; RPUSH mylist &quot;foo&quot;\n(integer) 3\nredis 127.0.0.1:6379&gt; RPUSH mylist &quot;bar&quot;\n(integer) 4\nredis 127.0.0.1:6379&gt; LTRIM mylist 1 -1\nOK\nredis 127.0.0.1:6379&gt; LRANGE mylist 0 -1\n1) &quot;hello&quot;\n2) &quot;foo&quot;\n3) &quot;bar&quot;<\/code><\/pre>\n<h3>RPOP key<\/h3>\n<p>\u79fb\u9664\u5217\u8868\u7684\u6700\u540e\u4e00\u4e2a\u5143\u7d20\uff0c\u8fd4\u56de\u503c\u4e3a\u79fb\u9664\u7684\u5143\u7d20<\/p>\n<pre><code class=\"language-bash\">redis&gt; RPUSH mylist &quot;one&quot;\n(integer) 1\nredis&gt; RPUSH mylist &quot;two&quot;\n(integer) 2\nredis&gt; RPUSH mylist &quot;three&quot;\n(integer) 3\nredis&gt; RPOP mylist\n&quot;three&quot;\nredis&gt; LRANGE mylist 0 -1\n1) &quot;one&quot;\n2) &quot;two&quot;\nredis&gt; <\/code><\/pre>\n<h3>RPOPLPUSH source destination<\/h3>\n<p>\u79fb\u9664\u5217\u8868\u7684\u6700\u540e\u4e00\u4e2a\u5143\u7d20\uff0c\u5e76\u5c06\u8be5\u5143\u7d20\u6dfb\u52a0\u5230\u53e6\u4e00\u4e2a\u5217\u8868\u5e76\u8fd4\u56de<\/p>\n<pre><code class=\"language-bash\">redis 127.0.0.1:6379&gt; RPUSH mylist &quot;hello&quot;\n(integer) 1\nredis 127.0.0.1:6379&gt; RPUSH mylist &quot;foo&quot;\n(integer) 2\nredis 127.0.0.1:6379&gt; RPUSH mylist &quot;bar&quot;\n(integer) 3\nredis 127.0.0.1:6379&gt; RPOPLPUSH mylist myotherlist\n&quot;bar&quot;\nredis 127.0.0.1:6379&gt; LRANGE mylist 0 -1\n1) &quot;hello&quot;\n2) &quot;foo&quot;<\/code><\/pre>\n<h3>RPUSH key value1 [value2]<\/h3>\n<p>\u5728\u5217\u8868\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u6216\u591a\u4e2a\u503c<\/p>\n<pre><code class=\"language-bash\">redis 127.0.0.1:6379&gt; RPUSH mylist &quot;hello&quot;\n(integer) 1\nredis 127.0.0.1:6379&gt; RPUSH mylist &quot;foo&quot;\n(integer) 2\nredis 127.0.0.1:6379&gt; RPUSH mylist &quot;bar&quot;\n(integer) 3\nredis 127.0.0.1:6379&gt; LRANGE mylist 0 -1\n1) &quot;hello&quot;\n2) &quot;foo&quot;\n3) &quot;bar&quot;<\/code><\/pre>\n<h3>RPUSHX key value<\/h3>\n<p>\u4e3a\u5df2\u5b58\u5728\u7684\u5217\u8868\u6dfb\u52a0\u503c\uff0c\u5982\u679c\u5217\u8868\u4e0d\u5b58\u5728\uff0c\u64cd\u4f5c\u65e0\u6548<\/p>\n<pre><code>redis 127.0.0.1:6379&gt; RPUSH mylist &quot;hello&quot;\n(integer) 1\nredis 127.0.0.1:6379&gt; RPUSH mylist &quot;foo&quot;\n(integer) 2\nredis 127.0.0.1:6379&gt; RPUSHX mylist2 &quot;bar&quot;\n(integer) 0\nredis 127.0.0.1:6379&gt; LRANGE mylist 0 -1\n1) &quot;hello&quot;\n2) &quot;foo&quot;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Redis \u5217\u8868(List) Redis\u5217\u8868\u662f\u7b80\u5355\u7684\u5b57\u7b26\u4e32\u5217\u8868\uff0c\u6309\u7167\u63d2\u5165\u987a\u5e8f\u6392\u5e8f\u3002\u53ef\u4ee5\u6dfb\u52a0\u4e00\u4e2a\u5143\u7d20\u5230\u5217\u8868\u7684\u5934\u90e8 [&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-258","post","type-post","status-publish","format-standard","hentry","category-redis"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/258","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=258"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/258\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}