{"id":24,"date":"2022-01-24T08:51:53","date_gmt":"2022-01-24T08:51:53","guid":{"rendered":"https:\/\/liangqi.org\/?p=24"},"modified":"2022-01-24T08:57:36","modified_gmt":"2022-01-24T08:57:36","slug":"redisandlru","status":"publish","type":"post","link":"https:\/\/liangqi.org\/?p=24","title":{"rendered":"\u7406\u60f3\u548c\u73b0\u5b9e\u7684\u5dee\u8ddd &#8211; Redis\u7684\u8fd1\u4f3cLRU"},"content":{"rendered":"\n<p>\u6700\u8fd1\u770b\u4e00\u4e9b\u7b97\u6cd5\u9898\uff0c\u5404\u79cd\u65f6\u95f4\u590d\u6742\u5ea6\uff0c\u7a7a\u95f4\u590d\u6742\u5ea6\u5145\u65a5\u8111\u6d77\u3002O(N), O(N^2), O(NLogN)\u3002\u8fd9\u91cc\u62ffLRU(Least Recently Used)\u7b97\u6cd5\u6765\u4e3e\u4e00\u4e2a\u4f8b\u5b50\u7b97\u6cd5\u548c\u5b9e\u9645\u7684\u5dee\u522b\u3002<\/p>\n\n\n\n<p>\u8fd9\u4e2a\u662fLeetcode\u91cc\u9762\u7684\u7b97\u6cd5: <a href=\"https:\/\/leetcode.com\/problems\/lru-cache\/\">https:\/\/leetcode.com\/problems\/lru-cache\/<\/a>. \u6ca1\u6709\u5174\u8da3\u7684\u4eba\u5176\u5b9e\u4e5f\u4e0d\u7528\u770b\uff0c\u57fa\u672c\u4e0a\u5c31\u662f\u8bbe\u8ba1\u4e00\u4e2aLRU\u7b97\u6cd5\uff0c\u4fdd\u8bc1\u8bfb\u53d6\u548c\u63d2\u5165\u7684\u65f6\u95f4\u590d\u6742\u5ea6\u90fd\u662fO(N). \u4ee3\u7801\u57fa\u672c\u4e0a\u4e5f\u5c31100\u884c\u5de6\u53f3\uff0c\u8c8c\u4f3c\u5f88\u7b80\u5355\u3002\u4f46\u662f\u5982\u679c\u770bRedis\u7684\u6587\u6863\u6211\u4eec\u4f1a\u53d1\u73b0\u8fd9\u6bb5\u8bdd\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>https:\/\/redis.io\/topics\/lru-cache<\/p><cite>Redis LRU algorithm is not an exact implementation. This means that Redis is not able to pick the&nbsp;<em>best candidate<\/em>&nbsp;for eviction, that is, the access that was accessed the most in the past. Instead it will try to run an approximation of the LRU algorithm, by sampling a small number of keys, and evicting the one that is the best (with the oldest access time) among the sampled keys.<\/cite><\/blockquote>\n\n\n\n<p>\u65e2\u7136\u7b97\u6cd5\u8fd9\u4e48\u7b80\u5355\u4e3a\u4ec0\u4e48Redis\u7684\u9ed8\u8ba4\u5b9e\u73b0\u4e0d\u53bb\u505a\u4e25\u683c\u7684LRU\u5462\uff1f\u5176\u5b9e\u539f\u56e0\u5f88\u7b80\u5355\uff0c\u4e3a\u4e86\u8282\u7701\u7a7a\u95f4\u3002\u5728\u4f20\u7edf\u7684\u65f6\u95f4\u548c\u7a7a\u95f4\u590d\u6742\u5ea6\u91cc\u9762\uff0c\u6240\u6709\u7684\u975e\u6307\u6570\u7ea7\u7684\u589e\u957f\u90fd\u88ab\u5f52\u7eb3\u6210\u4e00\u4e2a\u7ed3\u679c\u3002\u6bd4\u5982\u8bf4O(N) \u548c O(2n)\uff0c\u6216\u8005\u66f4\u5938\u5f20\u7684O(100N)\u6216\u8005\u66f4\u591a\u3002\u8fd9\u5728\u5b9e\u9645\u4e2d\u80fd\u662f\u4e00\u6837\u7684\uff1f\u4f7f\u7528double\u7684\u7a7a\u95f4\uff0c\u82b1\u8d39double\u7684\u65f6\u95f4\uff0c\u518d\u600e\u4e48\u8bf4\u4e5f\u4e0d\u4e00\u6837\u7684\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u770b\u4e00\u4e9b\u7b97\u6cd5\u9898\uff0c\u5404\u79cd\u65f6\u95f4\u590d\u6742\u5ea6\uff0c\u7a7a\u95f4\u590d\u6742\u5ea6\u5145\u65a5\u8111\u6d77\u3002O(N), O(N^2), O(NLogN)\u3002\u8fd9\u91cc\u62ffLRU(Least Recently Used)\u7b97\u6cd5\u6765\u4e3e\u4e00\u4e2a\u4f8b\u5b50\u7b97\u6cd5\u548c\u5b9e\u9645\u7684\u5dee\u522b\u3002 \u8fd9\u4e2a\u662fLeetcode\u91cc\u9762\u7684\u7b97\u6cd5: https:\/\/leetcode.com\/problems\/lru-cache\/. \u6ca1\u6709\u5174\u8da3\u7684\u4eba\u5176\u5b9e\u4e5f\u4e0d\u7528\u770b\uff0c\u57fa\u672c\u4e0a\u5c31\u662f\u8bbe\u8ba1\u4e00\u4e2aLRU\u7b97\u6cd5\uff0c\u4fdd\u8bc1\u8bfb\u53d6\u548c\u63d2\u5165\u7684\u65f6\u95f4\u590d\u6742\u5ea6\u90fd\u662fO(N). \u4ee3\u7801\u57fa\u672c\u4e0a\u4e5f\u5c31100\u884c\u5de6\u53f3\uff0c\u8c8c\u4f3c\u5f88\u7b80\u5355\u3002\u4f46\u662f\u5982\u679c\u770bRedis\u7684\u6587\u6863\u6211\u4eec\u4f1a\u53d1\u73b0\u8fd9\u6bb5\u8bdd\uff1a https:\/\/redis.io\/topics\/lru-cache Redis LRU algorithm is not an exact implementation. This means that Redis is not able to pick the&nbsp;best candidate&nbsp;for eviction, that is, the access that was accessed the most in the past. Instead it will try to run an approximation of the LRU algorithm, by sampling a small number of keys, and evicting the one that is the best (with the oldest access time) among the sampled keys. \u65e2\u7136\u7b97\u6cd5\u8fd9\u4e48\u7b80\u5355\u4e3a\u4ec0\u4e48Redis\u7684\u9ed8\u8ba4\u5b9e\u73b0\u4e0d\u53bb\u505a\u4e25\u683c\u7684LRU\u5462\uff1f\u5176\u5b9e\u539f\u56e0\u5f88\u7b80\u5355\uff0c\u4e3a\u4e86\u8282\u7701\u7a7a\u95f4\u3002\u5728\u4f20\u7edf\u7684\u65f6\u95f4\u548c\u7a7a\u95f4\u590d\u6742\u5ea6\u91cc\u9762\uff0c\u6240\u6709\u7684\u975e\u6307\u6570\u7ea7\u7684\u589e\u957f\u90fd\u88ab\u5f52\u7eb3\u6210\u4e00\u4e2a\u7ed3\u679c\u3002\u6bd4\u5982\u8bf4O(N) \u548c O(2n)\uff0c\u6216\u8005\u66f4\u5938\u5f20\u7684O(100N)\u6216\u8005\u66f4\u591a\u3002\u8fd9\u5728\u5b9e\u9645\u4e2d\u80fd\u662f\u4e00\u6837\u7684\uff1f\u4f7f\u7528double\u7684\u7a7a\u95f4\uff0c\u82b1\u8d39double\u7684\u65f6\u95f4\uff0c\u518d\u600e\u4e48\u8bf4\u4e5f\u4e0d\u4e00\u6837\u7684\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,17],"tags":[],"class_list":["post-24","post","type-post","status-publish","format-standard","hentry","category-16","category-17"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7406\u60f3\u548c\u73b0\u5b9e\u7684\u5dee\u8ddd - Redis\u7684\u8fd1\u4f3cLRU - Liangqi\u2018s Technical Journey<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/liangqi.org\/?p=24\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7406\u60f3\u548c\u73b0\u5b9e\u7684\u5dee\u8ddd - Redis\u7684\u8fd1\u4f3cLRU - Liangqi\u2018s Technical Journey\" \/>\n<meta property=\"og:description\" content=\"\u6700\u8fd1\u770b\u4e00\u4e9b\u7b97\u6cd5\u9898\uff0c\u5404\u79cd\u65f6\u95f4\u590d\u6742\u5ea6\uff0c\u7a7a\u95f4\u590d\u6742\u5ea6\u5145\u65a5\u8111\u6d77\u3002O(N), O(N^2), O(NLogN)\u3002\u8fd9\u91cc\u62ffLRU(Least Recently Used)\u7b97\u6cd5\u6765\u4e3e\u4e00\u4e2a\u4f8b\u5b50\u7b97\u6cd5\u548c\u5b9e\u9645\u7684\u5dee\u522b\u3002 \u8fd9\u4e2a\u662fLeetcode\u91cc\u9762\u7684\u7b97\u6cd5: https:\/\/leetcode.com\/problems\/lru-cache\/. \u6ca1\u6709\u5174\u8da3\u7684\u4eba\u5176\u5b9e\u4e5f\u4e0d\u7528\u770b\uff0c\u57fa\u672c\u4e0a\u5c31\u662f\u8bbe\u8ba1\u4e00\u4e2aLRU\u7b97\u6cd5\uff0c\u4fdd\u8bc1\u8bfb\u53d6\u548c\u63d2\u5165\u7684\u65f6\u95f4\u590d\u6742\u5ea6\u90fd\u662fO(N). \u4ee3\u7801\u57fa\u672c\u4e0a\u4e5f\u5c31100\u884c\u5de6\u53f3\uff0c\u8c8c\u4f3c\u5f88\u7b80\u5355\u3002\u4f46\u662f\u5982\u679c\u770bRedis\u7684\u6587\u6863\u6211\u4eec\u4f1a\u53d1\u73b0\u8fd9\u6bb5\u8bdd\uff1a https:\/\/redis.io\/topics\/lru-cache Redis LRU algorithm is not an exact implementation. This means that Redis is not able to pick the&nbsp;best candidate&nbsp;for eviction, that is, the access that was accessed the most in the past. Instead it will try to run an approximation of the LRU algorithm, by sampling a small number of keys, and evicting the one that is the best (with the oldest access time) among the sampled keys. \u65e2\u7136\u7b97\u6cd5\u8fd9\u4e48\u7b80\u5355\u4e3a\u4ec0\u4e48Redis\u7684\u9ed8\u8ba4\u5b9e\u73b0\u4e0d\u53bb\u505a\u4e25\u683c\u7684LRU\u5462\uff1f\u5176\u5b9e\u539f\u56e0\u5f88\u7b80\u5355\uff0c\u4e3a\u4e86\u8282\u7701\u7a7a\u95f4\u3002\u5728\u4f20\u7edf\u7684\u65f6\u95f4\u548c\u7a7a\u95f4\u590d\u6742\u5ea6\u91cc\u9762\uff0c\u6240\u6709\u7684\u975e\u6307\u6570\u7ea7\u7684\u589e\u957f\u90fd\u88ab\u5f52\u7eb3\u6210\u4e00\u4e2a\u7ed3\u679c\u3002\u6bd4\u5982\u8bf4O(N) \u548c O(2n)\uff0c\u6216\u8005\u66f4\u5938\u5f20\u7684O(100N)\u6216\u8005\u66f4\u591a\u3002\u8fd9\u5728\u5b9e\u9645\u4e2d\u80fd\u662f\u4e00\u6837\u7684\uff1f\u4f7f\u7528double\u7684\u7a7a\u95f4\uff0c\u82b1\u8d39double\u7684\u65f6\u95f4\uff0c\u518d\u600e\u4e48\u8bf4\u4e5f\u4e0d\u4e00\u6837\u7684\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/liangqi.org\/?p=24\" \/>\n<meta property=\"og:site_name\" content=\"Liangqi\u2018s Technical Journey\" \/>\n<meta property=\"article:published_time\" content=\"2022-01-24T08:51:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-01-24T08:57:36+00:00\" \/>\n<meta name=\"author\" content=\"liangqi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"liangqi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/liangqi.org\/?p=24#article\",\"isPartOf\":{\"@id\":\"https:\/\/liangqi.org\/?p=24\"},\"author\":{\"name\":\"liangqi\",\"@id\":\"https:\/\/liangqi.org\/#\/schema\/person\/105c89d9b783fda67b62e3ce113d6cd3\"},\"headline\":\"\u7406\u60f3\u548c\u73b0\u5b9e\u7684\u5dee\u8ddd &#8211; Redis\u7684\u8fd1\u4f3cLRU\",\"datePublished\":\"2022-01-24T08:51:53+00:00\",\"dateModified\":\"2022-01-24T08:57:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/liangqi.org\/?p=24\"},\"wordCount\":110,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/liangqi.org\/#\/schema\/person\/105c89d9b783fda67b62e3ce113d6cd3\"},\"articleSection\":[\"\u6280\u672f\",\"\u7b97\u6cd5\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/liangqi.org\/?p=24#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/liangqi.org\/?p=24\",\"url\":\"https:\/\/liangqi.org\/?p=24\",\"name\":\"\u7406\u60f3\u548c\u73b0\u5b9e\u7684\u5dee\u8ddd - Redis\u7684\u8fd1\u4f3cLRU - Liangqi\u2018s Technical Journey\",\"isPartOf\":{\"@id\":\"https:\/\/liangqi.org\/#website\"},\"datePublished\":\"2022-01-24T08:51:53+00:00\",\"dateModified\":\"2022-01-24T08:57:36+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/liangqi.org\/?p=24#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/liangqi.org\/?p=24\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/liangqi.org\/?p=24#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/liangqi.org\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7406\u60f3\u548c\u73b0\u5b9e\u7684\u5dee\u8ddd &#8211; Redis\u7684\u8fd1\u4f3cLRU\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/liangqi.org\/#website\",\"url\":\"https:\/\/liangqi.org\/\",\"name\":\"Liangqi\u2018s Technical Journey\",\"description\":\"Chasing Excellence; Enjoy life.\",\"publisher\":{\"@id\":\"https:\/\/liangqi.org\/#\/schema\/person\/105c89d9b783fda67b62e3ce113d6cd3\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/liangqi.org\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/liangqi.org\/#\/schema\/person\/105c89d9b783fda67b62e3ce113d6cd3\",\"name\":\"liangqi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/liangqi.org\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/liangqi.org\/wp-content\/uploads\/2022\/01\/P1100089-3-scaled.jpg\",\"contentUrl\":\"https:\/\/liangqi.org\/wp-content\/uploads\/2022\/01\/P1100089-3-scaled.jpg\",\"width\":2560,\"height\":1920,\"caption\":\"liangqi\"},\"logo\":{\"@id\":\"https:\/\/liangqi.org\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/liangqi.org\"],\"url\":\"https:\/\/liangqi.org\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u7406\u60f3\u548c\u73b0\u5b9e\u7684\u5dee\u8ddd - Redis\u7684\u8fd1\u4f3cLRU - Liangqi\u2018s Technical Journey","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/liangqi.org\/?p=24","og_locale":"en_US","og_type":"article","og_title":"\u7406\u60f3\u548c\u73b0\u5b9e\u7684\u5dee\u8ddd - Redis\u7684\u8fd1\u4f3cLRU - Liangqi\u2018s Technical Journey","og_description":"\u6700\u8fd1\u770b\u4e00\u4e9b\u7b97\u6cd5\u9898\uff0c\u5404\u79cd\u65f6\u95f4\u590d\u6742\u5ea6\uff0c\u7a7a\u95f4\u590d\u6742\u5ea6\u5145\u65a5\u8111\u6d77\u3002O(N), O(N^2), O(NLogN)\u3002\u8fd9\u91cc\u62ffLRU(Least Recently Used)\u7b97\u6cd5\u6765\u4e3e\u4e00\u4e2a\u4f8b\u5b50\u7b97\u6cd5\u548c\u5b9e\u9645\u7684\u5dee\u522b\u3002 \u8fd9\u4e2a\u662fLeetcode\u91cc\u9762\u7684\u7b97\u6cd5: https:\/\/leetcode.com\/problems\/lru-cache\/. \u6ca1\u6709\u5174\u8da3\u7684\u4eba\u5176\u5b9e\u4e5f\u4e0d\u7528\u770b\uff0c\u57fa\u672c\u4e0a\u5c31\u662f\u8bbe\u8ba1\u4e00\u4e2aLRU\u7b97\u6cd5\uff0c\u4fdd\u8bc1\u8bfb\u53d6\u548c\u63d2\u5165\u7684\u65f6\u95f4\u590d\u6742\u5ea6\u90fd\u662fO(N). \u4ee3\u7801\u57fa\u672c\u4e0a\u4e5f\u5c31100\u884c\u5de6\u53f3\uff0c\u8c8c\u4f3c\u5f88\u7b80\u5355\u3002\u4f46\u662f\u5982\u679c\u770bRedis\u7684\u6587\u6863\u6211\u4eec\u4f1a\u53d1\u73b0\u8fd9\u6bb5\u8bdd\uff1a https:\/\/redis.io\/topics\/lru-cache Redis LRU algorithm is not an exact implementation. This means that Redis is not able to pick the&nbsp;best candidate&nbsp;for eviction, that is, the access that was accessed the most in the past. Instead it will try to run an approximation of the LRU algorithm, by sampling a small number of keys, and evicting the one that is the best (with the oldest access time) among the sampled keys. \u65e2\u7136\u7b97\u6cd5\u8fd9\u4e48\u7b80\u5355\u4e3a\u4ec0\u4e48Redis\u7684\u9ed8\u8ba4\u5b9e\u73b0\u4e0d\u53bb\u505a\u4e25\u683c\u7684LRU\u5462\uff1f\u5176\u5b9e\u539f\u56e0\u5f88\u7b80\u5355\uff0c\u4e3a\u4e86\u8282\u7701\u7a7a\u95f4\u3002\u5728\u4f20\u7edf\u7684\u65f6\u95f4\u548c\u7a7a\u95f4\u590d\u6742\u5ea6\u91cc\u9762\uff0c\u6240\u6709\u7684\u975e\u6307\u6570\u7ea7\u7684\u589e\u957f\u90fd\u88ab\u5f52\u7eb3\u6210\u4e00\u4e2a\u7ed3\u679c\u3002\u6bd4\u5982\u8bf4O(N) \u548c O(2n)\uff0c\u6216\u8005\u66f4\u5938\u5f20\u7684O(100N)\u6216\u8005\u66f4\u591a\u3002\u8fd9\u5728\u5b9e\u9645\u4e2d\u80fd\u662f\u4e00\u6837\u7684\uff1f\u4f7f\u7528double\u7684\u7a7a\u95f4\uff0c\u82b1\u8d39double\u7684\u65f6\u95f4\uff0c\u518d\u600e\u4e48\u8bf4\u4e5f\u4e0d\u4e00\u6837\u7684\u3002","og_url":"https:\/\/liangqi.org\/?p=24","og_site_name":"Liangqi\u2018s Technical Journey","article_published_time":"2022-01-24T08:51:53+00:00","article_modified_time":"2022-01-24T08:57:36+00:00","author":"liangqi","twitter_card":"summary_large_image","twitter_misc":{"Written by":"liangqi","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/liangqi.org\/?p=24#article","isPartOf":{"@id":"https:\/\/liangqi.org\/?p=24"},"author":{"name":"liangqi","@id":"https:\/\/liangqi.org\/#\/schema\/person\/105c89d9b783fda67b62e3ce113d6cd3"},"headline":"\u7406\u60f3\u548c\u73b0\u5b9e\u7684\u5dee\u8ddd &#8211; Redis\u7684\u8fd1\u4f3cLRU","datePublished":"2022-01-24T08:51:53+00:00","dateModified":"2022-01-24T08:57:36+00:00","mainEntityOfPage":{"@id":"https:\/\/liangqi.org\/?p=24"},"wordCount":110,"commentCount":0,"publisher":{"@id":"https:\/\/liangqi.org\/#\/schema\/person\/105c89d9b783fda67b62e3ce113d6cd3"},"articleSection":["\u6280\u672f","\u7b97\u6cd5"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/liangqi.org\/?p=24#respond"]}]},{"@type":"WebPage","@id":"https:\/\/liangqi.org\/?p=24","url":"https:\/\/liangqi.org\/?p=24","name":"\u7406\u60f3\u548c\u73b0\u5b9e\u7684\u5dee\u8ddd - Redis\u7684\u8fd1\u4f3cLRU - Liangqi\u2018s Technical Journey","isPartOf":{"@id":"https:\/\/liangqi.org\/#website"},"datePublished":"2022-01-24T08:51:53+00:00","dateModified":"2022-01-24T08:57:36+00:00","breadcrumb":{"@id":"https:\/\/liangqi.org\/?p=24#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/liangqi.org\/?p=24"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/liangqi.org\/?p=24#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/liangqi.org\/"},{"@type":"ListItem","position":2,"name":"\u7406\u60f3\u548c\u73b0\u5b9e\u7684\u5dee\u8ddd &#8211; Redis\u7684\u8fd1\u4f3cLRU"}]},{"@type":"WebSite","@id":"https:\/\/liangqi.org\/#website","url":"https:\/\/liangqi.org\/","name":"Liangqi\u2018s Technical Journey","description":"Chasing Excellence; Enjoy life.","publisher":{"@id":"https:\/\/liangqi.org\/#\/schema\/person\/105c89d9b783fda67b62e3ce113d6cd3"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/liangqi.org\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/liangqi.org\/#\/schema\/person\/105c89d9b783fda67b62e3ce113d6cd3","name":"liangqi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/liangqi.org\/#\/schema\/person\/image\/","url":"https:\/\/liangqi.org\/wp-content\/uploads\/2022\/01\/P1100089-3-scaled.jpg","contentUrl":"https:\/\/liangqi.org\/wp-content\/uploads\/2022\/01\/P1100089-3-scaled.jpg","width":2560,"height":1920,"caption":"liangqi"},"logo":{"@id":"https:\/\/liangqi.org\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/liangqi.org"],"url":"https:\/\/liangqi.org\/?author=1"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/liangqi.org\/index.php?rest_route=\/wp\/v2\/posts\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/liangqi.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/liangqi.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/liangqi.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/liangqi.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=24"}],"version-history":[{"count":3,"href":"https:\/\/liangqi.org\/index.php?rest_route=\/wp\/v2\/posts\/24\/revisions"}],"predecessor-version":[{"id":28,"href":"https:\/\/liangqi.org\/index.php?rest_route=\/wp\/v2\/posts\/24\/revisions\/28"}],"wp:attachment":[{"href":"https:\/\/liangqi.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/liangqi.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/liangqi.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}