{"id":10006721,"date":"2022-10-24T16:00:35","date_gmt":"2022-10-24T08:00:35","guid":{"rendered":"https:\/\/ityet.com\/?p=10006721"},"modified":"2022-10-24T16:00:35","modified_gmt":"2022-10-24T08:00:35","slug":"%e5%9b%be%e8%a7%a3-redis-%e5%88%86%e5%b8%83%e5%bc%8f%e9%94%81%ef%bc%8c%e5%86%99%e5%be%97%e5%a4%aa%e5%a5%bd%e4%ba%86%ef%bc%81","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10006721","title":{"rendered":"\u56fe\u89e3 Redis \u5206\u5e03\u5f0f\u9501\uff0c\u5199\u5f97\u592a\u597d\u4e86\uff01"},"content":{"rendered":"<blockquote><p>\u5206\u5e03\u5f0f\u9501\u7684\u6f14\u8fdb<\/p><\/blockquote>\n<h3>\u57fa\u672c\u539f\u7406<\/h3>\n<p>\u6211\u4eec\u53ef\u4ee5\u540c\u65f6\u53bb\u4e00\u4e2a\u5730\u65b9\u201c\u5360\u5751\u201d\uff0c\u5982\u679c\u5360\u5230\uff0c\u5c31\u6267\u884c\u903b\u8f91\u3002\u5426\u5219\u5c31\u5fc5\u987b\u7b49\u5f85\uff0c\u76f4\u5230\u91ca\u653e\u9501\u3002\u201c\u5360\u5751\u201d\u53ef\u4ee5\u53bbredis\uff0c\u53ef\u4ee5\u53bb\u6570\u636e\u5e93\uff0c\u53ef\u4ee5\u53bb\u4efb\u4f55\u5927\u5bb6\u90fd\u80fd\u8bbf\u95ee\u7684\u5730\u65b9\u3002\u7b49\u5f85\u53ef\u4ee5\u81ea\u65cb\u7684\u65b9\u5f0f\u3002<\/p>\n<h3>\u9636\u6bb5\u4e00<\/h3>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc3eza\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<pre><code>public Map&lt;String, List&lt;Catalog2Vo&gt;&gt; getCatalogJsonDbWithRedisLock() {\n        \/\/\u9636\u6bb5\u4e00\n        Boolean lock = stringRedisTemplate.opsForValue().setIfAbsent(&quot;lock&quot;, &quot;111&quot;);\n        \/\/\u83b7\u53d6\u5230\u9501\uff0c\u6267\u884c\u4e1a\u52a1\n        if (lock) {\n            Map&lt;String, List&lt;Catalog2Vo&gt;&gt; categoriesDb = getCategoryMap();\n            \/\/\u5220\u9664\u9501\uff0c\u5982\u679c\u5728\u6b64\u4e4b\u524d\u62a5\u9519\u6216\u5b95\u673a\u4f1a\u9020\u6210\u6b7b\u9501\n            stringRedisTemplate.delete(&quot;lock&quot;);\n            return categoriesDb;\n        }else {\n            \/\/\u6ca1\u83b7\u53d6\u5230\u9501\uff0c\u7b49\u5f85100ms\u91cd\u8bd5\n            try {\n                Thread.sleep(100);\n            } catch (InterruptedException e) {\n                e.printStackTrace();\n            }\n            return getCatalogJsonDbWithRedisLock();\n        }\n    }\n \npublic Map&lt;String, List&lt;Catalog2Vo&gt;&gt; getCategoryMap() {\n        ValueOperations&lt;String, String&gt; ops = stringRedisTemplate.opsForValue();\n        String catalogJson = ops.get(&quot;catalogJson&quot;);\n        if (StringUtils.isEmpty(catalogJson)) {\n            System.out.println(&quot;\u7f13\u5b58\u4e0d\u547d\u4e2d\uff0c\u51c6\u5907\u67e5\u8be2\u6570\u636e\u5e93\u3002\u3002\u3002&quot;);\n            Map&lt;String, List&lt;Catalog2Vo&gt;&gt; categoriesDb= getCategoriesDb();\n            String toJSONString = JSON.toJSONString(categoriesDb);\n            ops.set(&quot;catalogJson&quot;, toJSONString);\n            return categoriesDb;\n        }\n        System.out.println(&quot;\u7f13\u5b58\u547d\u4e2d\u3002\u3002\u3002\u3002&quot;);\n        Map&lt;String, List&lt;Catalog2Vo&gt;&gt; listMap = JSON.parseObject(catalogJson, new TypeReference&lt;Map&lt;String, List&lt;Catalog2Vo&gt;&gt;&gt;() {});\n        return listMap;\n    }<\/code><\/pre>\n<p><strong>\u95ee\u9898\uff1a<\/strong>\u3000setnx\u5360\u597d\u4e86\u4f4d\uff0c\u4e1a\u52a1\u4ee3\u7801\u5f02\u5e38\u6216\u8005\u7a0b\u5e8f\u5728\u9875\u9762\u8fc7\u7a0b\u4e2d\u5b95\u673a\u3002\u6ca1\u6709\u6267\u884c\u5220\u9664\u9501\u903b\u8f91\uff0c\u8fd9\u5c31\u9020\u6210\u4e86\u6b7b\u9501<\/p>\n<p><strong>\u89e3\u51b3\uff1a<\/strong> \u8bbe\u7f6e\u9501\u7684\u81ea\u52a8\u8fc7\u671f\uff0c\u5373\u4f7f\u6ca1\u6709\u5220\u9664\uff0c\u4f1a\u81ea\u52a8\u5220\u9664<\/p>\n<h3>\u9636\u6bb5\u4e8c<\/h3>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc3ezb\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<pre><code> public Map&lt;String, List&lt;Catalog2Vo&gt;&gt; getCatalogJsonDbWithRedisLock() {\n        Boolean lock = stringRedisTemplate.opsForValue().setIfAbsent(&quot;lock&quot;, &quot;111&quot;);\n        if (lock) {\n            \/\/\u8bbe\u7f6e\u8fc7\u671f\u65f6\u95f4\n            stringRedisTemplate.expire(&quot;lock&quot;, 30, TimeUnit.SECONDS);\n            Map&lt;String, List&lt;Catalog2Vo&gt;&gt; categoriesDb = getCategoryMap();\n            stringRedisTemplate.delete(&quot;lock&quot;);\n            return categoriesDb;\n        }else {\n            try {\n                Thread.sleep(100);\n            } catch (InterruptedException e) {\n                e.printStackTrace();\n            }\n            return getCatalogJsonDbWithRedisLock();\n        }\n    }<\/code><\/pre>\n<p><strong>\u95ee\u9898\uff1a<\/strong> setnx\u8bbe\u7f6e\u597d\uff0c\u6b63\u8981\u53bb\u8bbe\u7f6e\u8fc7\u671f\u65f6\u95f4\uff0c\u5b95\u673a\u3002\u53c8\u6b7b\u9501\u4e86\u3002<\/p>\n<p><strong>\u89e3\u51b3\uff1a<\/strong> \u8bbe\u7f6e\u8fc7\u671f\u65f6\u95f4\u548c\u5360\u4f4d\u5fc5\u987b\u662f\u539f\u5b50\u7684\u3002redis\u652f\u6301\u4f7f\u7528setnx ex\u547d\u4ee4\u3002<\/p>\n<p>\u63a8\u8350\u4e00\u4e2a\u5f00\u6e90\u514d\u8d39\u7684 Spring Boot \u6700\u5168\u6559\u7a0b\uff1a<\/p>\n<blockquote><p><a href=\"https:\/\/link.segmentfault.com\/?enc=INKRvJhGr5aadmgRh8cXoA%3D%3D.%2BmXzHpmuE7Kmj7pXFjLO886uUf7P3RYJAorxBSqXslr4ByUFrVffVG0tvLFh4wnlGKSTYhXuiWKRbPVYHUvf0g%3D%3D\" rel=\"nofollow\">https:\/\/github.com\/javastacks\/spring-boot-best-practice<\/a><\/p><\/blockquote>\n<h3>\u9636\u6bb5\u4e09<\/h3>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc3ezc\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<pre><code>public Map&lt;String, List&lt;Catalog2Vo&gt;&gt; getCatalogJsonDbWithRedisLock() {\n    \/\/\u52a0\u9501\u7684\u540c\u65f6\u8bbe\u7f6e\u8fc7\u671f\u65f6\u95f4\uff0c\u4e8c\u8005\u662f\u539f\u5b50\u6027\u64cd\u4f5c\n    Boolean lock = stringRedisTemplate.opsForValue().setIfAbsent(&quot;lock&quot;, &quot;1111&quot;,5, TimeUnit.SECONDS);\n    if (lock) {\n        Map&lt;String, List&lt;Catalog2Vo&gt;&gt; categoriesDb = getCategoryMap();\n        \/\/\u6a21\u62df\u8d85\u957f\u7684\u4e1a\u52a1\u6267\u884c\u65f6\u95f4\n        try {\n            Thread.sleep(6000);\n        } catch (InterruptedException e) {\n            e.printStackTrace();\n        }\n        stringRedisTemplate.delete(&quot;lock&quot;);\n        return categoriesDb;\n    }else {\n        try {\n            Thread.sleep(100);\n        } catch (InterruptedException e) {\n            e.printStackTrace();\n        }\n        return getCatalogJsonDbWithRedisLock();\n    }\n}<\/code><\/pre>\n<p><strong>\u95ee\u9898\uff1a<\/strong>\u3000\u5220\u9664\u9501\u76f4\u63a5\u5220\u9664\uff1f\uff1f\uff1f\u5982\u679c\u7531\u4e8e\u4e1a\u52a1\u65f6\u95f4\u5f88\u957f\uff0c\u9501\u81ea\u5df1\u8fc7\u671f\u4e86\uff0c\u6211\u4eec\u76f4\u63a5\u5220\u9664\uff0c\u6709\u53ef\u80fd\u628a\u522b\u4eba\u6b63\u5728\u6301\u6709\u7684\u9501\u5220\u9664\u4e86\u3002<\/p>\n<p><strong>\u89e3\u51b3\uff1a<\/strong> \u5360\u9501\u7684\u65f6\u5019\uff0c\u503c\u6307\u5b9a\u4e3auuid\uff0c\u6bcf\u4e2a\u4eba\u5339\u914d\u662f\u81ea\u5df1\u7684\u9501\u624d\u5220\u9664\u3002<\/p>\n<h3>\u9636\u6bb5\u56db<\/h3>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc3eze\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<pre><code>public Map&lt;String, List&lt;Catalog2Vo&gt;&gt; getCatalogJsonDbWithRedisLock() {\n        String uuid = UUID.randomUUID().toString();\n        ValueOperations&lt;String, String&gt; ops = stringRedisTemplate.opsForValue();\n      \/\/\u4e3a\u5f53\u524d\u9501\u8bbe\u7f6e\u552f\u4e00\u7684uuid\uff0c\u53ea\u6709\u5f53uuid\u76f8\u540c\u65f6\u624d\u4f1a\u8fdb\u884c\u5220\u9664\u9501\u7684\u64cd\u4f5c\n        Boolean lock = ops.setIfAbsent(&quot;lock&quot;, uuid,5, TimeUnit.SECONDS);\n        if (lock) {\n            Map&lt;String, List&lt;Catalog2Vo&gt;&gt; categoriesDb = getCategoryMap();\n            String lockValue = ops.get(&quot;lock&quot;);\n            if (lockValue.equals(uuid)) {\n                try {\n                    Thread.sleep(6000);\n                } catch (InterruptedException e) {\n                    e.printStackTrace();\n                }\n                stringRedisTemplate.delete(&quot;lock&quot;);\n            }\n            return categoriesDb;\n        }else {\n            try {\n                Thread.sleep(100);\n            } catch (InterruptedException e) {\n                e.printStackTrace();\n            }\n            return getCatalogJsonDbWithRedisLock();\n        }\n    }<\/code><\/pre>\n<p><strong>\u95ee\u9898\uff1a<\/strong> \u5982\u679c\u6b63\u597d\u5224\u65ad\u662f\u5f53\u524d\u503c\uff0c\u6b63\u8981\u5220\u9664\u9501\u7684\u65f6\u5019\uff0c\u9501\u5df2\u7ecf\u8fc7\u671f\uff0c\u522b\u4eba\u5df2\u7ecf\u8bbe\u7f6e\u5230\u4e86\u65b0\u7684\u503c\u3002\u90a3\u4e48\u6211\u4eec\u5220\u9664\u7684\u662f\u522b\u4eba\u7684\u9501<\/p>\n<p><strong>\u89e3\u51b3\uff1a<\/strong> \u5220\u9664\u9501\u5fc5\u987b\u4fdd\u8bc1\u539f\u5b50\u6027\u3002\u4f7f\u7528redis+Lua\u811a\u672c\u5b8c\u6210<\/p>\n<h3>\u9636\u6bb5\u4e94-\u6700\u7ec8\u5f62\u6001<\/h3>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc3ezf\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<pre><code> public Map&lt;String, List&lt;Catalog2Vo&gt;&gt; getCatalogJsonDbWithRedisLock() {\n        String uuid = UUID.randomUUID().toString();\n        ValueOperations&lt;String, String&gt; ops = stringRedisTemplate.opsForValue();\n        Boolean lock = ops.setIfAbsent(&quot;lock&quot;, uuid,5, TimeUnit.SECONDS);\n        if (lock) {\n            Map&lt;String, List&lt;Catalog2Vo&gt;&gt; categoriesDb = getCategoryMap();\n            String lockValue = ops.get(&quot;lock&quot;);\n            String script = &quot;if redis.call(\/&quot;get\/&quot;,KEYS[1]) == ARGV[1] then\/n&quot; +\n                    &quot;    return redis.call(\/&quot;del\/&quot;,KEYS[1])\/n&quot; +\n                    &quot;else\/n&quot; +\n                    &quot;    return 0\/n&quot; +\n                    &quot;end&quot;;\n            stringRedisTemplate.execute(new DefaultRedisScript&lt;Long&gt;(script, Long.class), Arrays.asList(&quot;lock&quot;), lockValue);\n            return categoriesDb;\n        }else {\n            try {\n                Thread.sleep(100);\n            } catch (InterruptedException e) {\n                e.printStackTrace();\n            }\n            return getCatalogJsonDbWithRedisLock();\n        }\n    }<\/code><\/pre>\n<p>\u4fdd\u8bc1\u52a0\u9501\u3010\u5360\u4f4d+\u8fc7\u671f\u65f6\u95f4\u3011\u548c\u5220\u9664\u9501\u3010\u5224\u65ad+\u5220\u9664\u3011\u7684\u539f\u5b50\u6027\u3002\u66f4\u96be\u7684\u4e8b\u60c5\uff0c\u9501\u7684\u81ea\u52a8\u7eed\u671f\u3002<\/p>\n<p>Spring Boot \u57fa\u7840\u5c31\u4e0d\u4ecb\u7ecd\u4e86\uff0c\u63a8\u8350\u770b\u8fd9\u4e2a\u514d\u8d39\u6559\u7a0b\uff1a<\/p>\n<blockquote><p><a href=\"https:\/\/link.segmentfault.com\/?enc=RjsPuHi3abXHLbqbsSJ3wA%3D%3D.67mLTj%2Bg0Iomim16%2Byp7zodbhkE2Bs9rfotEexo13T0fm4n%2FCgvwQaCb0nYWdRZdnRDYOmKRY4aRqa1O986wrw%3D%3D\" rel=\"nofollow\">https:\/\/github.com\/javastacks\/spring-boot-best-practice<\/a><\/p><\/blockquote>\n<h3>Redisson<\/h3>\n<p>Redisson\u662f\u4e00\u4e2a\u5728Redis\u7684\u57fa\u7840\u4e0a\u5b9e\u73b0\u7684Java\u9a7b\u5185\u5b58\u6570\u636e\u7f51\u683c\uff08In-Memory Data Grid\uff09\u3002\u5b83\u4e0d\u4ec5\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u7684\u5206\u5e03\u5f0f\u7684Java\u5e38\u7528\u5bf9\u8c61\uff0c\u8fd8\u63d0\u4f9b\u4e86\u8bb8\u591a\u5206\u5e03\u5f0f\u670d\u52a1\u3002<\/p>\n<blockquote><p>\u5176\u4e2d\u5305\u62ec(BitSet, Set, Multimap, SortedSet, Map, List, Queue, BlockingQueue, Deque, BlockingDeque, Semaphore, Lock, AtomicLong, CountDownLatch, Publish \/ Subscribe, Bloom filter, Remote service, Spring cache, Executor service, Live Object service, Scheduler service)<\/p><\/blockquote>\n<p>Redisson\u63d0\u4f9b\u4e86\u4f7f\u7528Redis\u7684\u6700\u7b80\u5355\u548c\u6700\u4fbf\u6377\u7684\u65b9\u6cd5\u3002Redisson\u7684\u5b97\u65e8\u662f\u4fc3\u8fdb\u4f7f\u7528\u8005\u5bf9Redis\u7684\u5173\u6ce8\u5206\u79bb\uff08Separation of Concern\uff09\uff0c\u4ece\u800c\u8ba9\u4f7f\u7528\u8005\u80fd\u591f\u5c06\u7cbe\u529b\u66f4\u96c6\u4e2d\u5730\u653e\u5728\u5904\u7406\u4e1a\u52a1\u903b\u8f91\u4e0a\u3002<\/p>\n<p>\u66f4\u591a\u8bf7\u53c2\u8003\u5b98\u65b9\u6587\u6863\uff1a<\/p>\n<blockquote><p><a href=\"https:\/\/link.segmentfault.com\/?enc=OFPccPwQGWIRPQjwYS5XQA%3D%3D.4NO2K3Ofex6N21CF4XkGRfrvsEOiKz2SxG4%2BU7TcLEJTF0ABA73WCyJqzA21vq7G\" rel=\"nofollow\">https:\/\/github.com\/redisson\/r&#8230;<\/a><\/p><\/blockquote>\n<p>\u6765\u6e90\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=vYkP4pm21fIQw2ffLON18A%3D%3D.Ns5ZPUWW5m2xJK65SIKE4iXGCHtsWrDXvKFD7s1ih0MLYzIpfNsC2Ani2h57XlbMLyANfVkjtCvPOAl6tSAXzQ%3D%3D\" rel=\"nofollow\">https:\/\/blog.csdn.net\/zhangka&#8230;<\/a><\/p>\n<p><strong>\u8fd1\u671f\u70ed\u6587\u63a8\u8350\uff1a<\/strong><\/p>\n<p>1.<a href=\"https:\/\/link.segmentfault.com\/?enc=81mbeYyU%2BzywyaSZejMnng%3D%3D.P9JW484pYHrN%2FzezoIr5Eyy030uoSQWRf6L3Fp8cVUU%3D\" rel=\"nofollow\">1,000+ \u9053 Java\u9762\u8bd5\u9898\u53ca\u7b54\u6848\u6574\u7406(2022\u6700\u65b0\u7248)<\/a><\/p>\n<p>2.<a href=\"https:\/\/link.segmentfault.com\/?enc=xJtj11TeBnd5dtBxG5ws1Q%3D%3D.EDb9Y5WU0PUNTEKwpm9cqytRvQI8GDp4LEf23YQbxfh0vzIb6%2Bo3eLLWRUIrDRK8%2F3mhiOJCdg4HN7SHrsYawA%3D%3D\" rel=\"nofollow\">\u52b2\u7206\uff01Java \u534f\u7a0b\u8981\u6765\u4e86\u3002\u3002\u3002<\/a><\/p>\n<p>3.<a href=\"https:\/\/link.segmentfault.com\/?enc=PM8Dlu35I%2BUehqDEAp9y%2Bg%3D%3D.HxzsBDObZCbYpAnzi9y67C0WUh1yu8P2jNfjs5TXsHoKiov3L%2BUWYeCac0BgtRwj\" rel=\"nofollow\">Spring Boot 2.x \u6559\u7a0b\uff0c\u592a\u5168\u4e86\uff01<\/a><\/p>\n<p>4.<a href=\"https:\/\/link.segmentfault.com\/?enc=1tQ0nmbDKo5dywntV0h%2B3w%3D%3D.FpQXpgqlBioLifDCuEhuOD0nCjnMuFD4m3mF1osjOxFOIH2PUE7%2BTZxVyGzlLeOTheEFDtllNpyFY1A0AK8e1g%3D%3D\" rel=\"nofollow\">\u522b\u518d\u5199\u6ee1\u5c4f\u7684\u7206\u7206\u7206\u70b8\u7c7b\u4e86\uff0c\u8bd5\u8bd5\u88c5\u9970\u5668\u6a21\u5f0f\uff0c\u8fd9\u624d\u662f\u4f18\u96c5\u7684\u65b9\u5f0f\uff01\uff01<\/a><\/p>\n<p>5.<a href=\"https:\/\/link.segmentfault.com\/?enc=%2BdpjLsP0WDseAXZ0zdQZIA%3D%3D.1NSASbGsk%2BbwZVfDilcm%2F3zdceHqNMhO3myhXjGwWahrwGcPzFQJRB8Rgd%2BKCx8GTRb2jeiePR3B%2FYtUSiyT6YBh%2FLWenpqOyD3BCR6ja4I%3D\" rel=\"nofollow\">\u300aJava\u5f00\u53d1\u624b\u518c\uff08\u5d69\u5c71\u7248\uff09\u300b\u6700\u65b0\u53d1\u5e03\uff0c\u901f\u901f\u4e0b\u8f7d\uff01<\/a><\/p>\n<p>\u89c9\u5f97\u4e0d\u9519\uff0c\u522b\u5fd8\u4e86\u968f\u624b\u70b9\u8d5e+\u8f6c\u53d1\u54e6\uff01<\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000042677644\">https:\/\/segmentfault.com\/a\/1190000042677644<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5206\u5e03\u5f0f\u9501\u7684\u6f14\u8fdb \u57fa\u672c\u539f\u7406 \u6211\u4eec\u53ef\u4ee5\u540c\u65f6\u53bb\u4e00\u4e2a\u5730\u65b9\u201c\u5360\u5751\u201d\uff0c\u5982\u679c\u5360\u5230\uff0c\u5c31\u6267\u884c\u903b\u8f91\u3002\u5426\u5219\u5c31\u5fc5\u987b\u7b49\u5f85\uff0c\u76f4\u5230\u91ca\u653e\u9501\u3002\u201c [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-10006721","post","type-post","status-publish","format-standard","hentry"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006721","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10006721"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006721\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10006721"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10006721"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10006721"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}