{"id":15042,"date":"2021-11-23T09:32:32","date_gmt":"2021-11-23T00:32:32","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=15042"},"modified":"2023-05-28T08:26:33","modified_gmt":"2023-05-27T23:26:33","slug":"%e3%80%90redis%e3%80%91%e3%83%a6%e3%83%bc%e3%82%b9%e3%82%b1%e3%83%bc%e3%82%b9%ef%bc%88%e3%82%ad%e3%83%a3%e3%83%83%e3%82%b7%e3%83%a5%ef%bc%89","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=15042","title":{"rendered":"\u3010Redis\u3011\u30c7\u30fc\u30bf\u578b\u306e\u7a2e\u985e\u3068\u7528\u9014\u3001\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\uff08\u30ad\u30e3\u30c3\u30b7\u30e5\uff09"},"content":{"rendered":"<h2>\u30c7\u30fc\u30bf\u578b\u306e\u7a2e\u985e\u3068\u7528\u9014<\/h2>\n<h3>Redis Strings<\/h3>\n<p>Redis\u306e\u6700\u3082\u57fa\u672c\u30c7\u30fc\u30bf\u578b\u3067\u3059\u3002\u6700\u5927512MB\u307e\u3067\u683c\u7d0d\u3067\u304d\u307e\u3059\u3002\u30d0\u30a4\u30ca\u30ea\u3082\u683c\u7d0d\u3067\u304d\u308b\u305f\u3081\u753b\u50cf\u306a\u3069\u3082\u683c\u7d0d\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u52a0\u7b97\u6e1b\u7b97\u30b3\u30de\u30f3\u30c9\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>Redis Lists<\/h3>\n<p>\u300cRedis Strings\u300d\u306e\u30ea\u30b9\u30c8\u3067\u3059\u3002\u7d0442\u5104\u500b\u306e\u8981\u7d20\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4>\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9<\/h4>\n<h5>SNS\u3084\u30d6\u30ed\u30b0\u306a\u3069\u306e\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u5b9f\u88c5<\/h5>\n<p>LPUSH\u3068\u3044\u3046\u30af\u30a8\u30ea\u3067\u8981\u7d20\u3092\u5373\u5ea7\u306b\u8ffd\u52a0\u3057\u305f\u308a\u3001LRANGE\u3068\u3044\u3046\u30af\u30a8\u30ea\u3067\u76f4\u8fd1\u8981\u7d20\u3092\u9ad8\u901f\u306b\u53d6\u308a\u51fa\u3057\u3066\u8868\u793a\u3059\u308b\u306a\u3069\u3082\u3067\u304d\u308b\u3002<\/p>\n<h3>Redis Sets<\/h3>\n<p>\u9806\u5e8f\u3092\u6301\u305f\u306a\u3044Strings\u306e\u96c6\u5408\u3002\u91cd\u8907\u3092\u8a31\u3055\u306a\u3044\u3002<\/p>\n<h4>\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9<\/h4>\n<ul>\n<li>IP\u3084\u7aef\u672bID\u306a\u3069\u304b\u3089\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3078\u306e\u30e6\u30cb\u30fc\u30af\u30a2\u30af\u30bb\u30b9\u3092\u78ba\u8a8d\u3059\u308b\u7528\u9014<\/li>\n<li>\u30d6\u30ed\u30b0\u3084\u52d5\u753b\u30b5\u30a4\u30c8\u306a\u3069\u3067\u3088\u304f\u898b\u304b\u3051\u308b\u3001\u30bf\u30ae\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u306a\u3069\u3082\u5b9f\u88c5\u53ef\u80fd<\/li>\n<\/ul>\n<h3>Redis Hashes<\/h3>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8868\u73fe\u3059\u308b\u306e\u306b\u9069\u3057\u3066\u3044\u308b\u3002<\/p>\n<h3>Redis Sorteds Sets\uff08\u30bd\u30fc\u30c8\u6e08\u307f\u30bb\u30c3\u30c8\uff09<\/h3>\n<p>\u91cd\u8907\u3092\u8a31\u3055\u306a\u3044\u30bd\u30fc\u30c8\u6e08\u307f\u306e\u3082\u306e\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9<\/h3>\n<ul>\n<li>\u9010\u6b21\u66f4\u65b0\u304c\u5fc5\u8981\u306a\u30b7\u30b9\u30c6\u30e0\uff08\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u66f4\u65b0\u3055\u308c\u308b\u30b9\u30b3\u30a2\u30dc\u30fc\u30c9\uff09<\/li>\n<li>Redis\u306e\u30c7\u30fc\u30bf\u30a4\u30f3\u30c7\u30c3\u30af\u30b9<\/li>\n<\/ul>\n<h3>Bitmap<\/h3>\n<p>\u5c02\u7528\u306e\u30c7\u30fc\u30bf\u578b\u3067\u306f\u306a\u3044\u3002<\/p>\n<h3>HyperLogLog<\/h3>\n<p>\u30e6\u30cb\u30fc\u30af\u8981\u7d20\u306e\u30ab\u30a6\u30f3\u30c8\u3092\u884c\u3046\u3002Sets\u3068\u304b\u3067\u3082\u53ef\u80fd\u305d\u3046\u3060\u304c\u3001\u30e6\u30fc\u30b6\u30fc\u6570\u304c\u5897\u3048\u308b\u3054\u3068\u306b\u3001\u30e1\u30e2\u30ea\u6d88\u8cbb\u91cf\u3082\u5897\u3048\u308b\u3002\u78ba\u5b9f\u6027\u3092\u5c11\u3057\u6e1b\u3089\u3057\u3066\u30e1\u30e2\u30ea\u6d88\u8cbb\u91cf\u3092\u4f4e\u6e1b\u3059\u308b\u3053\u3068\u3092\u3082\u304f\u308d\u3080\u6a5f\u80fd\u3002<\/p>\n<h4>\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9<\/h4>\n<p>\u5927\u91cf\u306e\u30e6\u30cb\u30fc\u30af\u30e6\u30fc\u30b6\u30fc\u306e\u30a2\u30af\u30bb\u30b9\u304c\u4e88\u60f3\u3055\u308c\u308b\u30b5\u30a4\u30c8\u306b\u304a\u3044\u3066\u3001\u305d\u306e\u30ab\u30a6\u30f3\u30c8\u304cSets\u3067\u5b9f\u73fe\u3067\u304d\u306a\u3044\u5834\u5408\u306a\u3069\u306b\u7528\u3044\u308b\u3002<\/p>\n<h2>\u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\u306bRDB\u3092\u9078\u3093\u3060\u5834\u5408<\/h2>\n<p>\u5927\u91cf\u30a2\u30af\u30bb\u30b9\u304c\u3042\u308b\u5834\u5408\u3001RDB\u3078\u306e\u66f8\u304d\u8fbc\u307f\u3084\u554f\u3044\u5408\u308f\u305b\u90e8\u5206\u304c\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u3068\u306a\u308b\u5834\u5408\u304c\u3042\u308b\u3002<\/p>\n<h2>\u539f\u56e0<\/h2>\n<p>DB\u30b5\u30fc\u30d0\u306e\u30ea\u30bd\u30fc\u30b9\u3084\u3001\u5e2f\u57df\u306e\u5727\u8feb\u306a\u3069\u304c\u60f3\u5b9a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3092\u5bfe\u51e6\u3057\u3088\u3046\u3068\u601d\u3046\u3068\u3001\u524d\u8005\u306f\u30b9\u30b1\u30fc\u30eb\u30a2\u30c3\u30d7\u306b\u3088\u308b\u5bfe\u51e6\u3001\u5f8c\u8005\u306f\u30de\u30b9\u30bf\u30fc\/\u30b9\u30ec\u30fc\u30d6\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u3088\u308b\u30b9\u30b1\u30fc\u30eb\u30a2\u30a6\u30c8\u306a\u3069\u304c\u5fc5\u8981\u306b\u306a\u308b\u3002\u3069\u3061\u3089\u3082\u975e\u5e38\u306b\u9ad8\u3044\u30b3\u30b9\u30c8\u304c\u304b\u304b\u308b\u3002<\/p>\n<h2>Redis\u3092\u4f7f\u3063\u305f\u5834\u5408<\/h2>\n<p>\u57fa\u672c\u7684\u306b\u306f\u5f8c\u8ff0\u3059\u308b\u3088\u3046\u306b\u3001<span style=\"color: #ff0000;\"><strong>\u300cRDB\u304c\u7279\u306b\u82e6\u624b\u3068\u3057\u3001\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u306b\u306a\u308a\u3084\u3059\u3044\u30bd\u30fc\u30c8\u51e6\u7406\u3092\u697d\u306b\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3059\u308b\u30b1\u30fc\u30b9\u304c\u5b9f\u52d9\u3067\u306f\u591a\u3044\u300d<\/strong><\/span>\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u3088\u3063\u3066RDB\u4e0a\u306e\u30c7\u30fc\u30bf\u304c\u5fc5\u8981\u306b\u306a\u3063\u305f\u5834\u5408\u306b\u3001\u307e\u305aRedis\u306b\u5bfe\u3057\u3066\u305d\u306e\u30af\u30a8\u30ea\u306e\u7d50\u679c\u304c\u30ad\u30e3\u30c3\u30b7\u30e5\u3068\u3057\u3066\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u30d2\u30c3\u30c8\u3057\u305f\u5834\u5408\u306f\u3001RDB\u3078\u306e\u554f\u3044\u5408\u308f\u305b\u3092\u884c\u308f\u305a\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u7528\u3044\u3066\u51e6\u7406\u3092\u5b9f\u884c\u3057\u3066\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3078\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>\u3082\u3057\u3001\u5b58\u5728\u3057\u306a\u304b\u3063\u305f\u5834\u5408\u306fRDB\u306b\u554f\u3044\u5408\u308f\u305b\u3066Redis\u306b\u683c\u7d0d\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u540c\u69d8\u306e\u30af\u30a8\u30ea\u3092\u983b\u7e41\u306b\u5b9f\u884c\u3059\u308bWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5834\u5408\u306fRedis\u3092\u4f7f\u3046\u3053\u3068\u306b\u3088\u3063\u3066\u6027\u80fd\u5411\u4e0a\u3084\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u306e\u89e3\u6d88\u306b\u5bc4\u4e0e\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001RDB\u3078\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u96c6\u4e2d\u3092\u5206\u6563\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u7279\u306b\u52b9\u679c\u3092\u767a\u63ee\u3059\u308b\u30b1\u30fc\u30b9<\/h3>\n<p>\u7279\u306b\u3001<span style=\"color: #ff0000;\"><strong>\u300cSorted Set(\u30bd\u30fc\u30c8\u6e08\u307f\u30bb\u30c3\u30c8\u578b\uff09\u300d<\/strong><\/span>\u3092\u4f7f\u3046\u3053\u3068\u3067\u9ad8\u901f\u306b\u30bd\u30fc\u30c8\u6e08\u307f\u306e\u30c7\u30fc\u30bf\u3092\u691c\u7d22\u3057\u305f\u308a\u3001\u53d6\u5f97\u3067\u304d\u305f\u308a\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u6271\u3044\u3084\u3059\u3044\u30c7\u30fc\u30bf\u3068\u3057\u3066\u6301\u3064\u3053\u3068\u3082\u53ef\u80fd<\/h3>\n<p>Redis\u306fHash\u578b\u306a\u3069\u306e\u69cb\u9020\u5316\u3057\u305f\u30c7\u30fc\u30bf\u3092\u6301\u3064\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u6271\u3044\u3084\u3059\u3044\u5f62\u3067\u30c7\u30fc\u30bf\u3092\u6301\u3064\u3053\u3068\u304c\u53ef\u80fd\u3002<\/p>\n<h3>\u6642\u9593\u306b\u3088\u308b\u8a2d\u5b9a<\/h3>\n<p>\u6642\u9593\u3054\u3068\u306b\u5272\u308a\u5f53\u3066\u308b\u30de\u30b7\u30f3\u30ea\u30bd\u30fc\u30b9\u3092\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3002\u7279\u306b\u3001Elastic Cache\u306a\u3069\u3092\u4f7f\u3048\u3070\u975e\u5e38\u306b\u7c21\u5358\u306b\u8a2d\u5b9a\u3067\u304d\u308b\u3002<\/p>\n<h3>\u5897\u3084\u3057\u305f\u53f0\u6570\u306b\u3088\u308a\u6027\u80fd\u5411\u4e0a\u3092\u671f\u5f85\u3067\u304d\u308b\u3002<\/h3>\n<p>RDB\u3068\u7570\u306a\u308a\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u3088\u308b\u30b9\u30b1\u30fc\u30eb\u30a2\u30a6\u30c8\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u5897\u3084\u3057\u305f\u53f0\u6570\u306b\u3088\u3063\u3066\u52b9\u7387\u3088\u304f\u6027\u80fd\u5411\u4e0a\u3092\u671f\u5f85\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u3053\u306e\u30b1\u30fc\u30b9\u3067\u306e\u6ce8\u610f\u70b9<\/h2>\n<h3>\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u7279\u6027<\/h3>\n<p>\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u751f\u5b58\u671f\u9593\u306b\u3088\u3063\u3066\u306f\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u6027\u304c\u4e0b\u304c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3002\u30b7\u30b9\u30c6\u30e0\u8a2d\u8a08\u306e\u6bb5\u968e\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\u30c7\u30fc\u30bf\uff08\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306b\u5909\u5316\u3057\u306a\u3044\u30c7\u30fc\u30bf\uff09\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u306a\u3044\u30c7\u30fc\u30bf\uff08\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306b\u5909\u5316\u3059\u308b\u30c7\u30fc\u30bf\uff09\u3092\u660e\u78ba\u306b\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u30c7\u30fc\u30bf\u578b\u306e\u7a2e\u985e\u3068\u7528\u9014 Redis Strings Redis\u306e\u6700\u3082\u57fa\u672c\u30c7\u30fc\u30bf\u578b\u3067\u3059\u3002\u6700\u5927512MB\u307e\u3067\u683c\u7d0d\u3067\u304d\u307e\u3059\u3002\u30d0\u30a4\u30ca\u30ea\u3082\u683c\u7d0d\u3067\u304d\u308b\u305f\u3081\u753b\u50cf\u306a\u3069\u3082\u683c\u7d0d\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u52a0\u7b97\u6e1b\u7b97\u30b3\u30de\u30f3\u30c9\u3082\u3042\u308a\u307e\u3059\u3002 Redis List [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/15042"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15042"}],"version-history":[{"count":9,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/15042\/revisions"}],"predecessor-version":[{"id":20744,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/15042\/revisions\/20744"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15042"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15042"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15042"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}