{"id":176,"date":"2021-04-26T21:36:54","date_gmt":"2021-04-26T13:36:54","guid":{"rendered":"http:\/\/112.124.66.68\/?p=176"},"modified":"2021-04-26T21:36:54","modified_gmt":"2021-04-26T13:36:54","slug":"redis%e6%8c%81%e4%b9%85%e5%8c%96%e6%9c%ba%e5%88%b6","status":"publish","type":"post","link":"https:\/\/sanlangcode.com\/index.php\/2021\/04\/26\/redis%e6%8c%81%e4%b9%85%e5%8c%96%e6%9c%ba%e5%88%b6\/","title":{"rendered":"Redis\u6301\u4e45\u5316\u673a\u5236"},"content":{"rendered":"\n<p> <br>Redis\u662f\u4e00\u4e2a\u652f\u6301\u6301\u4e45\u5316\u7684\u5185\u5b58\u6570\u636e\u5e93\uff0c\u901a\u8fc7\u6301\u4e45\u5316\u673a\u5236\u628a\u5185\u5b58\u4e2d\u7684\u6570\u636e\u540c\u6b65\u5230\u786c\u76d8\u6587\u4ef6\u6765\u4fdd\u8bc1\u6570\u636e\u6301<br>\u4e45\u5316\u3002\u5f53Redis\u91cd\u542f\u540e\u901a\u8fc7\u628a\u786c\u76d8\u6587\u4ef6\u91cd\u65b0\u52a0\u8f7d\u5230\u5185\u5b58\uff0c\u5c31\u80fd\u8fbe\u5230\u6062\u590d\u6570\u636e\u7684\u76ee\u7684\u3002<br>\u5b9e\u73b0\uff1a\u5355\u72ec\u521b\u5efafork()\u4e00\u4e2a\u5b50\u8fdb\u7a0b\uff0c\u5c06\u5f53\u524d\u7236\u8fdb\u7a0b\u7684\u6570\u636e\u5e93\u6570\u636e\u590d\u5236\u5230\u5b50\u8fdb\u7a0b\u7684\u5185\u5b58\u4e2d\uff0c\u7136\u540e\u7531\u5b50\u8fdb\u7a0b<br>\u5199\u5165\u5230\u4e34\u65f6\u6587\u4ef6\u4e2d\uff0c\u6301\u4e45\u5316\u7684\u8fc7\u7a0b\u7ed3\u675f\u4e86\uff0c\u518d\u7528\u8fd9\u4e2a\u4e34\u65f6\u6587\u4ef6\u66ff\u6362\u4e0a\u6b21\u7684\u5feb\u7167\u6587\u4ef6\uff0c\u7136\u540e\u5b50\u8fdb\u7a0b\u9000\u51fa\uff0c<br>\u5185\u5b58\u91ca\u653e\u3002<br>RDB\u662fRedis\u9ed8\u8ba4\u7684\u6301\u4e45\u5316\u65b9\u5f0f\u3002\u6309\u7167\u4e00\u5b9a\u7684\u65f6\u95f4\u5468\u671f\u7b56\u7565\u628a\u5185\u5b58\u7684\u6570\u636e\u4ee5\u5feb\u7167\u7684\u5f62\u5f0f\u4fdd\u5b58\u5230\u786c\u76d8\u7684\u4e8c<br>\u8fdb\u5236\u6587\u4ef6\u3002\u5373Snapshot\u5feb\u7167\u5b58\u50a8\uff0c\u5bf9\u5e94\u4ea7\u751f\u7684\u6570\u636e\u6587\u4ef6\u4e3adump.rdb\uff0c\u901a\u8fc7\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684save\u53c2\u6570\u6765\u5b9a<br>\u4e49\u5feb\u7167\u7684\u5468\u671f\u3002\uff08 \u5feb\u7167\u53ef\u4ee5\u662f\u5176\u6240\u8868\u793a\u7684\u6570\u636e\u7684\u4e00\u4e2a\u526f\u672c\uff0c\u4e5f\u53ef\u4ee5\u662f\u6570\u636e\u7684\u4e00\u4e2a\u590d\u5236\u54c1\u3002\uff09<br>AOF\uff1aRedis\u4f1a\u5c06\u6bcf\u4e00\u4e2a\u6536\u5230\u7684\u5199\u547d\u4ee4\u90fd\u901a\u8fc7Write\u51fd\u6570\u8ffd\u52a0\u5230\u6587\u4ef6\u6700\u540e\uff0c\u7c7b\u4f3c\u4e8eMySQL\u7684binlog\u3002\u5f53<br>Redis\u91cd\u542f\u662f\u4f1a\u901a\u8fc7\u91cd\u65b0\u6267\u884c\u6587\u4ef6\u4e2d\u4fdd\u5b58\u7684\u5199\u547d\u4ee4\u6765\u5728\u5185\u5b58\u4e2d\u91cd\u5efa\u6574\u4e2a\u6570\u636e\u5e93\u7684\u5185\u5bb9\u3002<br>\u5f53\u4e24\u79cd\u65b9\u5f0f\u540c\u65f6\u5f00\u542f\u65f6\uff0c\u6570\u636e\u6062\u590dRedis\u4f1a\u4f18\u5148\u9009\u62e9AOF\u6062\u590d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Redis\u662f\u4e00\u4e2a\u652f\u6301\u6301\u4e45\u5316\u7684\u5185\u5b58&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":204,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-176","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-redis"],"_links":{"self":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts\/176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/comments?post=176"}],"version-history":[{"count":0,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts\/176\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/media\/204"}],"wp:attachment":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/media?parent=176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/categories?post=176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/tags?post=176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}