{"id":34113,"date":"2023-01-22T00:06:48","date_gmt":"2024-02-17T13:38:44","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e6%9b%b4%e6%b7%b1%e5%85%a5%e5%9c%b0%e7%90%86%e8%a7%a3redis%e5%92%8c%e7%bc%93%e5%ad%98%e3%80%82\/"},"modified":"2024-04-29T10:49:05","modified_gmt":"2024-04-29T02:49:05","slug":"%e6%88%91%e8%af%95%e7%9d%80%e6%9b%b4%e6%b7%b1%e5%85%a5%e5%9c%b0%e7%90%86%e8%a7%a3redis%e5%92%8c%e7%bc%93%e5%ad%98%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e6%9b%b4%e6%b7%b1%e5%85%a5%e5%9c%b0%e7%90%86%e8%a7%a3redis%e5%92%8c%e7%bc%93%e5%ad%98%e3%80%82\/","title":{"rendered":"\u6211\u8bd5\u7740\u66f4\u6df1\u5165\u5730\u7406\u89e3Redis\u548c\u7f13\u5b58"},"content":{"rendered":"<p>\u7531\u4e8e\u5728\u5de5\u4f5c\u4e2d\u63a5\u89e6\u5230\u4e0e\u73b0\u91d1\u6709\u5173\u7684\u90e8\u5206\uff0c\u6211\u6709\u673a\u4f1a\u6df1\u5165\u4e86\u89e3\u4e86\u73b0\u91d1\u3002\u4ee5\u4e0b\u662f\u6211\u7684\u603b\u7ed3\u3002<\/p>\n<h1>Redis\u662f\u4ec0\u4e48\uff1f<\/h1>\n<p>Redis\u662f\u201cREmote DIctionary Server\u201d\u7684\u7f29\u5199\u3002\u5728GitHub\u4e0a\u7684\u4ed3\u5e93\u662f\u6307Redis\u7684\u4ed3\u5e93\u3002<\/p>\n<p>\u6700\u8fd1\uff0c\u5f00\u53d1\u8005\u53d1\u8868\u4e86\u4ed6\u4eec\u6253\u7b97\u9000\u51faRedis\u5f00\u53d1\u7684\u5e16\u5b50\u3002\u56e0\u6b64\uff0cRedis\u7684\u4ee3\u7801\u5e93\u5df2\u7ecf\u4ece\u4f5c\u8005\u7684\u4e2a\u4eba\u4ee3\u7801\u5e93\u8fc1\u79fb\u5230redis-io\u4ee3\u7801\u5e93\u4e2d\u3002<\/p>\n<p>Redis\u662f\u4e00\u79cd\u5185\u5b58\u6570\u636e\u5e93\uff0c\u56e0\u6b64\u53ef\u4ee5\u5b9e\u73b0\u5feb\u901f\u8bbf\u95ee\uff0c\u5b83\u91c7\u7528\u4e86\u5ba2\u6237\u7aef\/\u670d\u52a1\u5668\u6a21\u578b\uff0c\u56e0\u6b64\u53ef\u4ee5\u4ece\u591a\u4e2a\u5ba2\u6237\u7aef\u8bbf\u95ee\u3002\u6b64\u5916\uff0cRedis\u8fd8\u5177\u6709\u53ef\u6269\u5c55\u6027\u7279\u5f81\uff0c\u4f8b\u5982\u652f\u6301\u590d\u5236\u3002<\/p>\n<p>\u5728\u672c\u7bc7\u6295\u7a3f\u4e2d\uff0c\u6211\u4eec\u5c06\u8ba8\u8bba\u4ee5\u4e0b\u4e24\u4e2a\u65b9\u9762\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">in-memory database<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">remote (client \/ server)<\/ul>\n<h1>\u5185\u5b58\u6570\u636e\u5e93<\/h1>\n<p>\u901a\u8fc7\u4f7f\u7528\u5185\u5b58\u6570\u636e\u5e93\uff0c\u6570\u636e\u53ef\u4ee5\u5728\u4e3b\u5185\u5b58\u4e2d\u5b58\u50a8\uff0c\u800c\u65e0\u9700\u4f7f\u7528\u786c\u76d8\u9a71\u52a8\u5668\uff08\u5982HDD\u6216SSD\uff09\u3002\u8fd9\u6837\u53ef\u4ee5\u6d88\u9664\u7e41\u7410\u7684\u78c1\u76d8\u8f93\u5165\/\u8f93\u51fa\u64cd\u4f5c\uff0c\u4ece\u800c\u63d0\u4f9b\u66f4\u597d\u7684\u6027\u80fd\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1b5d37434c4406c0e10d\/9-0.png\" alt=\"687474703a2f2f692e696d6775722e636f6d2f6b307431652e706e67.png\" \/><\/div>\n<p>Redis\u88ab\u79f0\u4e3a\u201c\u5185\u5b58\u6570\u636e\u5e93\u4e14\u901f\u5ea6\u5feb\u201d\u3002\u5b9e\u9645\u4e0a\uff0cRedis\u76f8\u6bd4\u4e8eMySQL\u7b49\u6570\u636e\u5e93\u53ef\u4ee5\u5b9e\u73b0\u5feb\u901f\u8bbf\u95ee\u3002\u7136\u800c\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cRedis\u4e4b\u6240\u4ee5\u5feb\u901f\uff0c\u5e76\u4e0d\u662f\u56e0\u4e3a\u4e0eMySQL\u76f8\u6bd4\uff0c\u5b83\u4e0d\u9700\u8981\u8fdb\u884c\u78c1\u76d8IO\u800c\u4ec5\u9700\u901a\u8fc7\u5185\u5b58\u8bbf\u95ee\u6765\u83b7\u53d6\u6570\u636e\u3002\u5982\u679c\u662f\u8fd9\u6837\u7684\u8bdd\uff0c\u53ea\u8981\u5728MySQL\u4e2d\u4f7f\u7528\u9875\u9762\u7f13\u5b58\uff08buffer pool\uff09\u5c06\u6570\u636e\u7f13\u5b58\u5230\u5185\u5b58\u4e2d\uff0c\u5373\u4f7f\u662f\u57fa\u4e8e\u78c1\u76d8\u7684\u5173\u7cfb\u578b\u6570\u636e\u5e93\uff0c\u53ea\u8981\u6709\u8db3\u591f\u7684\u5185\u5b58\uff0c\u4e5f\u5e94\u8be5\u80fd\u591f\u5b9e\u73b0\u5feb\u901f\u8bbf\u95ee\u3002<\/p>\n<p>\u5728\u5185\u5b58\u6570\u636e\u5e93\u4e2d\uff0c\u5b9e\u9645\u4e0a\uff0c\u201c\u901a\u8fc7\u53bb\u9664\u786c\u76d8\u7ea6\u675f\u201d\uff0c\u53ef\u4ee5\u5b9e\u73b0\u9ad8\u901f\u64cd\u4f5c\u3002\u786c\u76d8\u5b58\u5728\u5404\u79cd\u7ea6\u675f\u3002\u4ee5\u786c\u76d8\u9a71\u52a8\u5668\uff08HDD\uff09\u4e3a\u4f8b\uff0c\u4e3a\u4e86\u8fdb\u884c\u6570\u636e\u7684\u8bfb\u5199\u64cd\u4f5c\uff0c\u9700\u8981\u65cb\u8f6c\u78c1\u5934\u3002\u56e0\u6b64\uff0c\u4e0eRAM\u4e0d\u540c\uff0c\u5fc5\u987b\u4f7f\u7528\u57fa\u4e8e\u987a\u5e8fI\/O\u7684\u6570\u636e\u7ed3\u6784\u6765\u5904\u7406\u6570\u636e\uff0c\u800c\u4e0d\u662f\u968f\u673aI\/O\uff0c\u624d\u80fd\u8fdb\u884c\u4f18\u5316\u3002\uff08\u4f8b\u5982\uff0c\u4e3a\u4e86\u8fdb\u884c\u4f18\u5316\uff0c\u4f7f\u7528B\u6811\u7d22\u5f15\u7b49\u65b9\u6cd5\u3002\uff09<\/p>\n<p>\u6362\u53e5\u8bdd\u8bf4\uff0c\u7531\u4e8e\u6709Disk\u7684\u9650\u5236\uff0c\u6211\u4eec\u9700\u8981\u5c06\u4e4b\u524d\u5728\u5185\u5b58\u4e2d\u4f7f\u7528\u7684\u6570\u636e\u7ed3\u6784\u8fdb\u884c\u7f16\u7801\/\u89e3\u7801\uff0c\u8f6c\u6362\u4e3aDisk\u4f18\u5316\u7684\u6570\u636e\u7ed3\u6784\u3002\u8fd9\u6837\u4e00\u6765\uff0c\u5c31\u80fd\u591f\u6d88\u9664\u989d\u5916\u7684\u5f00\u9500\uff0c\u4ece\u800c\u5b9e\u73b0\u5bf9\u5185\u5b58\u6570\u636e\u5e93\u7684\u5feb\u901f\u8bbf\u95ee\u3002<\/p>\n<p>\u5173\u4e8e\u53ef\u4f7f\u7528\u7684\u6700\u5927\u5185\u5b58\u91cf\uff0c\u60a8\u53ef\u4ee5\u5728redis.conf\u6587\u4ef6\u4e2d\u4f7f\u7528maxmemory\u53c2\u6570\u8fdb\u884c\u6307\u5b9a\u3002\u4e3a\u4e86\u5904\u7406\u8d85\u8fc7\u6307\u5b9a\u9650\u5236\u503c\u7684\u60c5\u51b5\uff0cRedis\u63d0\u4f9b\u4e86\u6dd8\u6c70\u7b56\u7565(Eviction Policy)\u3002\u5176\u4e2d\u4e4b\u4e00\u5c31\u662f\u6700\u8fd1\u6700\u5c11\u4f7f\u7528(LRU)\u7b56\u7565\u3002Redis\u901a\u8fc7\u4f7f\u7528LRU\u7b56\u7565\u6765\u8003\u8651\u4e0d\u8fc7\u5ea6\u4f7f\u7528\u5185\u5b58\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1b5d37434c4406c0e10d\/14-0.png\" alt=\"lru_comparison.png\" \/><\/div>\n<p>\u6b64\u5916\uff0c\u7531\u4e8e\u6570\u636e\u4fdd\u5b58\u5728\u5185\u5b58\u4e2d\uff0c\u53ef\u9760\u6027\uff08Durability\uff09\u4f1a\u4e27\u5931\u3002\u7136\u800c\uff0c\u4e0e\u4f5c\u4e3a\u7f13\u5b58\u76ee\u7684\u800c\u521b\u5efa\u7684memcached\u4e0d\u540c\uff0cRedis\u53ef\u4ee5\u901a\u8fc7AOF\u65e5\u5fd7\u6216RDB\u5feb\u7167\u8fdb\u884c\u5907\u4efd\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4ece\u6700\u540e\u5907\u4efd\u4e4b\u540e\u5f00\u59cb\u7684\u6570\u636e\u5199\u5165\u5c06\u4f1a\u4e22\u5931\u3002\u56e0\u6b64\uff0c\u5bf9\u4e8e\u91cd\u8981\u6570\u636e\u800c\u8a00\uff0c\u4ec5\u5c06\u5176\u5199\u5165\u7f13\u5b58\u6570\u636e\u5e93Redis\u662f\u5371\u9669\u7684\u3002\u5e94\u8be5\u5c06Redis\u89c6\u4e3a\u4e34\u65f6\u6570\u636e\u5b58\u50a8\uff0c\u5e76\u9650\u5236\u5176\u4ec5\u7528\u4e8e\u53ef\u4ee5\u5bb9\u5fcd\u4e22\u5931\u7684\u6570\u636e\uff0c\u5982\u4f1a\u8bdd\u6570\u636e\u3002<\/p>\n<p>\u987a\u4fbf\u63d0\u4e00\u4e0b\uff0c\u5c31\u6211\u4e2a\u4eba\u800c\u8a00\uff0c\u4e00\u542c\u5230\u5185\u5b58\u6570\u636e\u5e93\u8fd9\u4e2a\u8bcd\u6211\u4f1a\u60f3\u5230Redis\u548cMemcached\u3002\u4e0d\u8fc7\uff0c\u6839\u636e\u5185\u5b58\u6570\u636e\u5e93\u5217\u8868\u663e\u793a\uff0c\u8fd8\u6709\u5176\u4ed6\u5404\u79cd\u6570\u636e\u5e93\u4e5f\u88ab\u5217\u4e3a\u5185\u5b58\u6570\u636e\u5e93\u3002\u4f8b\u5982\uff0cSQLite\u4e5f\u88ab\u6807\u8bb0\u4e3a\u5185\u5b58\u6570\u636e\u5e93\u3002\u6839\u636eSQLite\u7684\u5b98\u65b9\u6587\u6863\uff08In-Memory Databases\uff09\u6240\u8ff0\uff0c\u901a\u8fc7\u9002\u5f53\u7684\u8bbe\u7f6e\uff0c\u53ef\u4ee5\u5c06SQLite\u7528\u4f5c\u5185\u5b58\u6570\u636e\u5e93\u3002<\/p>\n<h1>\u5ba2\u6237\u7aef\/\u670d\u52a1\u5668\u6a21\u578b<\/h1>\n<p>Redis\u4f7f\u7528\u4e86\u5ba2\u6237\u7aef\/\u670d\u52a1\u5668\u6a21\u578b\u3002\u5e94\u7528\u7a0b\u5e8f\u4f7f\u7528Redis\u5ba2\u6237\u7aef\u5e93\u901a\u8fc7TCP\/IP\u53d1\u9001\u8bf7\u6c42\u5230Redis\u670d\u52a1\u5668\u3002Redis\u670d\u52a1\u5668\u4eceRAM\u4e2d\u83b7\u53d6\u6570\u636e\uff0c\u5e76\u5c06\u5176\u4f5c\u4e3a\u54cd\u5e94\u8fd4\u56de\u7ed9\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>MySQL\u7b49\u4e5f\u91c7\u7528\u4e86\u8fd9\u79cd\u5ba2\u6237\u7aef\u670d\u52a1\u5668\u6a21\u578b\u3002\u800cSQLite\u5219\u91c7\u7528\u4e86\u4e0e\u4e4b\u76f8\u5bf9\u5e94\u7684\u7ed3\u6784\uff0c\u5e76\u88ab\u79f0\u4e3a\u65e0\u670d\u52a1\u5668\uff08serverless\uff09\u6a21\u5f0f\u3002<\/p>\n<p>\u4ee5\u4e0b\u7684\u56fe\u7247\u6e05\u695a\u5730\u8868\u660e\u4e86\u5b83\u4eec\u4e4b\u95f4\u7684\u533a\u522b\u3002SQlite\u63d0\u4f9b\u4e86\u4e00\u79cd\u4e0d\u9700\u7ecf\u8fc7\u7f51\u7edc\u5c31\u53ef\u4ee5\u8bbf\u95ee\u6570\u636e\u5e93\u7684\u65b9\u6cd5\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1b5d37434c4406c0e10d\/21-0.png\" alt=\"mysql-vs-sqlite-diagram-lg@2x.png\" \/><\/div>\n<p>\u867d\u7136\u300aSQLite\u9002\u7528\u7684\u573a\u666f\u300b\u63d0\u5230\uff0c\u65e0\u670d\u52a1\u5668\uff08serverless\uff09\u9002\u5408\u4f5c\u4e3a\u672c\u5730\u7f13\u5b58\u548c\u672c\u5730\u6570\u636e\u5b58\u50a8\u4f7f\u7528\uff0c\u4f46\u5982\u679c\u9700\u8981\u6269\u5c55\u6027\uff0c\u5e94\u91c7\u7528\u5ba2\u6237\u7aef-\u670d\u52a1\u5668\u6a21\u578b\u3002<\/p>\n<h2>\u7ebf\u7a0b\u6a21\u578b<\/h2>\n<p>\u5982\u679c\u9009\u62e9\u4f7f\u7528\u5ba2\u6237\u7aef\/\u670d\u52a1\u5668\u6a21\u578b\uff0c\u5219\u9700\u8981\u51b3\u5b9a\u5982\u4f55\u5904\u7406\u6765\u81ea\u5ba2\u6237\u7aef\u7684\u8fde\u63a5\u3002\u5bf9\u4e8e\u6765\u81ea\u5ba2\u6237\u7aef\u7684\u8fde\u63a5\uff0cRedis\u91c7\u7528\u4e86\u5355\u7ebf\u7a0b\u67b6\u6784\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1b5d37434c4406c0e10d\/25-0.png\" alt=\"https---qiita-image-store.s3.ap-northeast-1.amazonaws.com-0-496251-346ef25a-cf58-3292-a2be-8ee78a60632e.png\" \/><\/div>\n<p>Node.js\u548cnginx\u540c\u6837\u4f7f\u7528\u4e8b\u4ef6\u5faa\u73af(Event Loop)\uff0c\u5728\u5185\u90e8\u540c\u65f6\u5b58\u5728IO\u591a\u8def\u590d\u7528\u548c\u7ebf\u7a0b\u6c60\u3002Nginx\u91c7\u7528\u8fd9\u4e2a\u6a21\u578b\u7684\u539f\u56e0\u662f\u4e3a\u4e86\u89e3\u51b3c10k\u95ee\u9898\uff0c\u800cRedis\u91c7\u7528\u5355\u7ebf\u7a0b\u67b6\u6784\u7684\u539f\u56e0\u662f\u4e3a\u4e86\u4fdd\u6301\u7b80\u4fbf\u3002\u6b63\u5982Redis\u7684\u5ba3\u8a00\u7b2c\u516d\u6761\u6240\u8ff0\uff0c\u201c\u6211\u4eec\u53cd\u5bf9\u590d\u6742\u6027\u3002\u201d\uff0cRedis\u6ce8\u91cd\u7b80\u5355\u6027\u3002<\/p>\n<p>\u5982\u679c\u91c7\u7528\u591a\u7ebf\u7a0b\u67b6\u6784\uff0c\u7ebf\u7a0b\u5c06\u5171\u4eab\u5185\u5b58\uff0c\u8fd9\u5c31\u9700\u8981\u6d88\u9664\u5bf9\u5171\u4eab\u6570\u636e\u7684\u7ade\u4e89\u6761\u4ef6\u3002\u5904\u7406\u5e76\u884c\u5316\u4f1a\u4f7f\u4ee3\u7801\u53d8\u5f97\u590d\u6742\u3002<\/p>\n<p>\u901a\u8fc7\u5c06\u5176\u8bbe\u4e3a\u5355\u7ebf\u7a0b\uff0c\u610f\u5473\u7740\u5728\u67d0\u4e2a\u65f6\u523b\u53ea\u6267\u884c\u4e00\u4e2a\u5904\u7406\uff0c\u56e0\u6b64\u4e0d\u4f1a\u53d1\u751f\u7ade\u4e89\u6761\u4ef6\u3002\u7136\u800c\uff0c\u7531\u4e8e\u662f\u5355\u7ebf\u7a0b\uff0c\u65e0\u8bba\u662fCPU\u5bc6\u96c6\u578b\u8fd8\u662fI\/O\u5bc6\u96c6\u578b\uff0c\u6267\u884c\u963b\u585e\u64cd\u4f5c\u65f6\u90fd\u9700\u8981\u6ce8\u610f\u3002<\/p>\n<p>Single Thread Model\u4e0d\u5229\u4e4b\u8655\u5728\u65bc\u7121\u6cd5\u5229\u7528\u591a\u6838\u8655\u7406\u5668\u3002Redis \u662f\u55ae\u7dda\u7a0b\u7684\u3002\u5982\u4f55\u5229\u7528\u591a\u500b CPU \/ \u6838\u5fc3\uff1f\u5373\u4fbf\u5982\u6b64\uff0c\u5728\u5e73\u5e38\u7684 Redis \u4e2d\uff0cCPU \u4e0d\u6703\u6210\u70ba\u74f6\u9838\uff0c\u56e0\u6b64\u7576\u9700\u8981\u64f4\u5c55\u6027\u6642\uff0c\u63a8\u85a6\u7684\u505a\u6cd5\u662f\u4f7f\u7528\u591a\u500b Redis \u5be6\u4f8b\u4f86\u5efa\u7acb Redis Cluster \u6216 Redis Proxy\uff0c\u800c\u4e0d\u662f\u4f7f\u7528\u591a\u6838\u8655\u7406\u5668 + \u591a\u7dda\u7a0b\u3002\uff08\u898b\u7b2c\u4e03\u689d\u5ba3\u8a00\uff09<\/p>\n<h3>\u591a\u7ebf\u7a0b<\/h3>\n<p>memcached\u7684\u67b6\u6784\u91c7\u7528\u4e86\u591a\u7ebf\u7a0b\u6a21\u5f0f\u3002\u7136\u800c\uff0c\u6b63\u5982ConfiguringServer\u4e2d\u6240\u8ff0\uff0c\u4e0eapache\u7b49\u6a21\u578b\u4e0d\u540c\uff0c\u5b83\u66f4\u503e\u5411\u4e8e\u91c7\u7528nginx\u7684\u6a21\u578b\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u5b83\u50cfRedis\u4e00\u6837\u4f7f\u7528\u4e8b\u4ef6\u5faa\u73af\u3002<\/p>\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u6709\u56db\u4e2a\u7ebf\u7a0b\u88ab\u5206\u914d\uff0c\u5e76\u4f7f\u7528\u540d\u4e3alibevent\u7684\u5e93\u6765\u6267\u884c\u4e8b\u4ef6\u5faa\u73af\u3002\u56e0\u6b64\uff0c\u5373\u4f7f\u662f\u591a\u7ebf\u7a0b\uff0c\u4e5f\u4e0d\u4f1a\u9762\u4e34C10K\u95ee\u9898\u3002<\/p>\n<p>\u901a\u8fc7\u91c7\u7528\u591a\u7ebf\u7a0b\u6a21\u578b\uff0c\u65e0\u6cd5\u907f\u514d\u51fa\u73b0\u7ade\u6001\u6761\u4ef6\u3002\u4e3a\u4e86\u907f\u514d\u7ade\u6001\u6761\u4ef6\uff0c\u5728Memcached\u4e2d\u63d0\u4f9b\u4e86\u4e00\u79cd\u4e50\u89c2\u7684\u5e76\u53d1\u63a7\u5236\u65b9\u6cd5\uff0c\u5373cas\u547d\u4ee4\u3002<\/p>\n<blockquote><p>\u68c0\u67e5\u5e76\u8bbe\u7f6e\uff08\u6216\u6bd4\u8f83\u5e76\u4ea4\u6362\uff09\u3002\u4e00\u79cd\u64cd\u4f5c\uff0c\u7528\u4e8e\u5b58\u50a8\u6570\u636e\uff0c\u4f46\u4ec5\u5728\u60a8\u4e0a\u6b21\u8bfb\u53d6\u8be5\u6570\u636e\u540e\u6ca1\u6709\u5176\u4ed6\u4eba\u66f4\u65b0\u6570\u636e\u65f6\u3002\u7528\u4e8e\u89e3\u51b3\u66f4\u65b0\u7f13\u5b58\u6570\u636e\u7684\u7ade\u4e89\u6761\u4ef6\u3002\u3010\u5f15\u7528\u3011\u6307\u4ee4<\/p><\/blockquote>\n<p>Memcached \u5c06\u6570\u636e\u8bbf\u95ee\u5206\u6563\u5230\u7ebf\u7a0b\u4e0a\uff0c\u800c Redis \u4ec5\u5c06 I\/O \u5206\u6563\u5230\u7ebf\u7a0b\u4e0a\u3002<\/p>\n<h3>\u952eDB<\/h3>\n<p>\u5b58\u5728\u7684KeyDB\u662f\u4e00\u4e2a\u57fa\u4e8eRedis Fork\u7684\u591a\u7ebf\u7a0b\u7248\u672c\u7684\u6570\u636e\u5e93\uff0c\u5bf9\u4e8eRedis\u91c7\u7528\u5355\u7ebf\u7a0b\u6a21\u578b\u7684\u4e89\u8bae\u89c2\u70b9\u4e0d\u4e00\u3002<\/p>\n<blockquote><p>KeyDB\u901a\u8fc7\u5728\u591a\u4e2a\u7ebf\u7a0b\u4e0a\u8fd0\u884c\u6b63\u5e38\u7684Redis\u4e8b\u4ef6\u5faa\u73af\u6765\u5de5\u4f5c\u3002\u7f51\u7edcIO\u548c\u67e5\u8be2\u89e3\u6790\u662f\u5e76\u53d1\u5b8c\u6210\u7684\u3002\u6bcf\u4e2a\u8fde\u63a5\u5728accept()\u65f6\u88ab\u5206\u914d\u4e00\u4e2a\u7ebf\u7a0b\u3002\u6838\u5fc3\u54c8\u5e0c\u8868\u7684\u8bbf\u95ee\u53d7\u5230\u81ea\u65cb\u9501\u7684\u4fdd\u62a4\u3002\u7531\u4e8e\u54c8\u5e0c\u8868\u7684\u8bbf\u95ee\u975e\u5e38\u5feb\u901f\uff0c\u6240\u4ee5\u8be5\u9501\u7684\u4e89\u7528\u8f83\u4f4e\u3002\u4e8b\u52a1\u4f1a\u5728EXEC\u547d\u4ee4\u7684\u6301\u7eed\u65f6\u95f4\u5185\u6301\u6709\u9501\u3002\u6a21\u5757\u4e0eGIL\u534f\u540c\u5de5\u4f5c\uff0c\u53ea\u6709\u5728\u6240\u6709\u670d\u52a1\u5668\u7ebf\u7a0b\u90fd\u6682\u505c\u65f6\u624d\u4f1a\u83b7\u53d6GIL\u3002\u8fd9\u4fdd\u8bc1\u4e86\u6a21\u5757\u6240\u671f\u671b\u7684\u539f\u5b50\u6027\u4fdd\u8bc1\u3002\u3010\u5f15\u7528\u3011\u4e00\u4e2a\u6bd4Redis\u5feb5\u500d\u7684\u591a\u7ebf\u7a0bRedis\u884d\u751f\u7248\u672c\u3002<\/p><\/blockquote>\n<p>\u6839\u636eMulti Thread\u7684\u7ed3\u6784\uff0cKeyDB\u53ef\u80fd\u4f1a\u51fa\u73b0\u7ade\u6001\u6761\u4ef6\u3002\u636e\u63a8\u6d4b\uff0c\u5b83\u901a\u8fc7\u4f7f\u7528\u81ea\u65cb\u9501\u6765\u5b9e\u73b0\u5bf9Hash Table\u7684\u8bbf\u95ee\u7684\u4e92\u65a5\u4fdd\u62a4\u3002\u800cKeyDB-Pro\u5219\u5f15\u5165\u4e86MVCC\u6765\u5b9e\u73b0\u5feb\u7167\u9694\u79bb\u3002<\/p>\n<h1>\u73b0\u91d1<\/h1>\n<p>\u7f13\u5b58\u6307\u7684\u662f\u53ea\u6267\u884c\u4e00\u6b21\u8017\u65f6\u64cd\u4f5c\uff0c\u7136\u540e\u5c06\u7ed3\u679c\u4fdd\u5b58\u5728\u5185\u5b58\u4e2d\u3002\u4f8b\u5982\uff0c\u5728\u8fdb\u884c\u6d88\u8017CPU\u7684\u5904\u7406\u65f6\uff0c\u901a\u8fc7\u91cd\u590d\u6267\u884c\u8be5\u5904\u7406\u4e0d\u662f\u9ad8\u6548\u7684\u65b9\u6cd5\uff0c\u6240\u4ee5\u6211\u4eec\u5e94\u8be5\u5c06\u5904\u7406\u7ed3\u679c\u4fdd\u5b58\u5728RAM\u4e2d\u4ee5\u4fbf\u91cd\u590d\u4f7f\u7528\u3002<\/p>\n<p>Redis\u3084Memcached\u306e\u3088\u3046\u306a\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u3088\u304f\u4f7f\u308f\u308c\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5f97\u308b\u3053\u3068\u3092\u4e3b\u76ee\u7684\u3068\u3057\u3066\u5c0e\u5165\u3055\u308c\u308b\u3053\u3068\u3082\u3042\u308c\u3070\u3001DB\u306b\u5bfe\u3059\u308bread\u306e\u8ca0\u8377\u5206\u6563\u3092\u4e3b\u76ee\u7684\u3068\u3057\u3066\u5c0e\u5165\u3055\u308c\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u753b\u50cf\u304c\u793a\u3059\u3088\u3046\u306b\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u306f\u69d8\u3005\u306a\u30ec\u30a4\u30e4\u3067\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1b5d37434c4406c0e10d\/44-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2020-07-05 16.52.19.png\" \/><\/div>\n<p>\u5728\u672c\u7bc7\u6295\u7a3f\u4e2d\uff0c\u6211\u4eec\u5c06\u53c2\u8003\u6570\u636e\u5e93\u7f13\u5b58\u7684\u547d\u540d\u65b9\u5f0f\uff0c\u8ba8\u8bba\u4ee5\u4e0b\u4e24\u4e2a\u5185\u5bb9\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Local Caches (client-side caching \/ application cache)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Remote Caches<\/ul>\n<h2>\u672c\u5730\u7f13\u5b58<\/h2>\n<p>\u5728Redis\u4e2d\uff0c\u5b83\u88ab\u4ecb\u7ecd\u4e3a\u5ba2\u6237\u7aef\u7f13\u5b58\u3002\u8bf7\u6ce8\u610f\uff0c\u5ba2\u6237\u7aef\u662f\u6307Redis\u4e2d\u7684\u5e94\u7528\u7a0b\u5e8f\u670d\u52a1\u5668\u3002<\/p>\n<pre class=\"post-pre\"><code>+-------------+                                +----------+\r\n|             |                                |          |\r\n| Application |       ( No chat needed )       | Database |\r\n|             |                                |          |\r\n+-------------+                                +----------+\r\n| Local cache |\r\n|             |\r\n| user:1234 = |\r\n| username    |\r\n| Alice       |\r\n+-------------+\r\n\r\n<\/code><\/pre>\n<p>\u3010\u5f15\u7528\u3011Redis\u670d\u52a1\u7aef\u8f85\u52a9\u7684\u5ba2\u6237\u7aef\u7f13\u5b58<\/p>\n<p>\u901a\u8fc7\u5728\u5ba2\u6237\u7aef\u8fdb\u884c\u7f13\u5b58\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5feb\u901f\u7684\u6570\u636e\u8bbf\u95ee\uff0c\u65e0\u9700\u901a\u8fc7\u7f51\u7edc\uff0c\u5e76\u4e14\u8282\u7701\u4e86\u78c1\u76d8I\/O\u3002<\/p>\n<p>\u4e00\u65b9\u9762\uff0c\u9700\u8981\u6ce8\u610f\u7684\u662f\u5c06\u7f13\u5b58\u653e\u5728\u4e0e\u5e94\u7528\u670d\u52a1\u5668\u76f8\u540c\u7684\u5185\u5b58\u4e2d\u7684\u672c\u5730\u7f13\u5b58\u3002\u5f53\u5c06\u5e94\u7528\u670d\u52a1\u5668\u5206\u4e3a\u591a\u4e2a\u5b9e\u4f8b\u8fdb\u884c\u8d1f\u8f7d\u5747\u8861\u65f6\uff0c\u53ef\u80fd\u4f1a\u51fa\u73b0\u6570\u636e\u4e0d\u4e00\u81f4\u7684\u60c5\u51b5\uff0c\u56e0\u4e3a\u5728\u5e94\u7528\u670d\u52a1\u5668\u7684\u7f13\u5b58\u4e4b\u95f4\uff0c\u6839\u636e\u6269\u5c55\u6765\u8bf4\u7f29\u653e\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4e0d\u4e00\u81f4\u3002<\/p>\n<blockquote><p>\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u30b7\u30b9\u30c6\u30e0\u3068\u540c\u3058\u30ce\u30fc\u30c9\u306b\u3042\u308b\u5834\u5408\u3001\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u304c\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u6574\u5408\u6027\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u30ed\u30fc\u30ab\u30eb\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u3001\u30c7\u30fc\u30bf\u3092\u6d88\u8cbb\u3059\u308b\u30ed\u30fc\u30ab\u30eb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u307f\u304c\u30ed\u30fc\u30ab\u30eb\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u6d3b\u7528\u3067\u304d\u307e\u3059\u3002\u5206\u6563\u30ad\u30e3\u30c3\u30b7\u30e5\u74b0\u5883\u3067\u306f\u3001\u30c7\u30fc\u30bf\u304c\u8907\u6570\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u30b5\u30fc\u30d0\u30fc\u306b\u307e\u305f\u304c\u308b\u5834\u5408\u304c\u3042\u308b\u305f\u3081\u3001\u30c7\u30fc\u30bf\u306e\u30b3\u30f3\u30b7\u30e5\u30fc\u30de\u30fc\u3059\u3079\u3066\u306b\u6d3b\u7528\u3055\u308c\u308b\u3088\u3046\u306b\u3001\u4e00\u5143\u7684\u306a\u5834\u6240\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002<br \/>\n\u3010\u5f15\u7528\u3011\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u6982\u8981<\/p><\/blockquote>\n<h2>\u8fdc\u7a0b\u7f13\u5b58<\/h2>\n<p>\u5bf9\u4e8e\u5e94\u7528\u7a0b\u5e8f\u7f13\u5b58\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u72ec\u7acb\u4e8e\u5e94\u7528\u7a0b\u5e8f\u548c\u6570\u636e\u5e93\u7684\u7f13\u5b58\u65b9\u5f0f\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1b5d37434c4406c0e10d\/56-0.png\" alt=\"figure2.png\" \/><\/div>\n<p>\u5c3d\u7ba1\u901a\u8fc7\u7f51\u7edc\u8fde\u63a5\u53ef\u80fd\u5bfc\u81f4\u6570\u636e\u8bbf\u95ee\u53d8\u6162\uff0c\u4f46\u7531\u4e8e\u53ef\u4ee5\u4ece\u591a\u4e2a\u5e94\u7528\u670d\u52a1\u5668\u5b9e\u4f8b\u5f15\u7528\u540c\u4e00\u4e2a\u7f13\u5b58\u670d\u52a1\u5668\uff0c\u56e0\u6b64\u4e0d\u4f1a\u53d1\u751f\u7c7b\u4f3c\u672c\u5730\u7f13\u5b58\u4e2d\u6570\u636e\u4e0d\u4e00\u81f4\u7684\u60c5\u51b5\u3002<\/p>\n<h2>\u7f13\u5b58\u7b56\u7565<\/h2>\n<p>\u5982\u679c\u8003\u8651\u4f7f\u7528\u7f13\u5b58\uff0c\u9700\u8981\u8003\u8651\u5230\u5199\u5165\u6570\u636e\u5e93\u7684\u9891\u7387\u662f\u5426\u8fc7\u9ad8\uff0c\u4ee5\u53ca\u8bfb\u53d6\u7b49\u64cd\u4f5c\u662f\u5426\u9891\u7e41\u4f7f\u7528\u7f13\u5b58\u7b49\u5404\u79cd\u56e0\u7d20\u3002\u5173\u4e8e\u662f\u5426\u672c\u8d28\u4e0a\u5e94\u8be5\u4f7f\u7528\u7f13\u5b58\uff0c\u6211\u4eec\u5c06\u6682\u4e0d\u8ba8\u8bba\u3002\u5047\u8bbe\u6211\u4eec\u4f7f\u7528\u7f13\u5b58\u3002<\/p>\n<p>\u65e0\u8bba\u662f\u4f7f\u7528\u672c\u5730\u7f13\u5b58\u8fd8\u662f\u8fdc\u7a0b\u7f13\u5b58\uff0c\u90fd\u9700\u8981\u8003\u8651\u6570\u636e\u5e93\u548c\u7f13\u5b58\u6570\u636e\u5e93\u4e4b\u95f4\u7684\u4e00\u81f4\u6027\u3002\u6b64\u5916\uff0c\u4e3a\u4e86\u9632\u6b62\u7f13\u5b58\u672a\u547d\u4e2d\u5bfc\u81f4\u6027\u80fd\u4e0b\u964d\uff0c\u9700\u8981\u8003\u8651\u5728\u4f55\u65f6\u5c06\u54ea\u4e9b\u6570\u636e\u4fdd\u5b58\u5230\u7f13\u5b58\u4e2d\uff0c\u4ee5\u53ca\u5c06\u6570\u636e\u4fdd\u5b58\u5728\u7f13\u5b58\u4e2d\u7684\u65f6\u95f4\u3002\u56e0\u6b64\uff0c\u5728\u5f15\u5165\u7f13\u5b58\u65f6\uff0c\u7f13\u5b58\u7b56\u7565\u5373\u7f13\u5b58\u548c\u6570\u636e\u5e93\u4e4b\u95f4\u7684\u7cfb\u7edf\u8bbe\u8ba1\u53d8\u5f97\u91cd\u8981\u8d77\u6765\u3002<\/p>\n<p>\u4ece\u8fd9\u91cc\u5f00\u59cb\uff0c\u6211\u4eec\u5c06\u770b\u4e24\u79cd\u5178\u578b\u7684\u7f13\u5b58\u7b56\u7565\u3002<\/p>\n<h3>\u9605\u8bfb\/\u61d2\u7f13\u5b58\/\u9664\u7f13\u5b58\u4e4b\u5916\uff08\u53cd\u5e94\u6027\u65b9\u6cd5\uff09<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1b5d37434c4406c0e10d\/63-0.gif\" alt=\"image003.gif\" \/><\/div>\n<p>\u5728\u4e0a\u56fe\u4e2d\uff0c\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5982\u679c\u5728\u7f13\u5b58\u4e2d\u5b58\u5728\u6570\u636e\uff0c\u5219\u4e0d\u5b58\u5728&#8221;Process \/ Format data&#8221;\u7684\u8fc7\u7a0b\u3002\u901a\u8fc7\u63d0\u524d\u5904\u7406\/\u683c\u5f0f\u5316\u6570\u636e\u5e76\u5c06\u5176\u5199\u5165\u7f13\u5b58\uff0c\u53ef\u4ee5\u5728\u6709\u6570\u636e\u5b58\u5728\u4e8e\u7f13\u5b58\u4e2d\u65f6\u76f4\u63a5\u4f7f\u7528\u6570\u636e\u800c\u65e0\u9700\u8fdb\u884c\u5904\u7406\/\u683c\u5f0f\u5316\u3002<\/p>\n<p>\u5728\u8bfb\u53d6\u65f6\u53d1\u751f\u7f13\u5b58\u9519\u8bef\u65f6\uff0c\u4f1a\u4ece\u6570\u636e\u5e93\u4e2d\u83b7\u53d6\u6570\u636e\u5e76\u5c06\u5176\u5199\u5165\u7f13\u5b58\u4e2d\u3002\u56e0\u6b64\uff0c\u9700\u8981\u6ce8\u610f\u5982\u679c\u53d1\u751f\u7f13\u5b58\u9519\u8bef\uff0c\u8bfb\u53d6\u6027\u80fd\u4f1a\u4e0b\u964d\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u5b9e\u9645\u8bf7\u6c42\u7684\u6570\u636e\u624d\u4f1a\u88ab\u7f13\u5b58\uff0c\u56e0\u6b64\u662f\u9ad8\u6548\u7684\u3002\u4f46\u662f\uff0c\u4ec5\u9760\u8fd9\u79cd\u7b56\u7565\u65e0\u6cd5\u5c06\u66f4\u65b0\u540c\u6b65\u5230\u6570\u636e\u5e93\uff0c\u5bfc\u81f4\u7f13\u5b58\u7684\u503c\u53ef\u80fd\u53d8\u5f97\u9648\u65e7\u3002\u56e0\u6b64\uff0c\u4e3a\u4e86\u9632\u6b62\u7f13\u5b58\u503c\u8fc7\u65e7\uff0c\u9700\u8981\u6b63\u786e\u8bbe\u7f6eTTL\uff0c\u6216\u8005\u4e0e\u4e0b\u6587\u4ecb\u7ecd\u7684\u5199\u56de\u7b56\u7565\u76f8\u7ed3\u5408\u3002<\/p>\n<h3>\u4ee5\u4e3b\u52a8\u7684\u65b9\u5f0f\u4e66\u5199 \uff08\u7a4d\u6975\u65b9\u6cd5\uff09<\/h3>\n<p>\u5728\u6570\u636e\u66f4\u65b0\u65f6\uff0c\u5c06\u6570\u636e\u5b58\u50a8\u5230\u7f13\u5b58\u4e2d\uff0c\u8fd9\u5c31\u662f\u5199\u5165\u900f\u660e\u6027\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1b5d37434c4406c0e10d\/69-0.gif\" alt=\"image005.gif\" \/><\/div>\n<p>\u901a\u8fc7\u91c7\u7528write through\u7b56\u7565\uff0c\u5f53\u5bf9\u6570\u636e\u5e93\u8fdb\u884c\u5199\u5165\u65f6\uff0c\u4e5f\u4f1a\u5bf9\u7f13\u5b58\u8fdb\u884c\u5199\u5165\uff0c\u4ee5\u786e\u4fdd\u7f13\u5b58\u4e0d\u5305\u542b\u65e7\u503c\u3002\u6b64\u5916\uff0c\u53ef\u4ee5\u5c06\u5bf9\u7f13\u5b58\u7684\u5199\u5165\u64cd\u4f5c\u4ece\u8bfb\u53d6\u65f6\u79fb\u81f3\u5199\u5165\u65f6\u3002\u5bf9\u4e8e\u7528\u6237\u6765\u8bf4\uff0c\u5199\u5165\u64cd\u4f5c\u5728\u76f4\u89c9\u4e0a\u88ab\u8ba4\u4e3a\u662f\u8017\u65f6\u7684\uff0c\u56e0\u6b64\u53ef\u4ee5\u63d0\u9ad8\u7528\u6237\u7684\u53ef\u7528\u6027\uff08\u8bfb\u53d6\u8f83\u5feb\uff0c\u5199\u5165\u8f83\u6162\uff09\u3002<\/p>\n<p>\u901a\u8fc7\u91c7\u7528\u5199\u901a\u8fc7\u65b9\u5f0f\uff0c\u53ef\u4ee5\u59cb\u7ec8\u66f4\u65b0\u7f13\u5b58\u7684\u6700\u65b0\u6570\u636e\uff0c\u4f46\u662f\u7531\u4e8e\u53ef\u80fd\u4f1a\u51fa\u73b0\u5e94\u7528\u7a0b\u5e8f\u903b\u8f91\u9057\u6f0f\u7b49\u60c5\u51b5\uff0c\u7f13\u5b58\u53ef\u80fd\u4e0d\u4f1a\u88ab\u66f4\u65b0\u3002\u56e0\u6b64\uff0c\u59cb\u7ec8\u8bbe\u7f6eTTL\u662f\u5f88\u91cd\u8981\u7684\uff0c\u4ee5\u5e94\u5bf9\u8fd9\u79cd\u60c5\u51b5\u3002<\/p>\n<p>TTL\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u3044\u3046\u306e\u306f\u7c21\u5358\u306a\u306e\u3067\u3059\u304c\u3001\u5b9f\u969b\u306f\u4f55\u79d2\/\u5206\u3067expire\u3055\u305b\u308b\u306e\u304b\u96e3\u3057\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u30c7\u30fc\u30bf\u304c\u3069\u306e\u304f\u3089\u3044\u306e\u983b\u5ea6\u3067\u5909\u66f4\u3055\u308c\u308b\u306e\u304b\u3001\u307e\u305f\u3001\u53e4\u3044\u5024\u3092\u8fd4\u3057\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u306e\u30ea\u30b9\u30af\u306a\u3069\u3092\u8003\u616e\u3057\u3066\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u305d\u308c\u305e\u308c\u306e\u30c7\u30fc\u30bf\u306eTTL\u3092\u5c11\u3057\u305a\u3089\u3057\u3066\u304a\u304f\u3053\u3068\u3067\u3001TTL\u304cexpire\u3057\u305f\u6642\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306e\u8ca0\u8377\u3092\u4e0b\u3052\u308b\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3082\u91cd\u8981\u306a\u3088\u3046\u3067\u3059\u3002\uff08Cache Thundering Herd\u554f\u984c\uff09<\/p>\n<h1>\u53c2\u8003<\/h1>\n<h2>\u4e66\u7c4d<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Redis in Action<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/redislabs.com\/redis-in-action\/<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Database Internals: A Deep Dive into How Distributed Data Systems Work<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/www.amazon.co.jp\/dp\/B07XW76VHZ\/ref=dp-kindle-redirect?_encoding=UTF8&amp;btkr=1<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">https:\/\/www.amazon.co.jp\/Designing-Data-Intensive-Applications-Reliable-Maintainable-ebook\/dp\/B06XPJML5D<\/ul>\n<h2>Redis \u662f\u4e00\u79cd\u5f00\u6e90\u7684\u5185\u5b58\u6570\u636e\u5e93\u7cfb\u7edf\u3002<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Redis\u306e\u7279\u5fb4\u3068\u6d3b\u7528\u65b9\u6cd5\u306b\u3064\u3044\u3066<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/www.slideshare.net\/yujiotani16\/redis-76504393<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3068\u30c7\u30fc\u30bf\u69cb\u9020\u304b\u3089\u7406\u89e3\u3059\u308bRedis \/ Learn Redis from Internal Algorithms and Data Structures<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/speakerdeck.com\/kawasy\/learn-redis-from-internal-algorithms-and-data-structures<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Redis\u4f5c\u8005\u81ea\u8eab\u306b\u3088\u308bRedis\u3068Memcached\u306e\u6bd4\u8f03<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/yakst.com\/ja\/posts\/3243<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">http:\/\/antirez.com\/news\/94<\/ul>\n<\/li>\n<\/ul>\n<p>Dive Deep Redis ~ \u5165\u9580\u304b\u3089\u5b9f\u88c5\u306e\u78ba\u8a8d\u307e\u3067 ~<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"b36hd6uwY2\"><p><a href=\"https:\/\/hayashier.com\/article\/dive-deep-redis-getting-started\/\">Dive Deep Redis ~ \u5165\u9580\u304b\u3089\u5b9f\u88c5\u306e\u78ba\u8a8d\u307e\u3067<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Dive Deep Redis ~ \u5165\u9580\u304b\u3089\u5b9f\u88c5\u306e\u78ba\u8a8d\u307e\u3067&#8221; &#8212; hayashier Tech Blogs\" src=\"https:\/\/hayashier.com\/article\/dive-deep-redis-getting-started\/embed\/#?secret=b2texUtGrw#?secret=b36hd6uwY2\" data-secret=\"b36hd6uwY2\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>Thread<\/p>\n<p>Why isn&#8217;t Redis designed to benefit from multi-threading?<br \/>\nhttps:\/\/www.quora.com\/Why-isnt-Redis-designed-to-benefit-from-multi-threading<br \/>\nHow can Redis give multiple responses for multiple users with a single thread mechanism?<br \/>\nhttps:\/\/www.quora.com\/How-can-Redis-give-multiple-responses-for-multiple-users-with-a-single-thread-mechanism<br \/>\nConcurrency vs Event Loop vs Event Loop + Concurrency<br \/>\nhttps:\/\/medium.com\/@tigranbs\/concurrency-vs-event-loop-vs-event-loop-concurrency-eb542ad4067b<\/p>\n<h2>\u5185\u5b58\u7f13\u5b58<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Hardware<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/github.com\/memcached\/memcached\/wiki\/Hardware<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Home<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">https:\/\/github.com\/memcached\/memcached\/wiki<\/ul>\n<h2>\u4e3b\u8981\u6570\u636e\u5e93<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">KeyDB<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/keydb.dev<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">MultiVersion Concurrency Control (MVCC)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/docs.keydb.dev\/docs\/pro-mvcc\/<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">A Multithreaded Fork of Redis That\u2019s 5X Faster Than Redis<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">https:\/\/docs.keydb.dev\/blog\/2019\/10\/07\/blog-post\/<\/ul>\n<h2>SQLite\u662f\u4e00\u79cd\u5d4c\u5165\u5f0f\u5173\u7cfb\u578b\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u3002<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Distinctive Features Of SQLite<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/www.sqlite.org\/different.html<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">In-Memory Databases<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">https:\/\/www.sqlite.org\/inmemorydb.html<\/ul>\n<h2>\u7f13\u5b58<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30ad\u30e3\u30c3\u30b7\u30e5<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/docs.microsoft.com\/ja-jp\/azure\/architecture\/best-practices\/caching<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u304a\u3051\u308b\u6b63\u3057\u3044\u30ad\u30e3\u30c3\u30b7\u30e5\u6226\u7565<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/buildersbox.corp-sansan.com\/entry\/2019\/03\/25\/150000<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Database Caching<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/aws.amazon.com\/jp\/caching\/database-caching\/<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Caching Best Practices<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/aws.amazon.com\/jp\/caching\/best-practices\/<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u6982\u8981<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/aws.amazon.com\/jp\/caching\/<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Cache Me If You Can Minimizing Latency While Optimizing Cost Through Advanced Caching Strategies &#8211; ATC303 &#8211; re:Invent 2017<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">https:\/\/www.youtube.com\/watch?v=WFRIivS2mpo&amp;feature=emb_title<\/ul>\n<h2>\u5176\u4ed6<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Modern Main-Memory Database Systems<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">http:\/\/www.vldb.org\/pvldb\/vol9\/p1609-larson.pdf<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Redis vs. Memcached: In-Memory Data Storage Systems<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">https:\/\/medium.com\/@Alibaba_Cloud\/redis-vs-memcached-in-memory-data-storage-systems-3395279b0941<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u7531\u4e8e\u5728\u5de5\u4f5c\u4e2d\u63a5\u89e6\u5230\u4e0e\u73b0\u91d1\u6709\u5173\u7684\u90e8\u5206\uff0c\u6211\u6709\u673a\u4f1a\u6df1\u5165\u4e86\u89e3\u4e86\u73b0\u91d1\u3002\u4ee5\u4e0b\u662f\u6211\u7684\u603b\u7ed3\u3002 Redis\u662f\u4ec0\u4e48\uff1f Redis\u662f [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-34113","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6211\u8bd5\u7740\u66f4\u6df1\u5165\u5730\u7406\u89e3Redis\u548c\u7f13\u5b58 - Blog - Silicon Cloud<\/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:\/\/www.silicloud.com\/zh\/blog\/\u6211\u8bd5\u7740\u66f4\u6df1\u5165\u5730\u7406\u89e3redis\u548c\u7f13\u5b58\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6211\u8bd5\u7740\u66f4\u6df1\u5165\u5730\u7406\u89e3Redis\u548c\u7f13\u5b58\" \/>\n<meta property=\"og:description\" content=\"\u7531\u4e8e\u5728\u5de5\u4f5c\u4e2d\u63a5\u89e6\u5230\u4e0e\u73b0\u91d1\u6709\u5173\u7684\u90e8\u5206\uff0c\u6211\u6709\u673a\u4f1a\u6df1\u5165\u4e86\u89e3\u4e86\u73b0\u91d1\u3002\u4ee5\u4e0b\u662f\u6211\u7684\u603b\u7ed3\u3002 Redis\u662f\u4ec0\u4e48\uff1f Redis\u662f [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u8bd5\u7740\u66f4\u6df1\u5165\u5730\u7406\u89e3redis\u548c\u7f13\u5b58\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-17T13:38:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T02:49:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1b5d37434c4406c0e10d\/9-0.png\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e6%9b%b4%e6%b7%b1%e5%85%a5%e5%9c%b0%e7%90%86%e8%a7%a3redis%e5%92%8c%e7%bc%93%e5%ad%98%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e6%9b%b4%e6%b7%b1%e5%85%a5%e5%9c%b0%e7%90%86%e8%a7%a3redis%e5%92%8c%e7%bc%93%e5%ad%98%e3%80%82\/\",\"name\":\"\u6211\u8bd5\u7740\u66f4\u6df1\u5165\u5730\u7406\u89e3Redis\u548c\u7f13\u5b58 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2024-02-17T13:38:44+00:00\",\"dateModified\":\"2024-04-29T02:49:05+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e6%9b%b4%e6%b7%b1%e5%85%a5%e5%9c%b0%e7%90%86%e8%a7%a3redis%e5%92%8c%e7%bc%93%e5%ad%98%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e6%9b%b4%e6%b7%b1%e5%85%a5%e5%9c%b0%e7%90%86%e8%a7%a3redis%e5%92%8c%e7%bc%93%e5%ad%98%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e6%9b%b4%e6%b7%b1%e5%85%a5%e5%9c%b0%e7%90%86%e8%a7%a3redis%e5%92%8c%e7%bc%93%e5%ad%98%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6211\u8bd5\u7740\u66f4\u6df1\u5165\u5730\u7406\u89e3Redis\u548c\u7f13\u5b58\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e6%9b%b4%e6%b7%b1%e5%85%a5%e5%9c%b0%e7%90%86%e8%a7%a3redis%e5%92%8c%e7%bc%93%e5%ad%98%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u6211\u8bd5\u7740\u66f4\u6df1\u5165\u5730\u7406\u89e3Redis\u548c\u7f13\u5b58 - Blog - Silicon Cloud","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:\/\/www.silicloud.com\/zh\/blog\/\u6211\u8bd5\u7740\u66f4\u6df1\u5165\u5730\u7406\u89e3redis\u548c\u7f13\u5b58\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u6211\u8bd5\u7740\u66f4\u6df1\u5165\u5730\u7406\u89e3Redis\u548c\u7f13\u5b58","og_description":"\u7531\u4e8e\u5728\u5de5\u4f5c\u4e2d\u63a5\u89e6\u5230\u4e0e\u73b0\u91d1\u6709\u5173\u7684\u90e8\u5206\uff0c\u6211\u6709\u673a\u4f1a\u6df1\u5165\u4e86\u89e3\u4e86\u73b0\u91d1\u3002\u4ee5\u4e0b\u662f\u6211\u7684\u603b\u7ed3\u3002 Redis\u662f\u4ec0\u4e48\uff1f Redis\u662f [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u8bd5\u7740\u66f4\u6df1\u5165\u5730\u7406\u89e3redis\u548c\u7f13\u5b58\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-02-17T13:38:44+00:00","article_modified_time":"2024-04-29T02:49:05+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d1b5d37434c4406c0e10d\/9-0.png"}],"author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e6%9b%b4%e6%b7%b1%e5%85%a5%e5%9c%b0%e7%90%86%e8%a7%a3redis%e5%92%8c%e7%bc%93%e5%ad%98%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e6%9b%b4%e6%b7%b1%e5%85%a5%e5%9c%b0%e7%90%86%e8%a7%a3redis%e5%92%8c%e7%bc%93%e5%ad%98%e3%80%82\/","name":"\u6211\u8bd5\u7740\u66f4\u6df1\u5165\u5730\u7406\u89e3Redis\u548c\u7f13\u5b58 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2024-02-17T13:38:44+00:00","dateModified":"2024-04-29T02:49:05+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e6%9b%b4%e6%b7%b1%e5%85%a5%e5%9c%b0%e7%90%86%e8%a7%a3redis%e5%92%8c%e7%bc%93%e5%ad%98%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e6%9b%b4%e6%b7%b1%e5%85%a5%e5%9c%b0%e7%90%86%e8%a7%a3redis%e5%92%8c%e7%bc%93%e5%ad%98%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e6%9b%b4%e6%b7%b1%e5%85%a5%e5%9c%b0%e7%90%86%e8%a7%a3redis%e5%92%8c%e7%bc%93%e5%ad%98%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u6211\u8bd5\u7740\u66f4\u6df1\u5165\u5730\u7406\u89e3Redis\u548c\u7f13\u5b58"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e6%9b%b4%e6%b7%b1%e5%85%a5%e5%9c%b0%e7%90%86%e8%a7%a3redis%e5%92%8c%e7%bc%93%e5%ad%98%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/34113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=34113"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/34113\/revisions"}],"predecessor-version":[{"id":84822,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/34113\/revisions\/84822"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=34113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=34113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=34113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}