{"id":50586,"date":"2023-04-03T22:05:41","date_gmt":"2024-01-29T10:34:11","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e5%b0%86redis%e5%92%8celasticache%e7%ae%80%e5%8d%95%e6%80%bb%e7%bb%93%e4%b8%80%e4%b8%8b%ef%bc%8c%e8%ae%a9%e4%ba%ba%e6%9b%b4%e6%98%93%e7%90%86%e8%a7%a3%e3%80%82\/"},"modified":"2024-04-29T21:46:40","modified_gmt":"2024-04-29T13:46:40","slug":"%e6%88%91%e8%af%95%e7%9d%80%e5%b0%86redis%e5%92%8celasticache%e7%ae%80%e5%8d%95%e6%80%bb%e7%bb%93%e4%b8%80%e4%b8%8b%ef%bc%8c%e8%ae%a9%e4%ba%ba%e6%9b%b4%e6%98%93%e7%90%86%e8%a7%a3%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e5%b0%86redis%e5%92%8celasticache%e7%ae%80%e5%8d%95%e6%80%bb%e7%bb%93%e4%b8%80%e4%b8%8b%ef%bc%8c%e8%ae%a9%e4%ba%ba%e6%9b%b4%e6%98%93%e7%90%86%e8%a7%a3%e3%80%82\/","title":{"rendered":"\u6211\u8bd5\u7740\u5c06Redis\u548cElastiCache\u7b80\u5355\u603b\u7ed3\u4e00\u4e0b\uff0c\u8ba9\u4eba\u66f4\u6613\u7406\u89e3"},"content":{"rendered":"<h1>\u9996\u5148<\/h1>\n<p>\u6211\u6700\u8fd1\u624d\u5f00\u59cb\u5b66\u4e60\u5e76\u603b\u7ed3\u4e86\u4ee5\u524d\u4ec5\u4ec5\u542c\u8bf4\u8fc7\u7684Redis\u3002\u8fd9\u662f\u4e3a\u4e86\u90a3\u4e9b\u867d\u7136\u542c\u8bf4\u8fc7Redis\u4f46\u5bf9\u5176\u5185\u90e8\u4e0d\u719f\u6089\u7684\u4eba\uff0c\u6216\u662f\u5728\u9879\u76ee\u4e2d\u968f\u610f\u4f7f\u7528Redis\u5374\u5b9e\u9645\u4e0a\u5e76\u4e0d\u4e86\u89e3\u7684\u4eba\u800c\u51c6\u5907\u7684\u9875\u9762\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b6913a08637a6e3be8\/2-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2018-11-17 14.07.52.png\" \/><\/div>\n<h1>\u975e\u5173\u7cfb\u578b\u6570\u636e\u5e93<\/h1>\n<p>\u9996\u5148\u4eceNoSQL\u5f00\u59cb\uff0c\u7136\u540e\u518d\u8003\u8651Redis\u3002<\/p>\n<h2>\u80cc\u666f<\/h2>\n<p>\u968f\u7740\u5927\u6570\u636e\u7684\u51fa\u73b0\uff0c\u4f20\u7edf\u7684\u5173\u7cfb\u578b\u6570\u636e\u5e93\u5df2\u7ecf\u65e0\u6cd5\u6ee1\u8db3\u5904\u7406\u9700\u6c42\uff0c\u56e0\u6b64\u51fa\u73b0\u4e86NoSQL\u3002\u5927\u6570\u636e\u7684\u5b9a\u4e49\u6709\u5f88\u591a\u79cd\uff0c\u4f46\u5728\u8fd9\u91cc\u6211\u4eec\u5c06\u6ee1\u8db33V\uff08Volume\/Velocity\/Variety\uff09\u7684\u6570\u636e\u79f0\u4e3a\u5927\u6570\u636e\u3002<\/p>\n<h3>\u4e3a\u4e86\u89e3\u51b3\u5bb9\u91cf\u548c\u901f\u5ea6\u7684\u95ee\u9898\uff0c\u9700\u8981\u4f7f\u7528NoSQL\u6280\u672f\u3002<\/h3>\n<p>\u5f53\u4e0e\u5927\u91cf\u6570\u636e\uff08Volume\uff09\u548c\u4ee5\u79d2\u4e3a\u5355\u4f4d\u7684\u5927\u91cf\u6570\u636e\uff08Velocity\uff09\u76f8\u5173\u7684\u95ee\u9898\u65f6\uff0c\u6709\u4e24\u79cd\u5904\u7406\u65b9\u5f0f\uff1a\u4e00\u79cd\u662f\u6269\u5c55\uff08Scale-up\uff09\uff08\u589e\u52a0\u5185\u5b58\u3001\u589e\u52a0\u6838\u5fc3\u6570\u3001\u5b9e\u73b0SSD\u5316\uff09\uff0c\u53e6\u4e00\u79cd\u662f\u6269\u5c55\uff08Scale-out\uff09\u3002<br \/>\n\u7136\u800c\uff0c\u6269\u5c55\u5f80\u5f80\u5b58\u5728\u7740\u7269\u7406\u9650\u5236\uff0c\u5e76\u4e14\u5173\u7cfb\u578b\u6570\u636e\u5e93\uff08RDB\uff09\u7684\u6269\u5c55\u901a\u5e38\u8f83\u4e3a\u56f0\u96be\u3002<br \/>\n\u4e0e\u5173\u7cfb\u578b\u6570\u636e\u5e93\u76f8\u6bd4\uff0cNoSQL\u901a\u5e38\u66f4\u5bb9\u6613\u5b9e\u73b0\u6269\u5c55\u6027\u3002<\/p>\n<h3>\u4e3a\u4e86\u89e3\u51b3Variety\u7684\u95ee\u9898\uff0c\u9700\u8981\u4f7f\u7528NoSQL\u3002<\/h3>\n<p>\u5728\u5173\u7cfb\u578b\u6570\u636e\u5e93\u4e2d\u5904\u7406\u975e\u5173\u7cfb\u578b\u7684\u591a\u6837\u5316\u6570\u636e\u672c\u6765\u5c31\u5f88\u56f0\u96be\u3002<\/p>\n<h2>\u7279\u5f81<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">4\u3064\u306e\u7a2e\u985e\u3068\u4ee3\u8868\u7684\u306aOSS<\/ul>\n<\/li>\n<\/ul>\n<p>KVS(\u30ad\u30fc\u30d0\u30ea\u30e5\u30fc\u30b9\u30c8\u30a2): \u30ad\u30fc\u3068\u30d0\u30ea\u30e5\u30fc\u306e\u7d44\u307f\u5408\u308f\u305b<\/p>\n<p>Redis<br \/>\nmemcached<\/p>\n<p>\u30ab\u30e9\u30e0\u6307\u5411\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9: \u5217\u65b9\u5411\u306e\u30c7\u30fc\u30bf\u306e\u307e\u3068\u307e\u308a\u3092\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u4e0a\u306e\u9023\u7d9a\u3057\u305f\u4f4d\u7f6e\u306b\u683c\u7d0d\u3057\u52b9\u7387\u7684\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b<\/p>\n<p>cassandra<br \/>\nHBASE<\/p>\n<p>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u6307\u5411\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9: \u30ad\u30fc\u306b\u5bfe\u3057\u3066JSON\u3042\u308b\u3044\u306fXML\u3092\u683c\u7d0d\u3059\u308b<\/p>\n<p>mongoDB<br \/>\ncouchDB<\/p>\n<p>\u30b0\u30e9\u30d5\u6307\u5411\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9: \u30b0\u30e9\u30d5\u7406\u8ad6\u306b\u57fa\u3065\u3044\u3066\u95a2\u9023\u6027\u3092\u6301\u305f\u305b\u308b<\/p>\n<p>neo4j<br \/>\nTITAN<\/p>\n<p>\u9ad8\u901f<\/p>\n<p>\u30a4\u30f3\u30e1\u30e2\u30ea\u3067\u52d5\u4f5c<\/p>\n<p>\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u51e6\u7406\u304c\u3067\u304d\u306a\u3044<\/p>\n<p>ACID\u7279\u6027\u3067\u306a\u3044<\/p>\n<p>\u30b9\u30b1\u30fc\u30eb\u3057\u3084\u3059\u3044<\/p>\n<p>\u305f\u3060\u3057AWS\u306eAurora\u306e\u3088\u3046\u306b\u30b9\u30b1\u30fc\u30eb\u304c\u5bb9\u6613\u306aRDB\u3082\u3067\u3066\u304d\u3066\u3044\u308b\u305f\u3081\u3053\u306e\u7279\u5fb4\u306f\u8584\u308c\u3066\u304d\u3066\u3044\u308b<\/p>\n<h2>\u5728\u4f7f\u7528NoSQL\u548c\u5173\u7cfb\u578b\u6570\u636e\u5e93\uff08RDB\uff09\u65f6\u8981\u9002\u5f53\u9009\u62e9<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30b5\u30fc\u30d3\u30b9\u306f\u30d3\u30c3\u30b0\u30c7\u30fc\u30bf\u3092\u6271\u3046\u6027\u80fd\u304c\u6c42\u3081\u3089\u308c\u308b\u3082\u306e\u304b\uff1f\u30c7\u30fc\u30bf\u306fNoSQL\u3067\u6271\u3048\u308b\u3082\u306e\u304b\uff1f\u3092\u81ea\u554f\u81ea\u7b54\u3059\u308b\u3002Yes\u306a\u3089NoSQL\u3092\u63a1\u7528\u3059\u308b\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>\u3069\u3046\u3057\u3066\u3082\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb\u30c7\u30fc\u30bf\u306b\u3067\u304d\u306a\u3044\u30c7\u30fc\u30bf\u306a\u306e\u304b<br \/>\n\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u7ba1\u7406\u3059\u308b\u5fc5\u8981\u306e\u7121\u3044\u30c7\u30fc\u30bf\u306a\u306e\u304b<br \/>\n\u6700\u60aa\u63ee\u767a\u3057\u3066\u3082\u554f\u984c\u306a\u3044\u30c7\u30fc\u30bf\u306a\u306e\u304b<\/p>\n<p>\u305d\u3046\u3067\u306a\u3051\u308c\u3070RDB\u3067\u7ba1\u7406\u3059\u308b\u3002RDB\u3067\u7ba1\u7406\u3067\u304d\u308b\u3082\u306e\u306f\u6975\u529bRDB\u306b\u5bc4\u305b\u3061\u3083\u3046\u3002<\/p>\n<p>\u3053\u3053\u306f\u500b\u4eba\u306b\u3088\u3063\u3066\u8003\u3048\u65b9\u304c\u9055\u3046\u3068\u601d\u3046<\/p>\n<p>\u4e0d\u5fc5\u8981\u306bNoSQL\u3092\u63a1\u7528\u3059\u308b\u3068\u30b7\u30b9\u30c6\u30e0\u306e\u8907\u96d1\u6027\u304c\u3050\u3093\u3068\u4e0a\u304c\u308b\u306e\u3067\u614e\u91cd\u306b\u63a1\u7528\u3059\u308b\u3053\u3068\u3002<\/p>\n<h1>Redis\u662f\u4e00\u79cd\u9ad8\u6027\u80fd\u7684\u5f00\u6e90\u5185\u5b58\u952e\u503c\u5b58\u50a8\u6570\u636e\u5e93\u7cfb\u7edf\u3002<\/h1>\n<p>\u7ec8\u4e8e\u8f6e\u5230Redis\u4e86\u3002<\/p>\n<h2>\u7279\u70b9<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Remote Dictionary Server\u306e\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\">OSS(BSD\u30e9\u30a4\u30bb\u30f3\u30b9)<\/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\">KVS<\/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\">\u8c4a\u5bcc\u306a\u30c7\u30fc\u30bf\u578b<\/ul>\n<\/li>\n<\/ul>\n<p>String\/List\/Set\/Sorted Set\/Hash<\/p>\n<p>\u9ad8\u901f<\/p>\n<p>\u30a4\u30f3\u30e1\u30e2\u30eaDB\u3060\u304b\u3089<\/p>\n<p>\u6c38\u7d9a\u5316\u8a2d\u5b9a\u53ef\u80fd<br \/>\n\u30b7\u30f3\u30b0\u30eb\u30b9\u30ec\u30c3\u30c9<\/p>\n<p>\u81ea\u52d5\u7684\u306b\u6392\u4ed6\u7684\u3068\u306a\u308b<\/p>\n<p>Redis3.0\u4ee5\u964d\u306a\u3089\u30b9\u30b1\u30fc\u30eb\u30a2\u30a6\u30c8\u53ef\u80fd(2018\/11\u6642\u70b9\u3067\u306fRedis5.0.0\u304c\u6700\u65b0)<\/p>\n<h2>\u4e30\u5bcc\u7684\u6570\u636e\u7c7b\u578b<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">String<\/ul>\n<\/li>\n<\/ul>\n<p>key(\u3044\u308f\u3086\u308bkey)\/value(\u3044\u308f\u3086\u308bvalue)<br \/>\nkey-value\u306e\u30bb\u30c3\u30c8\u3092\u8907\u6570\u6301\u3064\u30a4\u30e1\u30fc\u30b8<\/p>\n<p>List<\/p>\n<p>key(list\u540d)\/value(list\u306b\u683c\u7d0d\u3059\u308b\u5024)<br \/>\nlist\u306e\u5148\u982d\u304b\u672b\u5c3e\u306bvalue\u3092\u8ffd\u52a0\u3059\u308b<br \/>\nlist\u81ea\u4f53\u3092\u8907\u6570\u6301\u3064\u30a4\u30e1\u30fc\u30b8<\/p>\n<p>Set<\/p>\n<p>key(set\u540d)\/value(set\u306b\u683c\u7d0d\u3059\u308b\u5024)<br \/>\nset\u306a\u306e\u3067\u91cd\u8907\u3092\u8a31\u3055\u306a\u3044<br \/>\n\u9806\u4e0d\u540c<br \/>\nset\u81ea\u4f53\u3092\u8907\u6570\u6301\u3064\u30a4\u30e1\u30fc\u30b8<\/p>\n<p>Sorted Set(ZSet)<\/p>\n<p>key(set\u540d)\/value(set\u306b\u683c\u7d0d\u3059\u308b\u5024)<br \/>\nset\u306a\u306e\u3067\u91cd\u8907\u3092\u8a31\u3055\u306a\u3044<br \/>\n\u9806\u756a\u306fscore\u3067\u4fdd\u6301\u3059\u308b(set\u3078\u306e\u4fdd\u5b58\u6642\u306bscroe\u3092\u6307\u5b9a\u3059\u308b)<br \/>\nsorted set\u81ea\u4f53\u3092\u8907\u6570\u6301\u3064\u30a4\u30e1\u30fc\u30b8<\/p>\n<p>Hash<\/p>\n<p>key(hash\u540d)\/value(field\u3068value\u3092\u6301\u3064hash)<br \/>\nhash\uff08map, dict\uff09\u306e\u5165\u308c\u5b50\u69cb\u9020\u306b\u306a\u308b<br \/>\n\u9806\u4e0d\u540c<br \/>\nhash\u81ea\u4f53\u3092\u8907\u6570\u6301\u3064\u30a4\u30e1\u30fc\u30b8<\/p>\n<p>\u8fd9\u7bc7\u6587\u7ae0\u5c31\u50cf\u56fe\u4e2d\u7684\u8fd9\u90e8\u5206\u4e00\u6837\u5bb9\u6613\u7406\u89e3\u3002<\/p>\n<h2>\u590d\u5236\u63d0\u4f9b\u7684\u7269\u54c1<\/h2>\n<p>\u901a\u8fc7\u5c06\u4e3b\u8282\u70b9\u7684\u6570\u636e\u590d\u5236\u5230\u4ece\u8282\u70b9\u4e0a\u6765\u5b9e\u73b0\u8bfb\u53d6\u5904\u7406\u7684\u8d1f\u8f7d\u5747\u8861\u548c\u5bb9\u9519\u6027\u589e\u5f3a\u7684\u65b9\u6cd5\u3002\u4e3b\u8282\u70b9\u53ef\u4ee5\u8fdb\u884c\u8bfb\u5199\u64cd\u4f5c\uff0c\u800c\u4ece\u8282\u70b9\u4ec5\u80fd\u8fdb\u884c\u8bfb\u53d6\u64cd\u4f5c\u3002\u4e3b\u8282\u70b9\u53ef\u4ee5\u6709\u591a\u4e2a\u4ece\u8282\u70b9\u3002\u590d\u5236\u662f\u5f02\u6b65\u8fdb\u884c\u7684\u3002\u8bbe\u7f6e\u65b9\u6cd5\u53ef\u4ee5\u53c2\u8003\u672c\u6587\u3002\u5728\u540e\u9762\u63d0\u5230\u7684AWS ElastiCache\u670d\u52a1\u4e2d\uff0c\u5c06\u4e3b\u8282\u70b9\u79f0\u4e3a&#8221;Primary Node&#8221;\uff0c\u5c06\u4ece\u8282\u70b9\u79f0\u4e3a&#8221;Read Replica&#8221;\u3002<\/p>\n<h2>\u6570\u636e\u6301\u4e45\u5316\uff08\u5907\u4efd\uff09<\/h2>\n<p>AWS\u7684ElastiCache\u63d0\u4f9b\u4e86\u4e24\u79cd\u65b9\u5f0f\uff0c\u5373RDB\u548cAOF\u3002<br \/>\n\u5728\u540e\u9762\u63d0\u5230\u7684AOF\u65b9\u5f0f\u53ef\u4ee5\u4f7f\u7528\uff0c\u4f46\u901a\u5e38\u66f4\u63a8\u8350\u4f7f\u7528\u65e0\u9700\u5907\u4efd\u529f\u80fd\u7684Multi-AZ\u590d\u5236\u914d\u7f6e\u3002<\/p>\n<h3>\u5173\u7cfb\u6570\u636e\u5e93\uff08\u5feb\u7167\uff09<\/h3>\n<p>\u9ed8\u8ba4\u542f\u7528\u7684\u65b9\u5f0f\u3002<br \/>\n\u5b9a\u671f\u5c06\u6570\u636e\u5e93\u7684\u5185\u5bb9\u4fdd\u5b58\u5230\u786c\u76d8\u4e0a\uff08\u4fdd\u5b58\u4e3a\u4e00\u4e2a\u540d\u4e3adump.rdb\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\uff09\u3002<br \/>\n\u5728\u91cd\u65b0\u542f\u52a8\u65f6\uff0c\u6570\u636e\u5c06\u4ecedump.rdb\u4e2d\u6062\u590d\u3002<br \/>\n\u5728\u6545\u969c\u65f6\uff0c\u4ece\u4e0a\u6b21\u5907\u4efd\u5f00\u59cb\u7684\u589e\u91cf\u6570\u636e\u5c06\u4f1a\u4e22\u5931\u3002<\/p>\n<pre class=\"post-pre\"><code>#   save \"\" # RDB\u306b\u4fdd\u5b58\u3057\u306a\u3044\r\nsave 900 1 # 900\u79d2\u4ee5\u5185\u306b1\u56de\u4ee5\u4e0a\u306e\u66f4\u65b0\u304c\u3042\u3063\u305f\u3089RDB\u306b\u4fdd\u5b58\u3059\u308b\r\nsave 300 10 # 300\u79d2\u4ee5\u5185\u306b10\u56de\u4ee5\u4e0a\u306e\u66f4\u65b0\u304c\u3042\u3063\u305f\u3089RDB\u306b\u4fdd\u5b58\u3059\u308b\r\nsave 60 10000 # 60\u79d2\u4ee5\u5185\u306b10000\u56de\u4ee5\u4e0a\u306e\u66f4\u65b0\u304c\u3042\u3063\u305f\u3089RDB\u306b\u4fdd\u5b58\u3059\u308b\r\n<\/code><\/pre>\n<h3>\u8ffd\u52a0API(AOF)<\/h3>\n<p>\u6bcf\u6b21\u66f4\u65b0\u5904\u7406\u90fd\u4f1a\u6301\u7eed\u4fdd\u5b58\u5904\u7406\u5185\u5bb9\u3002<br \/>\n\u8fd9\u6837\u53ef\u4ee5\u51cf\u5c11\u6570\u636e\u4e22\u5931\u7684\u62c5\u5fe7\uff0c\u4f46\u662f\u4f1a\u964d\u4f4e\u66f4\u65b0\u5904\u7406\u7684\u6027\u80fd\u3002<\/p>\n<pre class=\"post-pre\"><code>appendonly yes\r\n(\u7701\u7565)\r\n# appendfsync always # AOF\u3078\u5e38\u306b\u540c\u671f\u7684\u306b\u66f8\u304d\u8fbc\u3080\r\nappendfsync everysec # AOF\u30781\u79d2\u6bce\u306b\u540c\u671f\u7684\u306b\u66f8\u304d\u8fbc\u3080\r\n# appendfsync no\r\n(\u7701\u7565)\r\n<\/code><\/pre>\n<h2>Redis\u7684\u4f7f\u7528\u9886\u57df<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u6709\u52b9\u671f\u9650\u306e\u3042\u308b\u30c7\u30fc\u30bf\u3092\u6271\u3046\u5834\u5408<\/ul>\n<\/li>\n<\/ul>\n<p>\u30bb\u30c3\u30b7\u30e7\u30f3\u3001\u30ef\u30f3\u30bf\u30a4\u30e0\u30c8\u30fc\u30af\u30f3\u306a\u3069<br \/>\n\u30c7\u30fc\u30bf\u4fdd\u5b58\u6642\u306bexpire\u6307\u5b9a\u3067\u304d\u308b<\/p>\n<p>\u30e9\u30f3\u30ad\u30f3\u30b0\u30c7\u30fc\u30bf\u3092\u6271\u3046\u5834\u5408<\/p>\n<p>Sorted Set(\u30e6\u30fc\u30b6ID\/\u30b9\u30b3\u30a2\u306a\u3069)\u3092\u5229\u7528\u3059\u308b<br \/>\nRDB\u306eorder by\u3088\u308a\u901f\u3044<\/p>\n<p>IoT\u30c7\u30fc\u30bf\u306e\u4e00\u6642\u4fdd\u5b58\u5148\u3068\u3057\u3066\u4f7f\u3046\u5834\u5408<br \/>\nPub\/Sub\u3092\u4f7f\u3046\u5834\u5408<\/p>\n<h2>Redis\u548cmemcached\u7684\u9009\u62e9\u548c\u4f7f\u7528<\/h2>\n<p>\u5982\u679c\u521d\u5b66\u8005\u8ba4\u4e3aRedis\u66f4\u5177\u591a\u529f\u80fd\u6027\uff0c\u90a3\u4e48\u9009\u62e9Redis\u4f3c\u4e4e\u662f\u4e0d\u9519\u7684\u3002<\/p>\n<h3>\u5e94\u8be5\u9009\u62e9\u4f7f\u7528Redis\u7684\u60c5\u51b5<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u8907\u96d1\u306a\u30c7\u30fc\u30bf\u578b\u304c\u5fc5\u8981\u306a\u5834\u5408<\/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\">\u6c38\u7d9a\u5316\u304c\u5fc5\u8981\u306a\u5834\u5408<\/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\">\u30d5\u30a7\u30a4\u30eb\u30aa\u30fc\u30d0\u30fc\u304c\u5fc5\u8981\u306a\u5834\u5408<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">pub\/sub\u304c\u5fc5\u8981\u306a\u5834\u5408<\/ul>\n<h3>\u5e94\u8be5\u9009\u62e9memcached\u7684\u60c5\u51b5<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30b7\u30f3\u30d7\u30eb\u306a\u30c7\u30fc\u30bf\u578b\u3060\u3051\u3067\u5145\u5206\u306a\u5834\u5408<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u304c\u5fc5\u8981\u306a\u5834\u5408<\/ul>\n<h2>\u5c1d\u8bd5\u5728\u672c\u5730\u4f7f\u7528Redis<\/h2>\n<h3>\u5b89\u88c5\uff08\u5982\u679c\u662fMacOS\uff09<\/h3>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> brew <span class=\"nb\">install <\/span>Redis\r\n<\/code><\/pre>\n<h3>\u542f\u52a8<\/h3>\n<h4>\u542f\u52a8\u670d\u52a1\u5668<\/h4>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> redis-server\r\n<\/code><\/pre>\n<h4>\u542f\u52a8\u5ba2\u6237\u7aef<\/h4>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> redis-cli\r\n<\/code><\/pre>\n<h3>\u547d\u4ee4\u884c\u754c\u9762 (\u547d\u4ee4\u884c\u754c\u9762)<\/h3>\n<p>\u5728\u542f\u52a8\u7684\u5ba2\u6237\u7aef\u4e0a\u8fdb\u884cCLI\u64cd\u4f5c\u3002<br \/>\n\u8fd9\u91cc\u4ec5\u63d0\u4f9b\u57fa\u672c\u64cd\u4f5c\u65b9\u6cd5\u3002<br \/>\n\u66f4\u8be6\u7ec6\u7684\u64cd\u4f5c\u65b9\u6cd5\u53ef\u4ee5\u53c2\u8003\u8fd9\u7bc7\u6587\u7ae0\u3002<br \/>\n\u6bcf\u4e2a\u6267\u884c\u793a\u4f8b\u4e2d\u7684flushall\u547d\u4ee4\u7528\u4e8e\u5220\u9664\u6570\u636e\u5e93\u4e2d\u7684\u6240\u6709\u952e\u3002<\/p>\n<h4>String \u7c7b\u578b<\/h4>\n<p>\u4f7f\u7528set\u65b9\u6cd5\u5c06value\u6ce8\u518c\u3002<br \/>\n\u4f7f\u7528get\u65b9\u6cd5\u83b7\u53d6value\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">127.0.0.1:6379&gt;<\/span> <span class=\"nb\">set <\/span>str1 hello\r\n<span class=\"go\">OK\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> get str1\r\n<span class=\"go\">\"hello\"\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> flushall\r\n<span class=\"go\">OK\r\n<\/span><\/code><\/pre>\n<p>\u4f7f\u7528setex\u8fdb\u884c\u5e26\u6709\u8fc7\u671f\u65f6\u95f4\u7684\u6ce8\u518c\u3002<br \/>\n\u4f7f\u7528ttl\u6765\u786e\u8ba4\u8fc7\u671f\u65f6\u95f4\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">127.0.0.1:6379&gt;<\/span> setex str1 10 world\r\n<span class=\"go\">OK\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> ttl str1\r\n<span class=\"go\">(integer) 7\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> ttl str1\r\n<span class=\"go\">(integer) -2\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> get str1\r\n<span class=\"go\">(nil)\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> flushall\r\n<span class=\"go\">OK\r\n<\/span><\/code><\/pre>\n<p>\u4f7f\u7528mset\u4e00\u6b21\u6027\u8fdb\u884c\u591a\u4e2a\u6ce8\u518c\u3002<br \/>\n\u4f7f\u7528mget\u4e00\u6b21\u6027\u8fdb\u884c\u591a\u4e2a\u83b7\u53d6\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">127.0.0.1:6379&gt;<\/span> mset str1 hello str2 world\r\n<span class=\"go\">OK\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> mget str1 str2\r\n<span class=\"go\">1) \"hello\"\r\n2) \"world\"\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> flushall\r\n<span class=\"go\">OK\r\n<\/span><\/code><\/pre>\n<p>\u4f7f\u7528incr\u51fd\u6570\u589e\u52a0\u6570\u5b57\u3002<br \/>\n\u4f7f\u7528decr\u51fd\u6570\u51cf\u5c11\u6570\u5b57\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">127.0.0.1:6379&gt;<\/span> <span class=\"nb\">set <\/span>str1 0\r\n<span class=\"go\">OK\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> incr str1\r\n<span class=\"go\">(integer) 1\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> get str1\r\n<span class=\"go\">\"1\"\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> decr str1\r\n<span class=\"go\">(integer) 0\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> get str1\r\n<span class=\"go\">\"0\"\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> flushall\r\n<span class=\"go\">OK\r\n<\/span><\/code><\/pre>\n<h4>\u5217\u8868\u7c7b\u578b<\/h4>\n<p>\u7528 lpush \u5728\u5217\u8868\u5934\u90e8\u6ce8\u518c\u4e00\u4e2a value\u3002<br \/>\n\u7528 lrange \u6307\u5b9a\u5934\u90e8\u5143\u7d20\u548c\u5c3e\u90e8\u5143\u7d20\u8fdb\u884c\u83b7\u53d6\u3002\u5f53\u6307\u5b9a\u4e3a 0 \u548c -1 \u65f6\u83b7\u53d6\u5168\u90e8\u3002<br \/>\n\u7528 lpop \u83b7\u53d6\u5217\u8868\u7684\u5934\u90e8\u503c\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">127.0.0.1:6379&gt;<\/span> lpush list1 abc\r\n<span class=\"go\">(integer) 1\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> lpush list1 def\r\n<span class=\"go\">(integer) 2\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> lrange list1 0 <span class=\"nt\">-1<\/span>\r\n<span class=\"go\">1) \"def\"\r\n2) \"abc\"\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> lpop list1\r\n<span class=\"go\">\"def\"\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> lrange list1 0 <span class=\"nt\">-1<\/span>\r\n<span class=\"go\">1) \"abc\"\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> flushall\r\n<span class=\"go\">OK\r\n<\/span><\/code><\/pre>\n<p>\u4f7f\u7528rpush\u547d\u4ee4\u5c06value\u6dfb\u52a0\u5230\u5217\u8868\u7684\u672b\u5c3e\u3002<br \/>\n\u4f7f\u7528rpop\u547d\u4ee4\u83b7\u53d6\u5217\u8868\u4e2d\u7684\u672b\u5c3e\u503c\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">127.0.0.1:6379&gt;<\/span> rpush list2 abc\r\n<span class=\"go\">(integer) 1\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> rpush list2 def\r\n<span class=\"go\">(integer) 2\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> lrange list2 0 <span class=\"nt\">-1<\/span>\r\n<span class=\"go\">1) \"abc\"\r\n2) \"def\"\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> rpop list2\r\n<span class=\"go\">\"def\"\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> lrange list2 0 <span class=\"nt\">-1<\/span>\r\n<span class=\"go\">1) \"abc\"\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> flushall\r\n<span class=\"go\">OK\r\n<\/span><\/code><\/pre>\n<p>\u4f7f\u7528LREM\u8fdb\u884c\u5220\u9664\u3002\u53ef\u4ee5\u6307\u5b9a\u8981\u5220\u9664\u7684\u6570\u91cf\u3002\u5982\u679c\u6570\u91cf\u4e3a0\uff0c\u5219\u5220\u9664\u5168\u90e8\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">127.0.0.1:6379&gt;<\/span> lrange list1 0 <span class=\"nt\">-1<\/span>\r\n<span class=\"go\">1) \"abc\"\r\n2) \"def\"\r\n3) \"abc\"\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> lrem list1 0 abc\r\n<span class=\"go\">(integer) 2\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> lrange list1 0 <span class=\"nt\">-1<\/span>\r\n<span class=\"go\">1) \"def\"\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> flushall\r\n<span class=\"go\">OK\r\n<\/span><\/code><\/pre>\n<h4>\u96c6\u5408\u7c7b\u578b<\/h4>\n<p>\u4f7f\u7528SADD\u8fdb\u884c\u6ce8\u518c\u3002<br \/>\n\u4f7f\u7528SMEMBERS\u83b7\u53d6\u6240\u6709\u503c\u3002<br \/>\n\u4f7f\u7528SREM\u5220\u9664\u503c\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">127.0.0.1:6379&gt;<\/span> sadd set1 abc\r\n<span class=\"go\">(integer) 1\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> sadd set1 def\r\n<span class=\"go\">(integer) 1\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> smembers set1\r\n<span class=\"go\">1) \"def\"\r\n2) \"abc\"\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> srem set1 abc\r\n<span class=\"go\">(integer) 1\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> smembers set1\r\n<span class=\"go\">1) \"def\"\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> flushall\r\n<span class=\"go\">OK\r\n<\/span><\/code><\/pre>\n<p>\u7531\u4e8e\u662f\u96c6\u5408\uff0c\u56e0\u6b64\u65e0\u6cd5\u6ce8\u518c\u76f8\u540c\u7684\u503c\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">127.0.0.1:6379&gt;<\/span> sadd set1 abc\r\n<span class=\"go\">(integer) 1\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> sadd set1 abc\r\n<span class=\"go\">(integer) 0\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> flushall\r\n<span class=\"go\">OK\r\n<\/span><\/code><\/pre>\n<h4>\u6392\u5e8f\u96c6\u5408\u7c7b\u578b<\/h4>\n<p>\u4f7f\u7528zadd\u547d\u4ee4\u5c06score\u548c\u952e\u503c\u5bf9\u4e00\u8d77\u6ce8\u518c\u3002score\u7684\u503c\u53ef\u4ee5\u662f\u8d1f\u6570\u3002<br \/>\n\u4f7f\u7528zrange\u547d\u4ee4\u6307\u5b9a\u9996\u5c3e\u5143\u7d20\u5e76\u83b7\u53d6\u3002\u5982\u679c\u6307\u5b9a\u4e3a0\u548c-1\uff0c\u5219\u83b7\u53d6\u5168\u90e8\u5143\u7d20\u3002<br \/>\n\u4f7f\u7528zrem\u547d\u4ee4\u8fdb\u884c\u5220\u9664\u64cd\u4f5c\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">127.0.0.1:6379&gt;<\/span> zadd zset1 5 abc\r\n<span class=\"go\">(integer) 1\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> zadd zset1 <span class=\"nt\">-10<\/span> def\r\n<span class=\"go\">(integer) 1\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> zrange zset1 0 <span class=\"nt\">-1<\/span> withscores\r\n<span class=\"go\">1) \"def\"\r\n2) \"-10\"\r\n3) \"abc\"\r\n4) \"5\"\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> zrem zset1 abc\r\n<span class=\"go\">(integer) 1\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> zrange zset1 0 <span class=\"nt\">-1<\/span> withscores\r\n<span class=\"go\">1) \"def\"\r\n2) \"-10\"\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> flushall\r\n<span class=\"go\">OK\r\n<\/span><\/code><\/pre>\n<h4>\u54c8\u5e0c\u7c7b\u578b<\/h4>\n<p>\u4f7f\u7528hset\u8fdb\u884c\u6ce8\u518c\u3002<br \/>\n\u4f7f\u7528hget\u83b7\u53d6\u503c\u3002<br \/>\n\u4f7f\u7528hgetall\u83b7\u53d6\u6240\u6709\u54c8\u5e0c\u3002<br \/>\n\u4f7f\u7528hdel\u5220\u9664\u54c8\u5e0c\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">127.0.0.1:6379&gt;<\/span> hset hash1 field1 abc\r\n<span class=\"go\">(integer) 1\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> hget hash1 field1\r\n<span class=\"go\">\"abc\"\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> hset hash1 field2 def\r\n<span class=\"go\">(integer) 1\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> hgetall hash1\r\n<span class=\"go\">1) \"field1\"\r\n2) \"abc\"\r\n3) \"field2\"\r\n4) \"def\"\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> hdel hash1 field1\r\n<span class=\"go\">(integer) 1\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> hget hash1 field1\r\n<span class=\"go\">(nil)\r\n<\/span><span class=\"gp\">127.0.0.1:6379&gt;<\/span> flushall\r\n<span class=\"go\">OK\r\n<\/span><\/code><\/pre>\n<h2>Python(redis-py)\u7684\u610f\u601d\u662f\u4f7f\u7528Python\u8bed\u8a00\u548credis-py\u5e93\u3002<\/h2>\n<p>\u5982\u679c\u662f\u4e00\u79cd\u77e5\u540d\u7684\u8bed\u8a00\uff0c\u901a\u5e38\u4f1a\u6709\u76f8\u5e94\u7684\u5e93\u53ef\u4f9b\u4f7f\u7528\uff0c\u4f46\u5728\u8fd9\u91cc\u4ee5Python\u4e3a\u4f8b\u8fdb\u884c\u603b\u7ed3\u3002<\/p>\n<h3>\u5b89\u88c5<\/h3>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> <span class=\"nb\">sudo <\/span>pip <span class=\"nb\">install <\/span>redis\r\n<\/code><\/pre>\n<h3>\u8fde\u7ed3<\/h3>\n<p>\u6709\u4e24\u79cd\u8fde\u63a5\u6c60\u7684\u4f7f\u7528\u65b9\u5f0f\uff1a\u4f7f\u7528\u8fde\u63a5\u6c60\u7684\u65b9\u6cd5\u548c\u4e0d\u4f7f\u7528\u8fde\u63a5\u6c60\u7684\u65b9\u6cd5\u3002<br \/>\n\u4f3c\u4e4e\u4f7f\u7528\u8fde\u63a5\u6c60\u66f4\u5feb\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"kn\">import<\/span> <span class=\"nn\">redis<\/span>\r\n<span class=\"n\">pool<\/span> <span class=\"o\">=<\/span> <span class=\"n\">redis<\/span><span class=\"p\">.<\/span><span class=\"n\">ConnectionPool<\/span><span class=\"p\">(<\/span><span class=\"n\">host<\/span><span class=\"o\">=<\/span><span class=\"s\">'localhost'<\/span><span class=\"p\">,<\/span> <span class=\"n\">port<\/span><span class=\"o\">=<\/span><span class=\"mi\">6379<\/span><span class=\"p\">,<\/span> <span class=\"n\">db<\/span><span class=\"o\">=<\/span><span class=\"mi\">0<\/span><span class=\"p\">)<\/span>\r\n<span class=\"n\">r<\/span> <span class=\"o\">=<\/span> <span class=\"n\">redis<\/span><span class=\"p\">.<\/span><span class=\"n\">StrictRedis<\/span><span class=\"p\">(<\/span><span class=\"n\">connection_pool<\/span><span class=\"o\">=<\/span><span class=\"n\">pool<\/span><span class=\"p\">)<\/span>\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code><span class=\"kn\">import<\/span> <span class=\"nn\">redis<\/span>\r\n<span class=\"n\">r<\/span> <span class=\"o\">=<\/span> <span class=\"n\">redis<\/span><span class=\"p\">.<\/span><span class=\"n\">StrictRedis<\/span><span class=\"p\">(<\/span><span class=\"n\">host<\/span><span class=\"o\">=<\/span><span class=\"s\">'localhost'<\/span><span class=\"p\">,<\/span> <span class=\"n\">port<\/span><span class=\"o\">=<\/span><span class=\"mi\">6379<\/span><span class=\"p\">,<\/span> <span class=\"n\">db<\/span><span class=\"o\">=<\/span><span class=\"mi\">0<\/span><span class=\"p\">)<\/span>\r\n<\/code><\/pre>\n<h3>\u64cd\u4f5c &#8211; (noun\/verb)<\/h3>\n<p>\u5728\u8fd9\u91cc\u53ea\u5217\u4e3e\u4e86String\u7c7b\u578b\u7684\u7b80\u5355\u4f8b\u5b50\u3002<br \/>\n\u5982\u679c\u60f3\u4e86\u89e3\u5176\u4ed6\u7c7b\u578b\u6216\u66f4\u8be6\u7ec6\u7684\u4f7f\u7528\u65b9\u6cd5\uff0c\u53ef\u4ee5\u53c2\u8003\u8fd9\u7bc7\u6587\u7ae0\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"n\">r<\/span><span class=\"p\">.<\/span><span class=\"nb\">set<\/span><span class=\"p\">(<\/span><span class=\"s\">\"key1\"<\/span><span class=\"p\">,<\/span> <span class=\"s\">\"hello\"<\/span><span class=\"p\">)<\/span>\r\n<span class=\"k\">print<\/span><span class=\"p\">(<\/span><span class=\"n\">r<\/span><span class=\"p\">.<\/span><span class=\"n\">get<\/span><span class=\"p\">(<\/span><span class=\"s\">\"key1\"<\/span><span class=\"p\">))<\/span>\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>b'hello'\r\n<\/code><\/pre>\n<h2>\u53d1\u5e03\/\u8ba2\u9605<\/h2>\n<h3>\u7b80\u8ff0<\/h3>\n<p>\u53d1\u5e03\u548c\u8ba2\u9605\u7684\u7f29\u5199\u3002<br \/>\n\u5f53\u4e00\u4e2a\u5ba2\u6237\u7aef\u53d1\u5e03\uff08\u5411\u9891\u9053\u53d1\u9001\u6d88\u606f\uff09\u65f6\uff0c\u8ba2\u9605\u8be5\u9891\u9053\u7684\u5ba2\u6237\u7aef\u53ef\u4ee5\u63a5\u6536\u8be5\u6d88\u606f\u7684\u529f\u80fd\u3002<br \/>\n\u9664\u4e86\u4f5c\u4e3a\u952e\u503c\u5b58\u50a8\u5916\uff0cRedis\u8fd8\u5177\u6709\u53d1\u5e03\u8ba2\u9605\u529f\u80fd\u3002<\/p>\n<h3>\u4f7f\u7528\u65b9\u6cd5<\/h3>\n<p>\u5f00\u542f\u670d\u52a1\u5668\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> redis-server\r\n<\/code><\/pre>\n<p>\u542f\u52a8\u5ba2\u6237\u7aefA\u5e76\u8ba2\u9605\u9891\u9053\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> redis-cli\r\n<span class=\"gp\">127.0.0.1:6379&gt;<\/span> SUBSCRIBE sample_channel\r\n<span class=\"go\">Reading messages... (press Ctrl-C to quit)\r\n1) \"subscribe\"\r\n2) \"sample_channel\"\r\n3) (integer) 1\r\n<\/span><\/code><\/pre>\n<p>\u542f\u52a8\u5ba2\u6237\u7aefB\u5e76\u5c06\u5176\u53d1\u5e03\u5230\u9891\u9053\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> redis-cli\r\n<span class=\"gp\">127.0.0.1:6379&gt;<\/span> PUBLISH sample_channel <span class=\"s2\">\"Hello! World!\"<\/span>\r\n<span class=\"go\">(integer) 1\r\n<\/span><\/code><\/pre>\n<p>\u5ba2\u6237A\u80fd\u591f\u5728\u5ba2\u6237B\u53d1\u5e03\u7684\u6d88\u606f\u4e2d\u786e\u8ba4\u5230\uff08\u2605\u6807\u8bb0\uff09\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> redis-cli\r\n<span class=\"gp\">127.0.0.1:6379&gt;<\/span> SUBSCRIBE sample_channel\r\n<span class=\"go\">Reading messages... (press Ctrl-C to quit)\r\n1) \"subscribe\"\r\n2) \"sample_channel\"\r\n3) (integer) 1\r\n1) \"message\" \u2605\r\n2) \"sample_channel\" \u2605\r\n3) \"Hello! World!\" \u2605\r\n<\/span><\/code><\/pre>\n<h1>\u5f39\u6027\u7f13\u5b58<\/h1>\n<p>ElastiCache\u662fAWS\u63d0\u4f9b\u7684\u5173\u4e8e\u5185\u5b58\u7f13\u5b58\u7684\u6258\u7ba1\u670d\u52a1\u3002<br \/>\n\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528Redis\u548cmemcached\u4f5c\u4e3a\u7f13\u5b58\u5f15\u64ce\u3002<br \/>\n\u5b58\u5728\u8282\u70b9\u3001\u5206\u7247\u548c\u96c6\u7fa4\u7684\u5355\u4f4d\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b6913a08637a6e3be8\/103-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2018-11-17 12.52.08.png\" \/><\/div>\n<h2>\u8282\u70b9 (Node)<\/h2>\n<p>\u7f13\u5b58\u670d\u52a1\u5668\u3002<br \/>\nElastiCache\u7684\u6700\u5c0f\u5355\u4f4d\u3002<br \/>\n\u6839\u636e\u9009\u62e9\u7684\u8282\u70b9\u7c7b\u578b\uff0c\u6027\u80fd\uff08\u5185\u5b58\u548cCPU\u7b49\uff09\u4f1a\u6709\u6240\u4e0d\u540c\u3002<\/p>\n<h2>\u788e\u7247 (Shard)<\/h2>\n<p>\u62e5\u6709\u4e00\u4e2a\u4e3b\u8282\u70b9\uff08\u53ef\u8bfb\u5199\uff09\u548c0\u52305\u4e2a\u526f\u672c\u8282\u70b9\uff08\u53ea\u8bfb\uff09\u7684\u8282\u70b9\u7ec4\u3002<\/p>\n<h2>\u805a\u7c7b (j\u00f9<\/h2>\n<p>\u6574\u7406\u788e\u7247\u7684\u7fa4\u7ec4\u3002<br \/>\n\u53ef\u4ee5\u4e3a\u6bcf\u4e2a\u96c6\u7fa4\u9009\u62e9\u7f13\u5b58\u5f15\u64ce\u3002<br \/>\n\u53ef\u4ee5\u9009\u62e9\u542f\u7528\u6216\u7981\u7528\u96c6\u7fa4\u6a21\u5f0f\u3002<\/p>\n<h3>\u7981\u7528\u96c6\u7fa4\u6a21\u5f0f<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b6913a08637a6e3be8\/111-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2018-11-12 8.06.52.png\" \/><\/div>\n<p>\u8fd9\u4e2a\u56fe\u793a\u662f\u4e00\u4e2a\u6709\u6548\u7684\u590d\u5236\u54c1\u3002<\/p>\n<ul class=\"post-ul\">\u30af\u30e9\u30b9\u30bf1\u3064\u306b\u30b7\u30e3\u30fc\u30c91\u500b\u3092\u6301\u3064<\/ul>\n<h3>\u542f\u7528\u96c6\u7fa4\u6a21\u5f0f<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b6913a08637a6e3be8\/115-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2018-11-12 8.07.06.png\" \/><\/div>\n<p>\u8fd9\u5e45\u56fe\u662f\u4e00\u4e2a\u5177\u6709\u6709\u6548\u590d\u5236\u6548\u679c\u7684\u793a\u610f\u56fe\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30af\u30e9\u30b9\u30bf1\u3064\u306b\u30b7\u30e3\u30fc\u30c91\u301c15\u500b\u3092\u6301\u3064<\/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\">\u30b9\u30b1\u30fc\u30eb\u30a2\u30a6\u30c8\/\u30b9\u30b1\u30fc\u30eb\u30a4\u30f3\u53ef\u80fd<\/ul>\n<\/li>\n<\/ul>\n<p>\u30b7\u30e3\u30fc\u30c9\u6570\u306e\u5897\u6e1b\u306b\u3088\u308a\u5909\u66f4<\/p>\n<h2>\u6269\u5927\u89c4\u6a21\/\u7f29\u5c0f\u89c4\u6a21<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30b9\u30b1\u30fc\u30eb\u30a2\u30c3\u30d7\u53ef\u80fd<\/ul>\n<\/li>\n<\/ul>\n<p>\u30ce\u30fc\u30c9\u30bf\u30a4\u30d7\u3092API\u3092\u5229\u7528\u3057\u3066\u5909\u66f4<\/p>\n<p>\u30b9\u30b1\u30fc\u30eb\u30c0\u30a6\u30f3\u4e0d\u53ef<\/p>\n<h2>\u591a\u53ef\u7528\u533a (Du\u014d q\u016b)<\/h2>\n<p>\u53ea\u8981\u662f\u9664\u4e86t2\u4e4b\u5916\u7684\u8282\u70b9\u7c7b\u578b\uff0c\u53ef\u4ee5\u9009\u62e9Multi-AZ\u90e8\u7f72\u3002\u8282\u70b9\u53ef\u4ee5\u914d\u7f6e\u5230Multi-AZ\u4e2d\u3002<br \/>\n\u4ee5\u524d\uff0cmemcached\u4e0d\u652f\u6301Multi-AZ\u90e8\u7f72\uff0c\u4f46\u6700\u8fd1\u4e5f\u5df2\u7ecf\u652f\u6301\u4e86\uff0c\u56e0\u6b64Redis\u5728\u8fd9\u65b9\u9762\u7684\u4f18\u52bf\u5df2\u7ecf\u4e27\u5931\u4e86\u3002<\/p>\n<h2>\u5f53\u53d1\u751f\u969c\u788d\u65f6\u3002<\/h2>\n<p>\u5f53\u53d1\u751f\u969c\u788d\u65f6\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u8fdb\u884c\u6545\u969c\u5207\u6362\uff0c\u5c06\u6545\u969c\u8282\u70b9\u5207\u6362\u5230\u65b0\u8282\u70b9\u4e0a\u3002<\/p>\n<h3>\u5982\u679c\u4e3b\u8282\u70b9\u6545\u969c<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30ea\u30fc\u30c9\u30ec\u30d7\u30ea\u30ab\u306e1\u3064(\u8907\u6570\u3042\u308b\u5834\u5408\u306f\u6700\u3082\u6700\u65b0\u306e\u30c7\u30fc\u30bf\u304c\u8a18\u9332\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u304c\u81ea\u52d5\u9078\u629e\u3055\u308c\u308b)\u304c\u30d7\u30e9\u30a4\u30de\u30ea\u30ce\u30fc\u30c9\u306b\u6607\u683c\u3059\u308b<\/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\">\u30d5\u30a7\u30a4\u30eb\u30aa\u30fc\u30d0\u30fc\u4e2d\u306f\u30d7\u30e9\u30a4\u30de\u30ea\u30ce\u30fc\u30c9\u3078\u306e\u66f8\u304d\u8fbc\u307f\u306f\u4e0d\u53ef<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u6607\u683c\u3057\u3066\u6e1b\u3063\u305f\u5206\u306e\u30ea\u30fc\u30c9\u30ec\u30d7\u30ea\u30ab\u306f\u65b0\u3057\u304f\u88dc\u586b\u3055\u308c\u308b<\/ul>\n<h3>\u5982\u679c\u9886\u5bfc\u590d\u5236\u54c1\u51fa\u73b0\u6545\u969c\u7684\u60c5\u51b5\u4e0b<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u65b0\u3057\u3044\u30ea\u30fc\u30c9\u30ec\u30d7\u30ea\u30ab\u30ce\u30fc\u30c9\u3092\u81ea\u52d5\u751f\u6210\u3057\u3001\u6545\u969c\u3057\u305f\u30ce\u30fc\u30c9\u304b\u3089\u5207\u308a\u66ff\u3048\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30d5\u30a7\u30a4\u30eb\u30aa\u30fc\u30d0\u30fc\u4e2d\u306e\u8aad\u307f\u8fbc\u307f\u51e6\u7406\u306f\u4ed6\u306e\u30ce\u30fc\u30c9\u306b\u8ca0\u8377\u304c\u96c6\u4e2d\u3059\u308b<\/ul>\n<h3>\u5982\u679c\u6574\u4e2a\u96c6\u7fa4\u53d1\u751f\u6545\u969c<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30b7\u30e3\u30fc\u30c9\u3082\u30ce\u30fc\u30c9\u3082\u81ea\u52d5\u3067\u518d\u4f5c\u6210<\/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\">\u6c38\u7d9a\u5316\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u30c7\u30fc\u30bf\u306f\u5931\u308f\u308c\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>\u6c38\u7d9a\u5316\u306f\u975e\u63a8\u5968\u306a\u306e\u3067\u3069\u3046\u3057\u3066\u3082\u6c38\u7d9a\u5316\u3057\u305f\u3044\u30c7\u30fc\u30bf\u306f\u5b9a\u671f\u7684\u306bRDB\u306b\u683c\u7d0d\u3059\u3079\u3057<\/p>\n<h2>\u6211\u8bd5\u8fc7\u4e86<\/h2>\n<h3>\u96c6\u7fa4\u6a21\u5f0f\u7981\u7528<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b6913a08637a6e3be8\/132-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2018-11-16 7.50.33.png\" \/><\/div>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30af\u30e9\u30b9\u30bf\u30fc\u30a8\u30f3\u30b8\u30f3<\/ul>\n<\/li>\n<\/ul>\n<p>Redis\u3092\u9078\u629e<\/p>\n<p>\u30af\u30e9\u30b9\u30bf\u30fc\u30e2\u30fc\u30c9\u3092\u6709\u52b9\u306e\u30dc\u30bf\u30f3<\/p>\n<p>\u30c1\u30a7\u30c3\u30af\u3064\u3051\u306a\u3044<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b6913a08637a6e3be8\/134-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2018-11-16 7.50.42.png\" \/><\/div>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30dd\u30fc\u30c8\u756a\u53f7<\/ul>\n<\/li>\n<\/ul>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u306e6379<\/p>\n<p>\u30d1\u30e9\u30e1\u30fc\u30bf\u30b0\u30eb\u30fc\u30d7<\/p>\n<p>cluster.on\u304c\u4ed8\u3044\u3066\u3044\u306a\u3044\u3082\u306e<\/p>\n<p>\u30ce\u30fc\u30c9\u30bf\u30a4\u30d7<\/p>\n<p>\u691c\u8a3c\u7528\u306e\u305f\u3081\u6700\u3082\u5b89\u3044\u3082\u306e(t2.micro)\u3092\u9078\u629e<\/p>\n<p>\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u6570<\/p>\n<p>\u30ea\u30fc\u30c9\u30ec\u30d7\u30ea\u30ab\u306e\u6570\u306e\u3053\u3068<br \/>\n2\u3092\u9078\u3093\u3060\u5834\u5408\u306f\u30af\u30e9\u30b9\u30bf\u306e\u4e2d\u306b\u30d7\u30e9\u30a4\u30de\u30ea\u304c1\u53f0\u3068\u30ea\u30fc\u30c9\u30ec\u30d7\u30ea\u30ab\u304c2\u53f0\u751f\u6210\u3055\u308c\u3001\u5408\u8a083\u53f0\u306b\u306a\u308b<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b6913a08637a6e3be8\/136-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2018-11-16 7.50.50.png\" \/><\/div>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Multi-AZ<\/ul>\n<\/li>\n<\/ul>\n<p>\u30ce\u30fc\u30c9\u30bf\u30a4\u30d7\u304ct2\u306a\u306e\u3067\u9078\u629e\u4e0d\u53ef<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b6913a08637a6e3be8\/138-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2018-11-16 7.50.59.png\" \/><\/div>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7<\/ul>\n<\/li>\n<\/ul>\n<p>\u540c\u4e00VPC\u5185\u306eEC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304b\u3089\u306e6379\u3092\u53d7\u3051\u5165\u308c\u308b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u3057\u3066\u9078\u629e\u3059\u308b<\/p>\n<p>\u540c\u4e00VPC\u5185\u306eEC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u4ee5\u5916\u304b\u3089\u3082\u63a5\u7d9a\u306f\u3067\u304d\u308b\u304cVPN\u306e\u8a2d\u5b9a\u3068\u304b\u3081\u3093\u3069\u3044<\/p>\n<p>\u4fdd\u7ba1\u6642\u306e\u6697\u53f7\u5316<\/p>\n<p>\u4fdd\u7ba1\u3057\u305f\u30c7\u30fc\u30bf\u3092\u6697\u53f7\u5316\u3059\u308b\u304b\u3069\u3046\u304b<\/p>\n<p>\u9001\u4fe1\u4e2d\u306e\u6697\u53f7\u5316<\/p>\n<p>EC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3084\u30ce\u30fc\u30c9\u9593\u306e\u901a\u4fe1\u3092\u6697\u53f7\u5316\u3059\u308b\u304b\u3069\u3046\u304b<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b6913a08637a6e3be8\/140-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2018-11-16 7.51.13.png\" \/><\/div>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/ul>\n<\/li>\n<\/ul>\n<p>\u30ce\u30fc\u30c9\u30bf\u30a4\u30d7\u304ct2\u306a\u306e\u3067\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306f\u9078\u629e\u4e0d\u53ef<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b6913a08637a6e3be8\/142-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2018-11-16 7.58.55.png\" \/><\/div>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9<\/ul>\n<\/li>\n<\/ul>\n<p>ElastiCache\u306e\u30d1\u30c3\u30c1\u9069\u7528\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306b\u3001\u30d1\u30c3\u30c1\u3092\u9069\u7528\u3059\u308b\u6642\u9593\u3092\u6307\u5b9a\u3067\u304d\u308b\u3002<br \/>\n\u904b\u7528\u30b5\u30fc\u30d3\u30b9\u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u6642\u9593\u3084\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u5c11\u306a\u3044\u6642\u9593\u5e2f\u306b\u8a2d\u5b9a\u3059\u308b\u306e\u304c\u826f\u3055\u305d\u3046\u3002<br \/>\n\u901a\u77e5\u65b9\u6cd5\u3082\u6307\u5b9a\u3067\u304d\u308b\u3002<br \/>\n\u4eca\u56de\u306f\u691c\u8a3c\u7528\u306a\u306e\u3067\u8a2d\u5b9a\u3057\u306a\u3044\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b6913a08637a6e3be8\/144-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2018-11-15 7.58.48.png\" \/><\/div>\n<ul class=\"post-ul\">\u6700\u7d42\u7684\u306b\u3053\u3093\u306a\u611f\u3058<\/ul>\n<h3>\u542f\u7528\u96c6\u7fa4\u6a21\u5f0f<\/h3>\n<p>\u6211\u53ea\u9700\u8981\u4e00\u79cd\u9009\u62e9\uff0c\u5728\u4e2d\u6587\u4e2d\u5c06\u4e0b\u9762\u7684\u53e5\u5b50\u8fdb\u884c\u610f\u8bd1\uff1a<br \/>\n\u8fd9\u91cc\u53ea\u89e3\u91ca\u4e0e\u7981\u7528\u4e0a\u7ea7\u96c6\u7fa4\u6a21\u5f0f\u7684\u4f8b\u5b50\u4e4b\u95f4\u6709\u6240\u4e0d\u540c\u7684\u90e8\u5206\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b6913a08637a6e3be8\/148-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2018-11-17 10.43.40.png\" \/><\/div>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30af\u30e9\u30b9\u30bf\u30fc\u30e2\u30fc\u30c9\u3092\u6709\u52b9\u306e\u30dc\u30bf\u30f3<\/ul>\n<\/li>\n<\/ul>\n<p>\u30c1\u30a7\u30c3\u30af\u3059\u308b<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b6913a08637a6e3be8\/150-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2018-11-17 10.43.54.png\" \/><\/div>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30d1\u30e9\u30e1\u30fc\u30bf\u30b0\u30eb\u30fc\u30d7<\/ul>\n<\/li>\n<\/ul>\n<p>cluster.on\u304c\u4ed8\u3044\u3066\u3044\u308b\u3082\u306e<\/p>\n<p>\u30ce\u30fc\u30c9\u30bf\u30a4\u30d7<\/p>\n<p>m3.medium(\u691c\u8a3c\u7528\u306bMulti-AZ\u3084\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u6a5f\u80fd\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u9078\u629e)<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b6913a08637a6e3be8\/152-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2018-11-17 10.44.06.png\" \/><\/div>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Multi-AZ<\/ul>\n<\/li>\n<\/ul>\n<p>\u30c1\u30a7\u30c3\u30af\u3064\u3051\u3066\u6709\u52b9\u5316<\/p>\n<p>\u30b9\u30ed\u30c3\u30c8\u304a\u3088\u3073\u30ad\u30fc\u30b9\u30da\u30fc\u30b9<\/p>\n<p>\u30b7\u30e3\u30fc\u30c9\u306e\u8ca0\u8377\u5206\u6563\u65b9\u6cd5\u3092\u9078\u629e\u3059\u308b<br \/>\n\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u5747\u7b49\u5206\u6563\u3092\u9078\u629e<\/p>\n<p>\u30a2\u30d9\u30a4\u30e9\u30d3\u30ea\u30c6\u30a3\u30be\u30fc\u30f3<\/p>\n<p>\u30ce\u30fc\u30c9\u5358\u4f4d\u3067\u30a2\u30d9\u30a4\u30e9\u30d3\u30ea\u30c6\u30a3\u30be\u30fc\u30f3\u3092\u6307\u5b9a\u53ef\u80fd<br \/>\n\u4eca\u56de\u306f\u6307\u5b9a\u306a\u3057<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b6913a08637a6e3be8\/154-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2018-11-17 10.44.22.png\" \/><\/div>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/ul>\n<\/li>\n<\/ul>\n<p>\u81ea\u52d5\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u6709\u52b9\u5316<\/p>\n<p>AOF<\/p>\n<h3>\u53ef\u4ee5\u5728\u521b\u5efa\u540e\u8fdb\u884c\u66f4\u6539\u7684\u4e8b\u9879\u4ee5\u53ca\u4e0d\u53ef\u66f4\u6539\u7684\u4e8b\u9879\u3002<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b6913a08637a6e3be8\/157-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2018-11-17 13.33.43.png\" \/><\/div>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30ad\u30e3\u30c3\u30b7\u30e5\u30a8\u30f3\u30b8\u30f3\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u5909\u66f4<\/ul>\n<\/li>\n<\/ul>\n<p>\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u53ef\u80fd<br \/>\n\u30c0\u30a6\u30f3\u30b0\u30ec\u30fc\u30c9\u4e0d\u53ef<\/p>\n<p>\u30d1\u30e9\u30e1\u30fc\u30bf\u30b0\u30eb\u30fc\u30d7\u5909\u66f4\u53ef\u80fd<br \/>\n\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u8a2d\u5b9a\u5909\u66f4\u53ef\u80fd<br \/>\n\u901a\u77e5\u65b9\u6cd5\u5909\u66f4\u53ef\u80fd<br \/>\n\u30b7\u30e3\u30fc\u30c9\u6570\u306e\u5897\u6e1b\u53ef\u80fd<br \/>\n\u30ec\u30d7\u30ea\u30ab\u6570\u306e\u5897\u6e1b\u53ef\u80fd<\/p>\n<h1>\u601d\u8003<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30ed\u30fc\u30ab\u30eb\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u3057\u3066\u3082ElastiCache\u3092\u5229\u7528\u3059\u308b\u306b\u3057\u3066\u3082\u7c21\u5358\u306bRedis\u3092\u4f7f\u3044\u59cb\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u308b<\/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\">\u5358\u7d14\u306a\u30c7\u30fc\u30bf\u3057\u304b\u6271\u3048\u306a\u3044\u5206\u3001\u899a\u3048\u308b\u3053\u3068\u304c\u5c11\u306a\u3044\u306e\u3067\u5b66\u7fd2\u30b3\u30b9\u30c8\u306f\u4f4e\u3044<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u3068\u308a\u3042\u3048\u305aRedis\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u304a\u3051\u3070memcached\u3082\u3044\u3051\u305d\u3046<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 \u6211\u6700\u8fd1\u624d\u5f00\u59cb\u5b66\u4e60\u5e76\u603b\u7ed3\u4e86\u4ee5\u524d\u4ec5\u4ec5\u542c\u8bf4\u8fc7\u7684Redis\u3002\u8fd9\u662f\u4e3a\u4e86\u90a3\u4e9b\u867d\u7136\u542c\u8bf4\u8fc7Redis\u4f46\u5bf9\u5176\u5185\u90e8\u4e0d\u719f\u6089\u7684\u4eba [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-50586","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\u5c06Redis\u548cElastiCache\u7b80\u5355\u603b\u7ed3\u4e00\u4e0b\uff0c\u8ba9\u4eba\u66f4\u6613\u7406\u89e3 - 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\u5c06redis\u548celasticache\u7b80\u5355\u603b\u7ed3\u4e00\u4e0b\uff0c\u8ba9\u4eba\u66f4\u6613\u7406\u89e3\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\u5c06Redis\u548cElastiCache\u7b80\u5355\u603b\u7ed3\u4e00\u4e0b\uff0c\u8ba9\u4eba\u66f4\u6613\u7406\u89e3\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 \u6211\u6700\u8fd1\u624d\u5f00\u59cb\u5b66\u4e60\u5e76\u603b\u7ed3\u4e86\u4ee5\u524d\u4ec5\u4ec5\u542c\u8bf4\u8fc7\u7684Redis\u3002\u8fd9\u662f\u4e3a\u4e86\u90a3\u4e9b\u867d\u7136\u542c\u8bf4\u8fc7Redis\u4f46\u5bf9\u5176\u5185\u90e8\u4e0d\u719f\u6089\u7684\u4eba [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u8bd5\u7740\u5c06redis\u548celasticache\u7b80\u5355\u603b\u7ed3\u4e00\u4e0b\uff0c\u8ba9\u4eba\u66f4\u6613\u7406\u89e3\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-29T10:34:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T13:46:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b6913a08637a6e3be8\/2-0.png\" \/>\n<meta name=\"author\" content=\"\u65b0, \u97f5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u65b0, \u97f5\" \/>\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%e5%b0%86redis%e5%92%8celasticache%e7%ae%80%e5%8d%95%e6%80%bb%e7%bb%93%e4%b8%80%e4%b8%8b%ef%bc%8c%e8%ae%a9%e4%ba%ba%e6%9b%b4%e6%98%93%e7%90%86%e8%a7%a3%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e5%b0%86redis%e5%92%8celasticache%e7%ae%80%e5%8d%95%e6%80%bb%e7%bb%93%e4%b8%80%e4%b8%8b%ef%bc%8c%e8%ae%a9%e4%ba%ba%e6%9b%b4%e6%98%93%e7%90%86%e8%a7%a3%e3%80%82\/\",\"name\":\"\u6211\u8bd5\u7740\u5c06Redis\u548cElastiCache\u7b80\u5355\u603b\u7ed3\u4e00\u4e0b\uff0c\u8ba9\u4eba\u66f4\u6613\u7406\u89e3 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2024-01-29T10:34:11+00:00\",\"dateModified\":\"2024-04-29T13:46:40+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e5%b0%86redis%e5%92%8celasticache%e7%ae%80%e5%8d%95%e6%80%bb%e7%bb%93%e4%b8%80%e4%b8%8b%ef%bc%8c%e8%ae%a9%e4%ba%ba%e6%9b%b4%e6%98%93%e7%90%86%e8%a7%a3%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%e5%b0%86redis%e5%92%8celasticache%e7%ae%80%e5%8d%95%e6%80%bb%e7%bb%93%e4%b8%80%e4%b8%8b%ef%bc%8c%e8%ae%a9%e4%ba%ba%e6%9b%b4%e6%98%93%e7%90%86%e8%a7%a3%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e5%b0%86redis%e5%92%8celasticache%e7%ae%80%e5%8d%95%e6%80%bb%e7%bb%93%e4%b8%80%e4%b8%8b%ef%bc%8c%e8%ae%a9%e4%ba%ba%e6%9b%b4%e6%98%93%e7%90%86%e8%a7%a3%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\u5c06Redis\u548cElastiCache\u7b80\u5355\u603b\u7ed3\u4e00\u4e0b\uff0c\u8ba9\u4eba\u66f4\u6613\u7406\u89e3\"}]},{\"@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\/4ba4019495123db3038fd0809e6959c9\",\"name\":\"\u65b0, \u97f5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"caption\":\"\u65b0, \u97f5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e5%b0%86redis%e5%92%8celasticache%e7%ae%80%e5%8d%95%e6%80%bb%e7%bb%93%e4%b8%80%e4%b8%8b%ef%bc%8c%e8%ae%a9%e4%ba%ba%e6%9b%b4%e6%98%93%e7%90%86%e8%a7%a3%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\u5c06Redis\u548cElastiCache\u7b80\u5355\u603b\u7ed3\u4e00\u4e0b\uff0c\u8ba9\u4eba\u66f4\u6613\u7406\u89e3 - 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\u5c06redis\u548celasticache\u7b80\u5355\u603b\u7ed3\u4e00\u4e0b\uff0c\u8ba9\u4eba\u66f4\u6613\u7406\u89e3\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u6211\u8bd5\u7740\u5c06Redis\u548cElastiCache\u7b80\u5355\u603b\u7ed3\u4e00\u4e0b\uff0c\u8ba9\u4eba\u66f4\u6613\u7406\u89e3","og_description":"\u9996\u5148 \u6211\u6700\u8fd1\u624d\u5f00\u59cb\u5b66\u4e60\u5e76\u603b\u7ed3\u4e86\u4ee5\u524d\u4ec5\u4ec5\u542c\u8bf4\u8fc7\u7684Redis\u3002\u8fd9\u662f\u4e3a\u4e86\u90a3\u4e9b\u867d\u7136\u542c\u8bf4\u8fc7Redis\u4f46\u5bf9\u5176\u5185\u90e8\u4e0d\u719f\u6089\u7684\u4eba [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u8bd5\u7740\u5c06redis\u548celasticache\u7b80\u5355\u603b\u7ed3\u4e00\u4e0b\uff0c\u8ba9\u4eba\u66f4\u6613\u7406\u89e3\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-01-29T10:34:11+00:00","article_modified_time":"2024-04-29T13:46:40+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d92b6913a08637a6e3be8\/2-0.png"}],"author":"\u65b0, \u97f5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u65b0, \u97f5","\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%e5%b0%86redis%e5%92%8celasticache%e7%ae%80%e5%8d%95%e6%80%bb%e7%bb%93%e4%b8%80%e4%b8%8b%ef%bc%8c%e8%ae%a9%e4%ba%ba%e6%9b%b4%e6%98%93%e7%90%86%e8%a7%a3%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e5%b0%86redis%e5%92%8celasticache%e7%ae%80%e5%8d%95%e6%80%bb%e7%bb%93%e4%b8%80%e4%b8%8b%ef%bc%8c%e8%ae%a9%e4%ba%ba%e6%9b%b4%e6%98%93%e7%90%86%e8%a7%a3%e3%80%82\/","name":"\u6211\u8bd5\u7740\u5c06Redis\u548cElastiCache\u7b80\u5355\u603b\u7ed3\u4e00\u4e0b\uff0c\u8ba9\u4eba\u66f4\u6613\u7406\u89e3 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2024-01-29T10:34:11+00:00","dateModified":"2024-04-29T13:46:40+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e5%b0%86redis%e5%92%8celasticache%e7%ae%80%e5%8d%95%e6%80%bb%e7%bb%93%e4%b8%80%e4%b8%8b%ef%bc%8c%e8%ae%a9%e4%ba%ba%e6%9b%b4%e6%98%93%e7%90%86%e8%a7%a3%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%e5%b0%86redis%e5%92%8celasticache%e7%ae%80%e5%8d%95%e6%80%bb%e7%bb%93%e4%b8%80%e4%b8%8b%ef%bc%8c%e8%ae%a9%e4%ba%ba%e6%9b%b4%e6%98%93%e7%90%86%e8%a7%a3%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e5%b0%86redis%e5%92%8celasticache%e7%ae%80%e5%8d%95%e6%80%bb%e7%bb%93%e4%b8%80%e4%b8%8b%ef%bc%8c%e8%ae%a9%e4%ba%ba%e6%9b%b4%e6%98%93%e7%90%86%e8%a7%a3%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\u5c06Redis\u548cElastiCache\u7b80\u5355\u603b\u7ed3\u4e00\u4e0b\uff0c\u8ba9\u4eba\u66f4\u6613\u7406\u89e3"}]},{"@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\/4ba4019495123db3038fd0809e6959c9","name":"\u65b0, \u97f5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","caption":"\u65b0, \u97f5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e5%b0%86redis%e5%92%8celasticache%e7%ae%80%e5%8d%95%e6%80%bb%e7%bb%93%e4%b8%80%e4%b8%8b%ef%bc%8c%e8%ae%a9%e4%ba%ba%e6%9b%b4%e6%98%93%e7%90%86%e8%a7%a3%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\/50586","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\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=50586"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/50586\/revisions"}],"predecessor-version":[{"id":87828,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/50586\/revisions\/87828"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=50586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=50586"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=50586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}