{"id":2144,"date":"2023-04-28T13:59:28","date_gmt":"2023-04-28T04:59:28","guid":{"rendered":"https:\/\/edu.ujhb.org\/?p=2144"},"modified":"2023-04-28T13:59:29","modified_gmt":"2023-04-28T04:59:29","slug":"redis%e5%85%a5%e9%96%80%ef%bc%88%e6%97%a5%e6%9c%ac%e8%aa%9e%e7%89%88%ef%bc%89","status":"publish","type":"post","link":"https:\/\/edu.ujhb.org\/?p=2144","title":{"rendered":"Redis\u5165\u9580\uff08\u65e5\u672c\u8a9e\u7248\uff09"},"content":{"rendered":"\n<p>\u30f3\u30c4\u306b\u5408\u308f\u305b\u3066\u30a2\u30ec\u30f3\u30b8\u3057\u3066\u3082\u3089\u3048\u307e\u3059\u304b\u3002\u307e\u305a redis \u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u304b\u3089\u59cb\u3081\u307e\u3057\u3087\u3046\u3002\u307e\u305a\u3001\u8aac\u660e\u3059\u308b\u5185\u5bb9\u306e\u30ea\u30b9\u30c8\u3092\u6e21\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u3082\u3061\u308d\u3093\uff01\u4ee5\u4e0b\u306f Redis \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u6982\u8981\u3067\u3059\u3002\u3053\u306e\u6982\u8981\u306b\u57fa\u3065\u3044\u3066 IT \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb \u30d3\u30c7\u30aa\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Redis \u306e\u7d39\u4ecb 1.1. Redis \u3068\u306f?&nbsp;1.2. Redis \u306e\u6a5f\u80fd\u3068\u5229\u70b9 1.3. Redis \u306e\u9069\u7528\u30b7\u30ca\u30ea\u30aa<\/li>\n\n\n\n<li>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a 2.1. Redis \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5 2.1.1. Windows \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb 2.1.2. Linux \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb 2.1.3. MacOS \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb 2.2. Redis \u306e\u8a2d\u5b9a 2.3. Redis \u30b5\u30fc\u30d3\u30b9\u306e\u958b\u59cb\u3068\u505c\u6b62<\/li>\n\n\n\n<li>Redis \u30c7\u30fc\u30bf\u578b 3.1. \u6587\u5b57\u5217 (\u6587\u5b57\u5217) 3.2. \u30ea\u30b9\u30c8 (\u30ea\u30b9\u30c8) 3.3. \u30bb\u30c3\u30c8 (\u30bb\u30c3\u30c8) 3.4. \u9806\u5e8f\u4ed8\u304d\u30bb\u30c3\u30c8 (\u30bd\u30fc\u30c8\u6e08\u307f\u30bb\u30c3\u30c8) 3.5. \u30cf\u30c3\u30b7\u30e5 (\u30cf\u30c3\u30b7\u30e5)<\/li>\n\n\n\n<li>Redis \u30b3\u30de\u30f3\u30c9 4.1. \u4e00\u822c\u7684\u306a\u30b3\u30de\u30f3\u30c9\u306e\u7d39\u4ecb 4.2. \u6587\u5b57\u5217\u30b3\u30de\u30f3\u30c9 4.3. \u30ea\u30b9\u30c8 \u30b3\u30de\u30f3\u30c9 4.4. \u30bb\u30c3\u30c8 \u30b3\u30de\u30f3\u30c9 4.5. \u9806\u5e8f\u4ed8\u304d\u30bb\u30c3\u30c8 \u30b3\u30de\u30f3\u30c9 4.6. \u30cf\u30c3\u30b7\u30e5 \u30b3\u30de\u30f3\u30c9 4.7. \u30ad\u30fc\u7ba1\u7406\u30b3\u30de\u30f3\u30c9<\/li>\n\n\n\n<li>Redis \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u63a5\u7d9a 5.1. Redis \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u6982\u8981 5.2. Redis \u3078\u306e\u63a5\u7d9a 5.3. Redis \u63a5\u7d9a\u30d7\u30fc\u30eb<\/li>\n\n\n\n<li>Redis \u306e\u6c38\u7d9a\u6027 6.1. RDB \u306e\u6c38\u7d9a\u6027 6.2. AOF \u306e\u6c38\u7d9a\u6027 6.3. RDB \u3068 AOF \u306e\u6bd4\u8f03<\/li>\n\n\n\n<li>Redis \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3 7.1. \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u6982\u5ff5\u3068\u7279\u5fb4 7.2. Redis \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3 \u30b3\u30de\u30f3\u30c9 7.3. \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u4f7f\u7528\u4f8b<\/li>\n\n\n\n<li>Redis Publish Subscribe 8.1. Publish Subscribe \u306e\u6982\u5ff5 8.2. Publish Subscribe \u30b3\u30de\u30f3\u30c9 8.3. Publish Subscribe \u306e\u4f8b<\/li>\n\n\n\n<li>Redis 9.1. \u30de\u30b9\u30bf\u30fc\/\u30b9\u30ec\u30fc\u30d6 \u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u9ad8\u5ea6\u306a\u6a5f\u80fd 9.2. \u30d5\u30e9\u30b0\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3 9.3. \u30af\u30e9\u30b9\u30bf\u30fc<\/li>\n\n\n\n<li>Redis \u3068\u4ed6\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u6bd4\u8f03 10.1. Redis \u3068\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9 10.2. Redis \u3068\u4ed6\u306e NoSQL \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9<\/li>\n\n\n\n<li>11.1. \u30ad\u30e3\u30c3\u30b7\u30e5\u30b7\u30b9\u30c6\u30e0 11.2. \u30ab\u30a6\u30f3\u30bf 11.3. \u30e1\u30c3\u30bb\u30fc\u30b8\u30ad\u30e5\u30fc 11.4. \u30ea\u30fc\u30c0\u30fc\u30dc\u30fc\u30c9 11.5. \u305d\u306e\u4ed6\u306e\u9069\u7528\u30b7\u30ca\u30ea\u30aa<\/li>\n<\/ol>\n\n\n\n<p>\u3053\u306e\u6982\u8981\u304c\u9ad8\u54c1\u8cea\u306e Redis \u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb \u30d3\u30c7\u30aa\u306e\u4f5c\u6210\u306b\u5f79\u7acb\u3064\u3053\u3068\u3092\u9858\u3063\u3066\u3044\u307e\u3059\u3002\u8a73\u7d30\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u3001\u3044\u3064\u3067\u3082\u304a\u77e5\u3089\u305b\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis\u3068\u306f\u4f55\u304b\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u4f1a\u8a71\u3067\u4f7f\u7528\u3055\u308c\u305f\u4ee5\u524d\u306e\u30e2\u30c7\u30eb\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3002\u6700\u65b0\u306e\u30c7\u30d5\u30a9\u30eb\u30c8 \u30e2\u30c7\u30eb\u306b\u5207\u308a\u66ff\u3048\u307e\u3057\u305f<\/p>\n\n\n\n<p>Redis \u306f\u3001\u30aa\u30fc\u30d7\u30f3 \u30bd\u30fc\u30b9\u306e\u30e1\u30e2\u30ea \u30d9\u30fc\u30b9\u306e\u9ad8\u6027\u80fd\u306a\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u306e\u30b9\u30c8\u30ec\u30fc\u30b8 \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9 \u30b7\u30b9\u30c6\u30e0\u3067\u3042\u308a\u3001\u305d\u306e\u30c7\u30fc\u30bf \u30e2\u30c7\u30eb\u306f\u30ad\u30fc\u3068\u5024\u3067\u3059\u3002Redis \u306f\u3001\u6587\u5b57\u5217\u3001\u30cf\u30c3\u30b7\u30e5\u3001\u30ea\u30b9\u30c8\u3001\u30bb\u30c3\u30c8\u3001\u9806\u5e8f\u4ed8\u304d\u30bb\u30c3\u30c8\u306a\u3069\u3001\u3055\u307e\u3056\u307e\u306a\u30c7\u30fc\u30bf\u69cb\u9020\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30c7\u30fc\u30bf\u69cb\u9020\u306b\u3088\u308a\u3001Redis \u306f\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u3001\u30ab\u30a6\u30f3\u30bf\u30fc\u3001\u30e1\u30c3\u30bb\u30fc\u30b8 \u30ad\u30e5\u30fc\u3001\u30ea\u30fc\u30c0\u30fc\u30dc\u30fc\u30c9\u306a\u3069\u3001\u3055\u307e\u3056\u307e\u306a\u30d3\u30b8\u30cd\u30b9 \u30cb\u30fc\u30ba\u3092\u6e80\u305f\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Redis \u306f Salvatore Sanfilippo \u306b\u3088\u3063\u3066\u6700\u521d\u306b\u958b\u767a\u3055\u308c\u30012009 \u5e74\u306b\u6700\u521d\u306b\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u308c\u306f C \u8a00\u8a9e\u3067\u66f8\u304b\u308c\u3066\u304a\u308a\u3001\u975e\u5e38\u306b\u9ad8\u901f\u306b\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002Redis \u306e\u7279\u5fb4\u306e 1 \u3064\u306f\u3001\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u3092\u30e1\u30e2\u30ea\u306b\u4fdd\u5b58\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u30c7\u30fc\u30bf\u3092\u3059\u3070\u3084\u304f\u8aad\u307f\u66f8\u304d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u30b7\u30ca\u30ea\u30aa\u306b\u975e\u5e38\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002\u3055\u3089\u306b\u3001Redis \u306f\u6c38\u7d9a\u6027\u3082\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u308a\u3001\u30c7\u30fc\u30bf\u306e\u4fe1\u983c\u6027\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306b\u30e1\u30e2\u30ea\u5185\u306e\u30c7\u30fc\u30bf\u3092\u30c7\u30a3\u30b9\u30af\u306b\u4fdd\u5b58\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Redis \u306b\u306f\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u30b5\u30dd\u30fc\u30c8\u3001\u30d1\u30d6\u30ea\u30c3\u30b7\u30e5\u3068\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6\u3001Lua \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30b5\u30dd\u30fc\u30c8\u3001\u5206\u6563\u30ed\u30c3\u30af\u306a\u3069\u3001\u4ed6\u306e\u6a5f\u80fd\u3082\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u6a5f\u80fd\u306b\u3088\u308a\u3001Redis \u306f\u3055\u307e\u3056\u307e\u306a\u30b7\u30ca\u30ea\u30aa\u306b\u9069\u7528\u3067\u304d\u307e\u3059\u3002Redis \u306b\u306f\u975e\u5e38\u306b\u6d3b\u767a\u306a\u30b3\u30df\u30e5\u30cb\u30c6\u30a3 \u30b5\u30dd\u30fc\u30c8\u3082\u3042\u308a\u3001\u958b\u767a\u8005\u306f Redis \u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u3092\u901a\u3058\u3066\u8c4a\u5bcc\u306a\u60c5\u5831\u3068\u30d8\u30eb\u30d7\u3092\u5165\u624b\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3064\u307e\u308a\u3001Redis \u306f\u3001\u9ad8\u901f\u3067\u67d4\u8edf\u304b\u3064\u4fe1\u983c\u6027\u306e\u9ad8\u3044\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u306e\u30b9\u30c8\u30ec\u30fc\u30b8 \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9 \u30b7\u30b9\u30c6\u30e0\u3067\u3042\u308a\u3001\u305d\u306e\u9ad8\u3044\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u8907\u6570\u306e\u30c7\u30fc\u30bf\u69cb\u9020\u306b\u3088\u308a\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u6700\u3082\u4eba\u6c17\u306e\u3042\u308b\u30ad\u30e3\u30c3\u30b7\u30e5\u304a\u3088\u3073\u30b9\u30c8\u30ec\u30fc\u30b8 \u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u306e 1 \u3064\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis\u306e\u7279\u5fb4\u3068\u5229\u70b9\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>\u30a4\u30f3\u30e1\u30e2\u30ea \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u3057\u3066\u3001Redis \u306b\u306f\u6b21\u306e\u6a5f\u80fd\u3068\u5229\u70b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u9ad8\u3044\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9: Redis \u306f\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u3092\u30e1\u30e2\u30ea\u306b\u683c\u7d0d\u3059\u308b\u305f\u3081\u3001\u8aad\u307f\u53d6\u308a\u3068\u66f8\u304d\u8fbc\u307f\u306e\u901f\u5ea6\u304c\u975e\u5e38\u306b\u901f\u304f\u3001\u6570\u5341\u4e07\u304b\u3089\u6570\u767e\u4e07\u306e QPS (1 \u79d2\u3042\u305f\u308a\u306e\u30af\u30a8\u30ea \u30ec\u30fc\u30c8) \u306b\u9054\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u8907\u6570\u306e\u30c7\u30fc\u30bf\u69cb\u9020: Redis \u306f\u3001\u6587\u5b57\u5217\u3001\u30cf\u30c3\u30b7\u30e5\u3001\u30ea\u30b9\u30c8\u3001\u30bb\u30c3\u30c8\u3001\u9806\u5e8f\u4ed8\u304d\u30bb\u30c3\u30c8\u306a\u3069\u3092\u542b\u3080\u8907\u6570\u306e\u30c7\u30fc\u30bf\u69cb\u9020\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30c7\u30fc\u30bf\u69cb\u9020\u306f\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u3001\u30ab\u30a6\u30f3\u30bf\u30fc\u3001\u30e1\u30c3\u30bb\u30fc\u30b8 \u30ad\u30e5\u30fc\u3001\u30ea\u30fc\u30c0\u30fc\u30dc\u30fc\u30c9\u306a\u3069\u3001\u3055\u307e\u3056\u307e\u306a\u30d3\u30b8\u30cd\u30b9 \u30cb\u30fc\u30ba\u3092\u6e80\u305f\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u6c38\u7d9a\u6027: Redis \u306f\u30c7\u30fc\u30bf\u306e\u6c38\u7d9a\u6027\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3001\u30c7\u30fc\u30bf\u306e\u4fe1\u983c\u6027\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306b\u30e1\u30e2\u30ea\u5185\u306e\u30c7\u30fc\u30bf\u3092\u30c7\u30a3\u30b9\u30af\u306b\u4fdd\u5b58\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u9ad8\u3044\u540c\u6642\u5b9f\u884c\u6027: Redis \u306f\u30b7\u30f3\u30b0\u30eb\u30b9\u30ec\u30c3\u30c9\u3067\u3042\u308a\u3001\u30a4\u30d9\u30f3\u30c8\u99c6\u52d5\u578b\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u3092\u4f7f\u7528\u3057\u3066\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30ea\u30af\u30a8\u30b9\u30c8\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u3001\u9ad8\u3044\u540c\u6642\u5b9f\u884c\u6027\u3092\u30b5\u30dd\u30fc\u30c8\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3: Redis \u306f\u5206\u6563\u5c55\u958b\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3001\u30c7\u30fc\u30bf\u3092\u8907\u6570\u306e\u30ce\u30fc\u30c9\u306b\u5206\u6563\u3057\u3066\u3001\u3088\u308a\u5927\u304d\u306a\u30c7\u30fc\u30bf\u91cf\u3068\u3088\u308a\u9ad8\u3044\u540c\u6642\u5b9f\u884c\u6027\u306e\u30cb\u30fc\u30ba\u3092\u6e80\u305f\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u30b5\u30dd\u30fc\u30c8: Redis \u306f\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u308a\u3001\u8907\u6570\u306e\u30b3\u30de\u30f3\u30c9\u3092 1 \u3064\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306b\u30d1\u30c3\u30b1\u30fc\u30b8\u5316\u3057\u3066\u3001\u3053\u308c\u3089\u306e\u30b3\u30de\u30f3\u30c9\u306e\u539f\u5b50\u6027\u3092\u78ba\u4fdd\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30d1\u30d6\u30ea\u30c3\u30b7\u30e5-\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6: Redis \u306f\u30d1\u30d6\u30ea\u30c3\u30b7\u30e5-\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6 \u30e2\u30fc\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u8907\u6570\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u30c1\u30e3\u30cd\u30eb\u306b\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6\u3057\u3066\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u30d6\u30ed\u30fc\u30c9\u30ad\u30e3\u30b9\u30c8\u304a\u3088\u3073\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>Lua \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30b5\u30dd\u30fc\u30c8: Redis \u306f\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4ecb\u3057\u3066\u3044\u304f\u3064\u304b\u306e\u8907\u96d1\u306a\u30d3\u30b8\u30cd\u30b9 \u30ed\u30b8\u30c3\u30af\u3092\u5b9f\u884c\u3067\u304d\u308b Lua \u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30aa\u30fc\u30d7\u30f3 \u30bd\u30fc\u30b9\u3067\u7121\u6599: Redis \u306f\u30aa\u30fc\u30d7\u30f3 \u30bd\u30fc\u30b9\u3067\u3042\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u305d\u306e\u30bd\u30fc\u30b9 \u30b3\u30fc\u30c9\u3092\u81ea\u7531\u306b\u4f7f\u7528\u304a\u3088\u3073\u5909\u66f4\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u6d3b\u767a\u306a\u30b3\u30df\u30e5\u30cb\u30c6\u30a3: Redis \u306b\u306f\u975e\u5e38\u306b\u6d3b\u767a\u306a\u30b3\u30df\u30e5\u30cb\u30c6\u30a3 \u30b5\u30dd\u30fc\u30c8\u304c\u3042\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u306f Redis \u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u3092\u901a\u3058\u3066\u8c4a\u5bcc\u306a\u60c5\u5831\u3068\u30d8\u30eb\u30d7\u3092\u5165\u624b\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u3064\u307e\u308a\u3001\u30a4\u30f3\u30e1\u30e2\u30ea \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u3057\u3066\u3001Redis \u306b\u306f\u3001\u9ad8\u6027\u80fd\u3001\u8907\u6570\u306e\u30c7\u30fc\u30bf\u69cb\u9020\u3001\u6c38\u7d9a\u6027\u3001\u9ad8\u3044\u540c\u6642\u5b9f\u884c\u6027\u3001\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u30b5\u30dd\u30fc\u30c8\u3001\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u306e\u767a\u884c\u3001Lua \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30b5\u30dd\u30fc\u30c8\u306a\u3069\u306e\u7279\u5fb4\u3068\u5229\u70b9\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u6a5f\u80fd\u306b\u3088\u308a\u3001Redis \u306f\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306b\u306a\u308a\u307e\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u3067\u6700\u3082\u4eba\u6c17\u306e\u3042\u308b\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u304a\u3088\u3073\u30b9\u30c8\u30ec\u30fc\u30b8 \u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u306e 1 \u3064\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis\u306e\u9069\u7528\u30b7\u30ca\u30ea\u30aa\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>\u9ad8\u6027\u80fd\u3067\u591a\u6a5f\u80fd\u306a\u30e1\u30e2\u30ea \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u3057\u3066\u3001Redis \u306f\u3055\u307e\u3056\u307e\u306a\u30b7\u30ca\u30ea\u30aa\u306b\u9069\u7528\u3067\u304d\u307e\u3059. Redis \u306e\u4e3b\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30b7\u30ca\u30ea\u30aa\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30ad\u30e3\u30c3\u30b7\u30e5: Redis \u306e\u6700\u3082\u4e00\u822c\u7684\u306a\u7528\u9014\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u3067\u3059. Redis \u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u3068\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5fdc\u7b54\u901f\u5ea6\u3068\u30b9\u30eb\u30fc\u30d7\u30c3\u30c8\u3092\u5927\u5e45\u306b\u9ad8\u901f\u5316\u3067\u304d\u307e\u3059.&nbsp;\u305f\u3068\u3048\u3070\u3001\u983b\u7e41\u306b\u30a2\u30af\u30bb\u30b9\u3055\u308c\u308b\u30c7\u30fc\u30bf\u3092 Redis \u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\u3068\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u8ca0\u8377\u304c\u8efd\u6e1b\u3055\u308c\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5fdc\u7b54\u901f\u5ea6\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30ab\u30a6\u30f3\u30bf\u30fc: Redis \u306e\u30a2\u30c8\u30df\u30c3\u30af\u64cd\u4f5c\u3068\u9ad8\u3044\u540c\u6642\u5b9f\u884c\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u3088\u308a\u3001\u30ab\u30a6\u30f3\u30bf\u30fc\u306e\u5b9f\u88c5\u306b\u975e\u5e38\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001Redis \u306e INCR \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30ab\u30a6\u30f3\u30bf\u30fc\u6a5f\u80fd\u3092\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u8907\u6570\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u540c\u6642\u306b\u30ab\u30a6\u30f3\u30bf\u30fc\u3067\u52d5\u4f5c\u3059\u308b\u5834\u5408\u306b\u7af6\u5408\u306e\u554f\u984c\u304c\u767a\u751f\u3057\u306a\u3044\u3053\u3068\u304c\u4fdd\u8a3c\u3055\u308c\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30e1\u30c3\u30bb\u30fc\u30b8 \u30ad\u30e5\u30fc: Redis \u306f\u30ea\u30b9\u30c8 \u30c7\u30fc\u30bf\u69cb\u9020\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3001Redis \u306f\u30e1\u30c3\u30bb\u30fc\u30b8 \u30ad\u30e5\u30fc\u3068\u3057\u3066\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001Redis \u306e LPUSH \u304a\u3088\u3073 RPUSH \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u30ea\u30b9\u30c8\u306b\u8ffd\u52a0\u3057\u3001BRPOP \u304a\u3088\u3073 BLPOP \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30ea\u30b9\u30c8\u304b\u3089\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u30dd\u30c3\u30d7\u3057\u3001\u30b7\u30f3\u30d7\u30eb\u3067\u52b9\u7387\u7684\u306a\u30e1\u30c3\u30bb\u30fc\u30b8 \u30ad\u30e5\u30fc\u3092\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30ea\u30fc\u30c0\u30fc\u30dc\u30fc\u30c9: Redis \u306f\u9806\u5e8f\u4ed8\u3051\u3089\u308c\u305f\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u30c7\u30fc\u30bf\u69cb\u9020\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u308a\u3001Redis \u306f\u30ea\u30fc\u30c0\u30fc\u30dc\u30fc\u30c9\u3068\u3057\u3066\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001Redis \u306e ZADD \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u9806\u5e8f\u4ed8\u304d\u30bb\u30c3\u30c8\u306b\u30e1\u30f3\u30d0\u30fc\u3092\u8ffd\u52a0\u3057\u3001ZREVRANGE \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u4e0a\u4f4d N \u30e1\u30f3\u30d0\u30fc\u3092\u53d6\u5f97\u3057\u3066\u3001\u52b9\u7387\u7684\u306a\u30ea\u30fc\u30c0\u30fc\u30dc\u30fc\u30c9\u6a5f\u80fd\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u5206\u6563\u30ed\u30c3\u30af: Redis \u306f\u3001\u5206\u6563\u30b7\u30b9\u30c6\u30e0\u3067\u30c7\u30fc\u30bf\u306e\u4e00\u8cab\u6027\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306b\u5206\u6563\u30ed\u30c3\u30af\u3092\u5b9f\u88c5\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u308b SETNX \u30b3\u30de\u30f3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30a4\u30f3\u30b9\u30bf\u30f3\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8\u30f3\u30b0: Redis \u306f\u30d1\u30d6\u30ea\u30c3\u30b7\u30e5\/\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6 \u30e2\u30fc\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u308a\u3001Redis \u306f\u30a4\u30f3\u30b9\u30bf\u30f3\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8\u30f3\u30b0\u306e\u5b9f\u88c5\u3068\u3057\u3066\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001Redis \u306e PUBLISH \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u516c\u958b\u3057\u3001SUBSCRIBE \u304a\u3088\u3073 UNSUBSCRIBE \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8cfc\u8aad\u304a\u3088\u3073\u8cfc\u8aad\u89e3\u9664\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30bb\u30c3\u30b7\u30e7\u30f3 \u30ad\u30e3\u30c3\u30b7\u30e5: Redis \u306f\u6587\u5b57\u5217\u30c7\u30fc\u30bf\u69cb\u9020\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3001Redis \u306f\u30bb\u30c3\u30b7\u30e7\u30f3 \u30ad\u30e3\u30c3\u30b7\u30e5\u3068\u3057\u3066\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u30e6\u30fc\u30b6\u30fc \u30bb\u30c3\u30b7\u30e7\u30f3\u60c5\u5831\u3092 Redis \u306b\u4fdd\u5b58\u3057\u3066\u3001\u983b\u7e41\u306a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9 \u30af\u30a8\u30ea\u3092\u56de\u907f\u3057\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5fdc\u7b54\u901f\u5ea6\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u3064\u307e\u308a\u3001\u9ad8\u6027\u80fd\u3067\u591a\u6a5f\u80fd\u306a\u30e1\u30e2\u30ea \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u3057\u3066\u3001Redis \u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u3001\u30ab\u30a6\u30f3\u30bf\u30fc\u3001\u30e1\u30c3\u30bb\u30fc\u30b8 \u30ad\u30e5\u30fc\u3001\u30ea\u30fc\u30c0\u30fc\u30dc\u30fc\u30c9\u3001\u5206\u6563\u30ed\u30c3\u30af\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8\u3001\u30bb\u30c3\u30b7\u30e7\u30f3 \u30ad\u30e3\u30c3\u30b7\u30e5\u306a\u3069\u306e\u3055\u307e\u3056\u307e\u306a\u30b7\u30ca\u30ea\u30aa\u306b\u9069\u7528\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30b7\u30ca\u30ea\u30aa\u306b\u3088\u308a\u3001Redis \u306f\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u6700\u3082\u4e00\u822c\u7684\u306a\u30ad\u30e3\u30c3\u30b7\u30e5\u304a\u3088\u3073\u30b9\u30c8\u30ec\u30fc\u30b8 \u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u306e 1 \u3064\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u306f\u3001\u3055\u307e\u3056\u307e\u306a\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0 \u30b7\u30b9\u30c6\u30e0 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3067\u304d\u307e\u3059. Windows\u3001Linux\u3001\u304a\u3088\u3073 MacOS \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u306e Redis \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Windows \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b Redis \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b Windows \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u306f\u3001Redis \u306e\u516c\u5f0f Web \u30b5\u30a4\u30c8\u304b\u3089\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u306e Redis \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u306b\u5f93\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002\n<ol class=\"wp-block-list\">\n<li>Redis \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b: Redis \u516c\u5f0f Web \u30b5\u30a4\u30c8 ( https:\/\/redis.io\/download)<a href=\"https:\/\/redis.io\/download%EF%BC%89%E4%B8%8A%E4%B8%8B%E8%BD%BDWindows%E7%89%88%E6%9C%AC%E7%9A%84Redis%E5%AE%89%E8%A3%85%E5%8C%85%E3%80%82\">\u304b\u3089 Windows \u30d0\u30fc\u30b8\u30e7\u30f3\u306e Redis \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/a><\/li>\n\n\n\n<li>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u89e3\u51cd\u3059\u308b: \u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u3001D:\\Redis \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306a\u3069\u306e\u6307\u5b9a\u3055\u308c\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u89e3\u51cd\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>Redis \u306e\u69cb\u6210: Redis \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u3001redis.windows.conf \u30d5\u30a1\u30a4\u30eb\u3092\u898b\u3064\u3051\u3001\u69cb\u6210\u60c5\u5831\u3092\u958b\u3044\u3066\u5909\u66f4\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001Redis \u30dd\u30fc\u30c8\u3092 6379 \u306b\u8a2d\u5b9a\u3057\u3001Redis \u30ed\u30b0 \u30d5\u30a1\u30a4\u30eb \u30d1\u30b9\u3092 D:\\Redis\\log\\redis.log \u306b\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>Redis \u306e\u958b\u59cb: Redis \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u3001redis-server.exe \u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001Redis \u30b5\u30fc\u30d3\u30b9\u3092\u958b\u59cb\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>Redis \u306e\u4f7f\u7528: \u30b3\u30de\u30f3\u30c9 \u30d7\u30ed\u30f3\u30d7\u30c8 \u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u958b\u304d\u3001Redis \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5165\u308a\u3001redis-cli.exe \u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3001Redis \u30b3\u30de\u30f3\u30c9 \u30e9\u30a4\u30f3 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306b\u5165\u308b\u3068\u3001Redis \u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n<\/li>\n\n\n\n<li>Linux \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b Redis \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b Linux \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u306f\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066 Redis \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001Ubuntu \u3067\u306f\u3001apt-get \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066 Redis \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002\u5177\u4f53\u7684\u306a\u624b\u9806\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002\n<ol class=\"wp-block-list\">\n<li>\u66f4\u65b0\u5305\u7ba1\u7406\u5668\uff1a\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u66f4\u65b0\u5305\u7ba1\u7406\u5668\uff1asqlCopy code<code>sudo apt-get update<\/code><\/li>\n\n\n\n<li>Redis \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb: \u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066 Redis \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059: arduinoCopy code<code>sudo apt-get install redis-server<\/code><\/li>\n\n\n\n<li>Redis \u306e\u958b\u59cb: \u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067 Redis \u30b5\u30fc\u30d3\u30b9\u3092\u958b\u59cb\u3057\u307e\u3059: sqlCopy \u30b3\u30fc\u30c9<code>sudo systemctl start redis-server<\/code><\/li>\n\n\n\n<li>Redis \u306e\u4f7f\u7528: \u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001Redis \u30b3\u30de\u30f3\u30c9 \u30e9\u30a4\u30f3 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306b\u5165\u308a\u307e\u3059\u3002<code>redis-cli<\/code><\/li>\n<\/ol>\n<\/li>\n\n\n\n<li>MacOS \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b Redis \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b MacOS \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u306f\u3001Homebrew \u30d1\u30c3\u30b1\u30fc\u30b8 \u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3092\u4f7f\u7528\u3057\u3066 Redis \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002\u5177\u4f53\u7684\u306a\u624b\u9806\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002\n<ol class=\"wp-block-list\">\n<li>Homebrew \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb: \u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u304d\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066 Homebrew \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059: bashCopy code<code>\/usr\/bin\/ruby -e \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/master\/install)\"<\/code><\/li>\n\n\n\n<li>Redis \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb: \u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066 Redis \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059: \u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>brew install redis<\/code><\/li>\n\n\n\n<li>Redis \u306e\u958b\u59cb: \u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067 Redis \u30b5\u30fc\u30d3\u30b9\u3092\u958b\u59cb\u3057\u307e\u3059: sqlCopy \u30b3\u30fc\u30c9<code>brew services start redis<\/code><\/li>\n\n\n\n<li>Redis \u306e\u4f7f\u7528: \u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001Redis \u30b3\u30de\u30f3\u30c9 \u30e9\u30a4\u30f3 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306b\u5165\u308a\u307e\u3059\u3002<code>redis-cli<\/code><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n\n\n\n<p>\u4e0a\u8a18\u306f\u3001Windows\u3001Linux\u3001\u304a\u3088\u3073 MacOS \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u306e Redis \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3067\u3059\u3002\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u3001\u5bfe\u5fdc\u3059\u308b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis Windows \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Windows \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3078\u306e Redis \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3001\u6b21\u306e\u624b\u9806\u306b\u5206\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Redis \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b: Redis \u516c\u5f0f Web \u30b5\u30a4\u30c8 ( https:\/\/redis.io\/download)<a href=\"https:\/\/redis.io\/download%EF%BC%89%E4%B8%8A%E4%B8%8B%E8%BD%BDWindows%E7%89%88%E6%9C%AC%E7%9A%84Redis%E5%AE%89%E8%A3%85%E5%8C%85%EF%BC%8C%E9%80%89%E6%8B%A9%E6%9C%80%E6%96%B0%E7%9A%84%E7%A8%B3%E5%AE%9A%E7%89%88%EF%BC%88Stable%EF%BC%89%E4%B8%8B%E8%BD%BD%E5%8D%B3%E5%8F%AF%E3%80%82\">\u304b\u3089 Windows \u30d0\u30fc\u30b8\u30e7\u30f3\u306e Redis \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u6700\u65b0\u306e\u5b89\u5b9a\u30d0\u30fc\u30b8\u30e7\u30f3 (Stable) \u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/a><\/li>\n\n\n\n<li>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u89e3\u51cd\u3057\u307e\u3059\u3002\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u30d1\u30c3\u30b1\u30fc\u30b8\u3092 D:\\Redis \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306a\u3069\u306e\u6307\u5b9a\u3055\u308c\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u89e3\u51cd\u3057\u3001\u6b21\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<code>D:\\Redis\\ \u251c\u2500\u2500 redis-benchmark.exe \u251c\u2500\u2500 redis-check-aof.exe \u251c\u2500\u2500 redis-check-rdb.exe \u251c\u2500\u2500 redis-cli.exe \u251c\u2500\u2500 redis-server.exe \u251c\u2500\u2500 redis.windows.conf \u251c\u2500\u2500 00-RELEASENOTES \u251c\u2500\u2500 BUGS \u251c\u2500\u2500 COPYING \u251c\u2500\u2500 INSTALL \u251c\u2500\u2500 README.md \u251c\u2500\u2500 UPGRADE \u251c\u2500\u2500 CONTRIB \u251c\u2500\u2500 deps \u251c\u2500\u2500 redis-trib.rb \u251c\u2500\u2500 runtest \u251c\u2500\u2500 sentinel.conf \u251c\u2500\u2500 tests \u2514\u2500\u2500 utils<\/code><\/li>\n\n\n\n<li>Redis \u306e\u69cb\u6210: Redis \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067 redis.windows.conf \u30d5\u30a1\u30a4\u30eb\u3092\u898b\u3064\u3051\u3001\u30c6\u30ad\u30b9\u30c8 \u30a8\u30c7\u30a3\u30bf\u30fc\u3067\u958b\u304d\u3001\u69cb\u6210\u60c5\u5831\u3092\u5909\u66f4\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001Redis \u30dd\u30fc\u30c8\u3092 6379 \u306b\u8a2d\u5b9a\u3057\u3001Redis \u30ed\u30b0 \u30d5\u30a1\u30a4\u30eb \u30d1\u30b9\u3092 D:\\Redis\\log\\redis.log \u306b\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002bash\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\u3059\u308b<code># Redis\u914d\u7f6e\u6587\u4ef6 # \u7ed1\u5b9a\u7684IP\u5730\u5740\uff0c\u9ed8\u8ba4\u7ed1\u5b9a127.0.0.1 bind 127.0.0.1 # Redis\u76d1\u542c\u7684\u7aef\u53e3\uff0c\u9ed8\u8ba4\u4e3a6379 port 6379 # \u65e5\u5fd7\u6587\u4ef6\u7684\u8def\u5f84\uff0c\u9ed8\u8ba4\u4e3astdout\uff08\u6807\u51c6\u8f93\u51fa\uff09 logfile \"D:\\\\Redis\\\\log\\\\redis.log\" # \u65e5\u5fd7\u7ea7\u522b\uff0c\u5171\u6709\u56db\u4e2a\u7ea7\u522b\uff1adebug\u3001verbose\u3001notice\u3001warning\uff0c\u9ed8\u8ba4\u4e3averbose loglevel verbose # \u6570\u636e\u5e93\u7684\u6570\u91cf\uff0c\u9ed8\u8ba4\u4e3a16\u4e2a databases 16 # \u6570\u636e\u5e93\u6587\u4ef6\u7684\u5b58\u50a8\u8def\u5f84\uff0c\u9ed8\u8ba4\u4e3a\u5f53\u524d\u76ee\u5f55\u4e0b\u7684dump.rdb\u6587\u4ef6 dir .\/ # \u662f\u5426\u5f00\u542f\u6301\u4e45\u5316\uff0c\u9ed8\u8ba4\u4e3ano save 900 1 save 300 10 save 60 10000<\/code><\/li>\n\n\n\n<li>Redis \u306e\u958b\u59cb: Redis \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u3001redis-server.exe \u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001Redis \u30b5\u30fc\u30d3\u30b9\u3092\u958b\u59cb\u3057\u307e\u3059\u3002\u3059\u3079\u3066\u304c\u3046\u307e\u304f\u3044\u3051\u3070\u3001Redis \u30b5\u30fc\u30d3\u30b9\u304c\u958b\u59cb\u3055\u308c\u3001\u6b21\u306e\u60c5\u5831\u304c\u51fa\u529b\u3055\u308c\u307e\u3059: csharpCopy \u30b3\u30fc\u30c9<code>[8464] 22 Apr 21:11:03.954 # Server started, Redis version 6.0.10 [8464] 22 Apr 21:11:03.954 * DB loaded from disk: 0.000 seconds [8464] 22 Apr 21:11:03.954 * Ready to accept connections<\/code><\/li>\n\n\n\n<li>Redis \u306e\u4f7f\u7528: \u30b3\u30de\u30f3\u30c9 \u30d7\u30ed\u30f3\u30d7\u30c8 \u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u958b\u304d\u3001Redis \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5165\u308a\u3001redis-cli.exe \u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3001Redis \u30b3\u30de\u30f3\u30c9 \u30e9\u30a4\u30f3 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306b\u5165\u308b\u3068\u3001Redis \u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002makefile\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\u3059\u308b<code>D:\\Redis&gt;redis-cli.exe 127.0.0.1:6379&gt;<\/code><\/li>\n<\/ol>\n\n\n\n<p>\u4e0a\u8a18\u306f\u3001Windows \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u306e Redis \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3067\u3059\u3002\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u3001\u5bfe\u5fdc\u3059\u308b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis Linux \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Linux \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3078\u306e Redis \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3001\u6b21\u306e\u624b\u9806\u306b\u5206\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u66f4\u65b0\u5305\u7ba1\u7406\u5668\uff1a\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u66f4\u65b0\u5305\u7ba1\u7406\u5668\uff1asqlCopy code<code>sudo apt-get update<\/code><\/li>\n\n\n\n<li>Redis \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb: \u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066 Redis \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059: arduinoCopy code<code>sudo apt-get install redis-server&nbsp;<\/code>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30b7\u30b9\u30c6\u30e0\u306f\u81ea\u52d5\u7684\u306b Redis \u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u30d7\u30ed\u30bb\u30b9\u4e2d\u306b\u3001Redis \u30e9\u30a4\u30bb\u30f3\u30b9\u5951\u7d04\u306a\u3069\u306e\u78ba\u8a8d\u60c5\u5831\u3092\u5165\u529b\u3059\u308b\u3088\u3046\u306b\u30b7\u30b9\u30c6\u30e0\u304c\u30e6\u30fc\u30b6\u30fc\u306b\u6c42\u3081\u308b\u5834\u5408\u304c\u3042\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u5f93\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>Redis \u306e\u958b\u59cb: \u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001Redis \u30b5\u30fc\u30d3\u30b9\u3092\u958b\u59cb\u3057\u307e\u3059\u3002 sqlCopy \u30b3\u30fc\u30c9<code>sudo systemctl start redis-server&nbsp;<\/code>Redis \u30b5\u30fc\u30d3\u30b9\u304c\u6b63\u5e38\u306b\u958b\u59cb\u3055\u308c\u305f\u5834\u5408\u3001\u51fa\u529b\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/li>\n\n\n\n<li>\u8d77\u52d5\u6642\u306b Redis \u3092\u81ea\u52d5\u7684\u306b\u958b\u59cb\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b: \u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u8d77\u52d5\u6642\u306b Redis \u30b5\u30fc\u30d3\u30b9\u3092\u81ea\u52d5\u7684\u306b\u958b\u59cb\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059: bashCopy code<code>sudo systemctl enable redis-server<\/code><\/li>\n\n\n\n<li>Redis \u30b5\u30fc\u30d3\u30b9\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u78ba\u8a8d\u3057\u307e\u3059: \u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001Redis \u30b5\u30fc\u30d3\u30b9\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u78ba\u8a8d\u3057\u307e\u3059: luaCopy \u30b3\u30fc\u30c9 Redis \u30b5\u30fc\u30d3\u30b9\u304c<code>sudo systemctl status redis-server&nbsp;<\/code>\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u6b21\u306e\u60c5\u5831\u304c\u51fa\u529b\u3055\u308c\u307e\u3059: yamlCopy \u30b3\u30fc\u30c9<code>\u25cf redis-server.service - Advanced key-value store Loaded: loaded (\/lib\/systemd\/system\/redis-server.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2023-04-27 12:34:56 CST; 10s ago Main PID: 12345 (redis-server) Tasks: 4 (limit: 4915) Memory: 2.2M CGroup: \/system.slice\/redis-server.service \u2514\u250012345 \/usr\/bin\/redis-server 127.0.0.1:6379<\/code><\/li>\n\n\n\n<li>Redis \u306e\u4f7f\u7528: \u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001Redis \u30b3\u30de\u30f3\u30c9 \u30e9\u30a4\u30f3 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306b\u5165\u308a\u307e\u3059\u3002<code>redis-cli<\/code><\/li>\n<\/ol>\n\n\n\n<p>\u4e0a\u8a18\u306f Linux \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u306e Redis \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3067\u3059\u3002\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u3001\u5bfe\u5fdc\u3059\u308b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis MacOS \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>MacOS \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3078\u306e Redis \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3001\u6b21\u306e\u624b\u9806\u306b\u5206\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Homebrew \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb: \u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u304d\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066 Homebrew \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059: bashCopy code<code>\/usr\/bin\/ruby -e \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/master\/install)\"<\/code><\/li>\n\n\n\n<li>Redis \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb: \u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066 Redis \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002 \u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>brew install redis&nbsp;<\/code>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30b7\u30b9\u30c6\u30e0\u306f Redis \u3092\u81ea\u52d5\u7684\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u30d7\u30ed\u30bb\u30b9\u4e2d\u306b\u3001Redis \u30e9\u30a4\u30bb\u30f3\u30b9\u5951\u7d04\u306a\u3069\u306e\u78ba\u8a8d\u60c5\u5831\u3092\u5165\u529b\u3059\u308b\u3088\u3046\u306b\u30b7\u30b9\u30c6\u30e0\u304c\u30e6\u30fc\u30b6\u30fc\u306b\u6c42\u3081\u308b\u5834\u5408\u304c\u3042\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u5f93\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>Redis \u306e\u958b\u59cb: \u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001Redis \u30b5\u30fc\u30d3\u30b9\u3092\u958b\u59cb\u3057\u307e\u3059\u3002 sqlCopy \u30b3\u30fc\u30c9<code>brew services start redis&nbsp;<\/code>Redis \u30b5\u30fc\u30d3\u30b9\u304c\u6b63\u5e38\u306b\u958b\u59cb\u3055\u308c\u305f\u5834\u5408\u3001\u51fa\u529b\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/li>\n\n\n\n<li>\u8d77\u52d5\u6642\u306b Redis \u3092\u81ea\u52d5\u7684\u306b\u958b\u59cb\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b: Redis \u30b5\u30fc\u30d3\u30b9\u304c Homebrew \u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u306e\u30b5\u30fc\u30d3\u30b9\u306f\u3001\u8d77\u52d5\u3092\u81ea\u52d5\u7684\u306b\u958b\u59cb\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u306a\u304f\u3066\u3082\u3001\u81ea\u52d5\u7684\u306b\u958b\u59cb\u304a\u3088\u3073\u505c\u6b62\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>Redis \u306e\u4f7f\u7528: \u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001Redis \u30b3\u30de\u30f3\u30c9 \u30e9\u30a4\u30f3 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306b\u5165\u308a\u307e\u3059\u3002<code>redis-cli<\/code><\/li>\n<\/ol>\n\n\n\n<p>\u4e0a\u8a18\u306f MacOS \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u306e Redis \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3067\u3059\u3002\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u5bfe\u5fdc\u3059\u308b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis\u306e\u8a2d\u5b9a\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u306e\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u306f\u3001Redis \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b redis.conf \u3067\u3059\u3002Redis \u306e\u8a2d\u5b9a\u306f\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u3067\u5b9f\u73fe\u3067\u304d\u307e\u3059. \u4ee5\u4e0b\u306f\u3001\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b\u3044\u304f\u3064\u304b\u306e\u8a2d\u5b9a\u9805\u76ee\u3068\u305d\u306e\u610f\u5473\u3067\u3059:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>bind: Redis \u306b\u30d0\u30a4\u30f3\u30c9\u3055\u308c\u305f IP \u30a2\u30c9\u30ec\u30b9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306f 127.0.0.1 \u3067\u3059\u3002\u3053\u306e\u5024\u3092 0.0.0.0 \u306b\u8a2d\u5b9a\u3059\u308b\u3068\u3001Redis \u304c\u3059\u3079\u3066\u306e IP \u30a2\u30c9\u30ec\u30b9\u3092\u30ea\u30c3\u30b9\u30f3\u3059\u308b\u3053\u3068\u3092\u793a\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>port: Redis \u304c\u30ea\u30c3\u30b9\u30f3\u3059\u308b\u30dd\u30fc\u30c8\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306f 6379 \u3067\u3059\u3002\u3053\u306e\u5024\u306f\u30016380\u30016381 \u306a\u3069\u306e\u4ed6\u306e\u5024\u306b\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>daemonize: Redis \u3092\u30c7\u30fc\u30e2\u30f3 \u30d7\u30ed\u30bb\u30b9\u3068\u3057\u3066\u5b9f\u884c\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306f no \u3067\u3059\u3002Redis \u3092\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u3053\u306e\u5024\u3092 yes \u306b\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>pidfile: Redis \u30c7\u30fc\u30e2\u30f3\u306e PID \u30d5\u30a1\u30a4\u30eb \u30d1\u30b9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306f \/var\/run\/redis.pid \u3067\u3059\u3002<\/li>\n\n\n\n<li>logfile: Redis \u30ed\u30b0 \u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306f\u6a19\u6e96\u51fa\u529b (stdout) \u3067\u3059\u3002<\/li>\n\n\n\n<li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9: Redis \u304c\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u6570\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306f 16 \u3067\u3059\u3002\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u8abf\u6574\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>dbfilename: Redis \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9 \u30d5\u30a1\u30a4\u30eb\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306f dump.rdb \u3067\u3059\u3002\u3053\u306e\u5024\u306f\u3001\u4ed6\u306e\u5024\u306b\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>dir: \u30c7\u30d5\u30a9\u30eb\u30c8\u3067 Redis \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u3042\u308b Redis \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9 \u30d5\u30a1\u30a4\u30eb\u306e\u30b9\u30c8\u30ec\u30fc\u30b8 \u30d1\u30b9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>maxclients: Redis \u304c\u540c\u6642\u306b\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u6700\u5927\u6570\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306f 10000 \u3067\u3059\u3002\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u8abf\u6574\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>requirepass: Redis \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u63a5\u7d9a\u3059\u308b\u3068\u304d\u306b\u5165\u529b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u3053\u306e\u5024\u3092\u4efb\u610f\u306e\u6587\u5b57\u5217\u306b\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u3001Redis \u304c\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u304c\u5fc5\u8981\u3067\u3042\u308b\u3053\u3068\u3092\u793a\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>maxmemory: Redis \u304c\u4f7f\u7528\u3059\u308b\u30e1\u30e2\u30ea\u306e\u6700\u5927\u91cf\u3092\u6307\u5b9a\u3057\u307e\u3059. \u30c7\u30d5\u30a9\u30eb\u30c8\u306f 0 \u3067\u3059, \u3053\u308c\u306f\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u304c\u5236\u9650\u3055\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059.&nbsp;\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u8abf\u6574\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>appendonly: Redis \u304c AOF (Append Only File) \u30e2\u30fc\u30c9\u3092\u6709\u52b9\u306b\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306f no \u3067\u3059\u3002\u3053\u306e\u5024\u3092 yes \u306b\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u3001AOF \u30e2\u30fc\u30c9\u3092\u6709\u52b9\u306b\u3059\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>appendfilename: Redis AOF \u30d5\u30a1\u30a4\u30eb\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306f appendonly.aof \u3067\u3059\u3002\u3053\u306e\u5024\u306f\u3001\u4ed6\u306e\u5024\u306b\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>appendfsync: Redis AOF \u30d5\u30a1\u30a4\u30eb\u306e\u540c\u671f\u30dd\u30ea\u30b7\u30fc\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306f everysec \u3067\u3059\u3002\u3053\u308c\u306f\u3001AOF \u30d5\u30a1\u30a4\u30eb\u304c\u6bce\u79d2\u540c\u671f\u3055\u308c\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u3053\u306e\u5024\u306f\u3001AOF \u30d5\u30a1\u30a4\u30eb\u304c\u66f8\u304d\u8fbc\u307e\u308c\u308b\u305f\u3073\u306b\u540c\u671f\u3055\u308c\u308b\u3053\u3068\u3092\u610f\u5473\u3059\u308b always \u306b\u8a2d\u5b9a\u3059\u308b\u304b\u3001AOF \u30d5\u30a1\u30a4\u30eb\u304c\u540c\u671f\u3055\u308c\u306a\u3044\u3053\u3068\u3092\u610f\u5473\u3059\u308b no \u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u4e0a\u8a18\u306f\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b Redis \u69cb\u6210\u9805\u76ee\u306e\u4e00\u90e8\u3067\u3042\u308a\u3001\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u8abf\u6574\u3067\u304d\u307e\u3059\u3002Redis \u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3057\u305f\u3089\u3001Redis \u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3057\u3066\u6709\u52b9\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis\u30b5\u30fc\u30d3\u30b9\u306e\u8d77\u52d5\u3068\u505c\u6b62\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u6559\u3048\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u30b5\u30fc\u30d3\u30b9\u306e\u958b\u59cb\u3068\u505c\u6b62\u306f\u3001\u3055\u307e\u3056\u307e\u306a\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0 \u30b7\u30b9\u30c6\u30e0 \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u5fdc\u3058\u3066\u3055\u307e\u3056\u307e\u306a\u65b9\u6cd5\u3067\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Windows \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067 Redis \u30b5\u30fc\u30d3\u30b9\u3092\u958b\u59cb\u304a\u3088\u3073\u505c\u6b62\u3059\u308b Windows \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066 Redis \u30b5\u30fc\u30d3\u30b9\u3092\u958b\u59cb\u304a\u3088\u3073\u505c\u6b62\u3067\u304d\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>Redis \u30b5\u30fc\u30d3\u30b9\u3092\u958b\u59cb\u3057\u307e\u3059\u3002Redis \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b redis-server.exe \u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3059\u308b\u304b\u3001\u30b3\u30de\u30f3\u30c9 \u30d7\u30ed\u30f3\u30d7\u30c8 \u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<code>redis-server.exe redis.windows.conf<\/code><\/li>\n\n\n\n<li>Redis \u30b5\u30fc\u30d3\u30b9\u3092\u505c\u6b62\u3057\u307e\u3059: \u30b3\u30de\u30f3\u30c9 \u30d7\u30ed\u30f3\u30d7\u30c8 \u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059: arduinoCopy code<code>redis-cli.exe shutdown<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Linux \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u306e Redis \u30b5\u30fc\u30d3\u30b9\u306e\u958b\u59cb\u3068\u505c\u6b62 Linux \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066 Redis \u30b5\u30fc\u30d3\u30b9\u3092\u958b\u59cb\u304a\u3088\u3073\u505c\u6b62\u3067\u304d\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>Redis \u30b5\u30fc\u30d3\u30b9\u3092\u958b\u59cb\u3057\u307e\u3059: \u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001Redis \u30b5\u30fc\u30d3\u30b9\u3092\u958b\u59cb\u3057\u307e\u3059: sqlCopy \u30b3\u30fc\u30c9<code>sudo systemctl start redis-server<\/code><\/li>\n\n\n\n<li>Redis \u30b5\u30fc\u30d3\u30b9\u3092\u505c\u6b62\u3057\u307e\u3059: \u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001Redis \u30b5\u30fc\u30d3\u30b9\u3092\u505c\u6b62\u3057\u307e\u3059: arduinoCopy code<code>sudo systemctl stop redis-server<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>MacOS \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067 Redis \u30b5\u30fc\u30d3\u30b9\u3092\u958b\u59cb\u304a\u3088\u3073\u505c\u6b62\u3059\u308b MacOS \u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066 Redis \u30b5\u30fc\u30d3\u30b9\u3092\u958b\u59cb\u304a\u3088\u3073\u505c\u6b62\u3067\u304d\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>Redis \u30b5\u30fc\u30d3\u30b9\u3092\u958b\u59cb\u3057\u307e\u3059: \u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001Redis \u30b5\u30fc\u30d3\u30b9\u3092\u958b\u59cb\u3057\u307e\u3059: sqlCopy \u30b3\u30fc\u30c9<code>brew services start redis<\/code><\/li>\n\n\n\n<li>Redis \u30b5\u30fc\u30d3\u30b9\u3092\u505c\u6b62\u3057\u307e\u3059: \u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001Redis \u30b5\u30fc\u30d3\u30b9\u3092\u505c\u6b62\u3057\u307e\u3059: arduinoCopy code<code>brew services stop redis<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>\u4e0a\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001sudo \u306f\u3001\u64cd\u4f5c\u3059\u308b\u306b\u306f\u7ba1\u7406\u8005\u6a29\u9650\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u3001Redis \u30b5\u30fc\u30d3\u30b9\u3092\u958b\u59cb\u304a\u3088\u3073\u505c\u6b62\u3059\u308b\u5bfe\u5fdc\u3059\u308b\u65b9\u6cd5\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis\u306e\u30c7\u30fc\u30bf\u578b\u6587\u5b57\u5217(String)\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u6559\u3048\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u3067\u306f\u3001\u6587\u5b57\u5217 (String) \u306f\u6700\u3082\u57fa\u672c\u7684\u306a\u30c7\u30fc\u30bf\u578b\u306e 1 \u3064\u3067\u3042\u308a\u3001\u6700\u3082\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b\u30c7\u30fc\u30bf\u578b\u306e 1 \u3064\u3067\u3059\u3002\u6587\u5b57\u5217\u306b\u306f\u3001\u6570\u5024\u3001\u30c6\u30ad\u30b9\u30c8\u3001\u30d0\u30a4\u30ca\u30ea \u30c7\u30fc\u30bf\u306a\u3069\u3001\u3042\u3089\u3086\u308b\u7a2e\u985e\u306e\u30c7\u30fc\u30bf\u3092\u683c\u7d0d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Redis \u3067\u306f\u3001\u6587\u5b57\u5217\u306f\u6b21\u306e\u65b9\u6cd5\u3067\u64cd\u4f5c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u6587\u5b57\u5217\u306e\u5024\u3092\u8a2d\u5b9a\u3059\u308b: SET \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u6587\u5b57\u5217\u306e\u5024\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ad\u30fc\u304c\u540d\u524d\u3067\u3042\u308b\u6587\u5b57\u5217\u306e\u5024\u3092 Tom \u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002 sqlCopy code<code>SET name Tom&nbsp;<\/code>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306e\u69cb\u6587\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002 cssCopy code<code>SET key value [EX seconds] [PX milliseconds] [NX|XX]&nbsp;<\/code>\u30ad\u30fc\u306f\u6587\u5b57\u5217\u306e\u540d\u524d\u3092\u8868\u3057\u3001\u5024\u306f\u6587\u5b57\u5217\u306e\u5024\u3092\u8868\u3057\u307e\u3059\u3002EX \u304a\u3088\u3073 PX \u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u3001\u6587\u5b57\u5217\u306e\u6709\u52b9\u671f\u9650\u3092\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u3001NX \u304a\u3088\u3073 XX \u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u3001\u30ad\u30fc\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u307e\u305f\u306f\u65e2\u306b\u5b58\u5728\u3059\u308b\u5834\u5408\u306b\u306e\u307f\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u6587\u5b57\u5217\u306e\u5024\u3092\u53d6\u5f97\u3059\u308b: GET \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u6587\u5b57\u5217\u306e\u5024\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ad\u30fc\u304c name \u3067\u3042\u308b\u6587\u5b57\u5217\u306e\u5024\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002 sqlCopy code<code>GET name&nbsp;<\/code>\u30ad\u30fc\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u3001GET \u30b3\u30de\u30f3\u30c9\u306f nil \u3092\u8fd4\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u6587\u5b57\u5217\u306e\u5024\u3092\u5909\u66f4\u3059\u308b: SET \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u6587\u5b57\u5217\u306e\u5024\u3092\u5909\u66f4\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ad\u30fc\u304c name \u3067\u3042\u308b\u6587\u5b57\u5217\u306e\u5024\u3092 Jerry \u306b\u5909\u66f4\u3057\u307e\u3059\u3002 sqlCopy code<code>SET name Jerry&nbsp;<\/code>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306e\u69cb\u6587\u306f\u3001\u6587\u5b57\u5217\u306e\u5024\u3092\u8a2d\u5b9a\u3059\u308b\u5834\u5408\u3068\u540c\u3058\u3067\u3059\u3002<\/li>\n\n\n\n<li>\u6587\u5b57\u5217\u306e\u9577\u3055\u3092\u53d6\u5f97\u3059\u308b: STRLEN \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u6587\u5b57\u5217\u306e\u9577\u3055\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ad\u30fc\u304c name \u3067\u3042\u308b\u6587\u5b57\u5217\u306e\u9577\u3055\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<code>STRLEN name<\/code><\/li>\n\n\n\n<li>\u6587\u5b57\u5217\u306e\u5024\u3092\u8ffd\u52a0\u3059\u308b: APPEND \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u6587\u5b57\u5217\u5024\u306e\u672b\u5c3e\u306b\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ad\u30fc\u304c greeting \u3067\u3042\u308b\u6587\u5b57\u5217\u306e\u5024\u306e\u672b\u5c3e\u306b\u6587\u5b57\u5217 hello \u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<code>APPEND greeting hello<\/code><\/li>\n\n\n\n<li>\u81ea\u5df1\u5897\u5206\u304a\u3088\u3073\u81ea\u5df1\u6e1b\u5206: INCR \u304a\u3088\u3073 DECR \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u6587\u5b57\u5217\u306e\u5024\u306b\u5bfe\u3057\u3066\u81ea\u5df1\u5897\u5206\u304a\u3088\u3073\u81ea\u5df1\u6e1b\u5206\u64cd\u4f5c\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ad\u30fc\u304c count \u3067\u3042\u308b<code>INCR count&nbsp;<\/code>\u6587\u5b57\u5217\u306e\u5024\u306b 1 \u3092\u52a0\u7b97\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u6587\u5b57\u5217\u306e\u6709\u52b9\u671f\u9650\u306e\u8a2d\u5b9a: EXPIRE \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u6587\u5b57\u5217\u306e\u6709\u52b9\u671f\u9650\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ad\u30fc\u304c name \u3067\u3042\u308b\u6587\u5b57\u5217\u306e\u6709\u52b9\u671f\u9650\u3092 60 \u79d2\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002 Copy code<code>EXPIRE name 60&nbsp;<\/code>\u30ad\u30fc\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u3001EXPIRE \u30b3\u30de\u30f3\u30c9\u306f\u52b9\u679c\u304c\u3042\u308a\u307e\u305b\u3093\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u4e0a\u8a18\u306f\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b Redis \u6587\u5b57\u5217\u30b3\u30de\u30f3\u30c9\u306e\u4e00\u90e8\u3067\u3042\u308a\u3001\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u9078\u629e\u3057\u3066\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002Redis \u3067\u6700\u3082\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b\u30c7\u30fc\u30bf\u578b\u306e 1 \u3064\u3068\u3057\u3066\u3001string \u306f\u9ad8\u3044\u67d4\u8edf\u6027\u3068\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u3092\u5099\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis\u306e\u30c7\u30fc\u30bf\u578bList(\u30ea\u30b9\u30c8)\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u6559\u3048\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u3067\u306f\u3001\u30ea\u30b9\u30c8 (List) \u306f\u3001\u540c\u3058\u578b\u306e\u8907\u6570\u306e\u8981\u7d20\u3092\u683c\u7d0d\u3067\u304d\u308b\u9806\u5e8f\u4ed8\u3051\u3089\u308c\u305f\u30c7\u30fc\u30bf\u69cb\u9020\u3067\u3059\u3002\u914d\u5217\u3068\u306f\u7570\u306a\u308a\u3001\u30ea\u30b9\u30c8\u306f\u30ea\u30b9\u30c8\u306e\u9577\u3055\u3092\u4e8b\u524d\u306b\u6307\u5b9a\u3057\u306a\u304f\u3066\u3082\u8981\u7d20\u3092\u52d5\u7684\u306b\u8ffd\u52a0\u304a\u3088\u3073\u524a\u9664\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Redis \u3067\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30ea\u30b9\u30c8\u3092\u64cd\u4f5c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u8981\u7d20\u306e\u8ffd\u52a0: LPUSH \u307e\u305f\u306f RPUSH \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30ea\u30b9\u30c8\u306e\u5148\u982d\u307e\u305f\u306f\u672b\u5c3e\u306b 1 \u3064\u4ee5\u4e0a\u306e\u8981\u7d20\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ad\u30fc\u304c\u540d\u524d\u3067\u3042\u308b\u30ea\u30b9\u30c8\u306e\u5148\u982d\u306b\u8981\u7d20 Tom \u3068 Jerry \u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002 rCopy \u30b3\u30fc\u30c9 \u30b3\u30de\u30f3\u30c9\u306e\u69cb\u6587\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002 cssCopy \u30b3\u30fc\u30c9 \u3053\u306e\u3046\u3061\u3001LPUSH \u306f\u8981\u7d20\u3092\u30ea\u30b9\u30c8\u306e\u5148\u982d\u306b\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u3001RPUSH \u306f\u8981\u7d20\u3092\u30ea\u30b9\u30c8<code>LPUSH names Tom Jerry&nbsp;<\/code>\u306e<code>LPUSH key value [value ...] RPUSH key value [value ...]&nbsp;<\/code>\u5148\u982d\u306b\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u30ea\u30b9\u30c8\u306e\u6700\u5f8c\u306b\u8981\u7d20\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u8981\u7d20\u306e\u53d6\u5f97: LINDEX \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30ea\u30b9\u30c8\u5185\u306e\u6307\u5b9a\u3055\u308c\u305f\u4f4d\u7f6e\u306b\u3042\u308b\u8981\u7d20\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ad\u30fc\u304c\u540d\u524d\u3067\u3042\u308b\u30ea\u30b9\u30c8\u5185\u306e\u6700\u521d\u306e\u8981\u7d20\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002rCopy<code>LINDEX names 0&nbsp;<\/code>\u30b3\u30fc\u30c9 \u30ea\u30b9\u30c8\u5185\u306e\u8981\u7d20\u306e\u4f4d\u7f6e\u306f 0 \u304b\u3089\u59cb\u307e\u308a\u3001-1 \u306f\u6700\u5f8c\u306e\u8981\u7d20\u3092\u793a\u3057\u3001-2 \u306f\u6700\u5f8c\u304b\u3089 2 \u756a\u76ee\u306e\u8981\u7d20\u3092\u793a\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30ea\u30b9\u30c8\u306e\u9577\u3055\u3092\u53d6\u5f97\u3059\u308b: LLEN \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30ea\u30b9\u30c8\u306e\u9577\u3055\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ad\u30fc\u304c\u540d\u524d\u3067\u3042\u308b\u30ea\u30b9\u30c8\u306e\u9577\u3055\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<code>LLEN names<\/code><\/li>\n\n\n\n<li>\u8981\u7d20\u306e\u524a\u9664: LPOP \u307e\u305f\u306f RPOP \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30ea\u30b9\u30c8\u306e\u5148\u982d\u307e\u305f\u306f\u672b\u5c3e\u304b\u3089\u8981\u7d20\u3092\u524a\u9664\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001names \u3092\u30ad\u30fc\u3068\u3059\u308b\u30ea\u30b9\u30c8\u306e\u5148\u982d\u304b\u3089\u8981\u7d20\u3092\u524a\u9664\u3057\u307e\u3059\u3002 rCopy code \u30ea\u30b9\u30c8\u5185\u306e<code>LPOP names&nbsp;<\/code>\u7279\u5b9a\u306e\u4f4d\u7f6e\u306b\u3042\u308b\u8981\u7d20\u3092\u524a\u9664\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306f\u3001LREM \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ad\u30fc\u304c\u540d\u524d\u3067\u3042\u308b\u30ea\u30b9\u30c8\u304b\u3089\u3001\u5024\u304c Tom \u3067\u3042\u308b\u6700\u521d\u306e\u8981\u7d20\u3092\u524a\u9664\u3057\u307e\u3059\u3002<code>LREM names 1 Tom<\/code><\/li>\n\n\n\n<li>\u30ea\u30b9\u30c8\u306e\u8981\u7d20\u306e\u4e00\u90e8\u3092\u53d6\u5f97\u3059\u308b: LRANGE \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30ea\u30b9\u30c8\u5185\u306e\u6307\u5b9a\u3055\u308c\u305f\u7bc4\u56f2\u306e\u8981\u7d20\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ad\u30fc\u304c\u540d\u524d\u3067\u3042\u308b\u30ea\u30b9\u30c8\u306e\u6700\u521d\u306e 2 \u3064\u306e\u8981\u7d20\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002 rCopy code<code>LRANGE names 0 1&nbsp;<\/code>\u3053\u306e\u3046\u3061\u30010 \u306f\u9593\u9694\u306e\u958b\u59cb\u4f4d\u7f6e\u3092\u793a\u3057\u30011 \u306f\u9593\u9694\u306e\u7d42\u4e86\u4f4d\u7f6e\u3092\u793a\u3057\u307e\u3059\u3002\u7bc4\u56f2\u306e\u7d42\u308f\u308a\u304c\u30ea\u30b9\u30c8\u306e\u9577\u3055\u3092\u8d85\u3048\u308b\u5834\u5408\u3001LRANGE \u30b3\u30de\u30f3\u30c9\u306f\u81ea\u52d5\u7684\u306b\u5207\u308a\u6368\u3066\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u8981\u7d20\u306e\u633f\u5165: LINSERT \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30ea\u30b9\u30c8\u5185\u306e\u6307\u5b9a\u3055\u308c\u305f\u4f4d\u7f6e\u306b\u8981\u7d20\u3092\u633f\u5165\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ad\u30fc\u304c\u540d\u524d\u3067\u3042\u308b\u30ea\u30b9\u30c8\u5185\u306e Jerry \u306e\u524d\u306b Bob \u8981\u7d20\u3092\u633f\u5165\u3057\u307e\u3059\u3002<code>LINSERT names BEFORE Jerry Bob<\/code><\/li>\n<\/ol>\n\n\n\n<p>\u4e0a\u8a18\u306f\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b\u3044\u304f\u3064\u304b\u306e Redis \u30ea\u30b9\u30c8 \u30b3\u30de\u30f3\u30c9\u3067\u3042\u308a\u3001\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u9078\u629e\u3057\u3066\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u30ea\u30b9\u30c8\u306f\u3001Redis \u3067\u975e\u5e38\u306b\u4fbf\u5229\u306a\u30c7\u30fc\u30bf\u69cb\u9020\u306e 1 \u3064\u3068\u3057\u3066\u3001\u30ad\u30e5\u30fc\u3084\u30b9\u30bf\u30c3\u30af\u306a\u3069\u306e\u30c7\u30fc\u30bf\u69cb\u9020\u3092\u5b9f\u88c5\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u3001\u9ad8\u3044\u67d4\u8edf\u6027\u3068\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u3092\u5099\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis\u306e\u30c7\u30fc\u30bf\u578b\u30b3\u30ec\u30af\u30b7\u30e7\u30f3(Set)\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u6559\u3048\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u3067\u306f\u3001\u30bb\u30c3\u30c8 (Set) \u306f\u3001\u540c\u3058\u30bf\u30a4\u30d7\u306e\u8907\u6570\u306e\u4e00\u610f\u306e\u8981\u7d20\u3092\u683c\u7d0d\u3067\u304d\u308b\u9806\u5e8f\u4ed8\u3051\u3089\u308c\u3066\u3044\u306a\u3044\u30c7\u30fc\u30bf\u69cb\u9020\u3067\u3059\u3002\u30bb\u30c3\u30c8\u5185\u306e\u8981\u7d20\u306f\u9806\u4e0d\u540c\u3067\u3042\u308a\u3001\u91cd\u8907\u306f\u8a31\u53ef\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>Redis \u3067\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u64cd\u4f5c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u8981\u7d20\u306e\u8ffd\u52a0: SADD \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30011 \u3064\u4ee5\u4e0a\u306e\u8981\u7d20\u3092\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u8981\u7d20 Tom \u3068 Jerry \u3092\u3001\u30ad\u30fc\u304c\u540d\u524d\u3067\u3042\u308b\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u8ffd\u52a0\u3057\u307e\u3059: rCopy code<code>SADD names Tom Jerry&nbsp;<\/code>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306e\u69cb\u6587\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059: sqlCopy code<code>SADD key member [member ...]<\/code><\/li>\n\n\n\n<li>\u8981\u7d20\u306e\u53d6\u5f97: SMEMBERS \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u5185\u306e\u3059\u3079\u3066\u306e\u8981\u7d20\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ad\u30fc\u304c\u540d\u524d\u3067\u3042\u308b\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u5185\u306e\u3059\u3079\u3066\u306e\u8981\u7d20\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002 rCopy code<code>SMEMBERS names&nbsp;<\/code>\u3055\u3089\u306b\u3001SISMEMBER \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u6307\u5b9a\u3055\u308c\u305f\u8981\u7d20\u304c\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u5185\u306b\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u8981\u7d20 Tom \u304c\u3001\u30ad\u30fc\u304c names \u3067\u3042\u308b\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u5225\u3057\u307e\u3059\u3002<code>SISMEMBER names Tom<\/code><\/li>\n\n\n\n<li>\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u9577\u3055\u3092\u53d6\u5f97\u3059\u308b: \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u9577\u3055\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001SCARD \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ad\u30fc\u304c\u540d\u524d\u3067\u3042\u308b\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u9577\u3055\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<code>SCARD names<\/code><\/li>\n\n\n\n<li>\u8981\u7d20\u306e\u524a\u9664: SREM \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u304b\u3089 1 \u3064\u307e\u305f\u306f\u8907\u6570\u306e\u8981\u7d20\u3092\u524a\u9664\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ad\u30fc\u304c\u540d\u524d\u3067\u3042\u308b\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u304b\u3089\u8981\u7d20 Jerry \u3092\u524a\u9664\u3057\u307e\u3059\u3002<code>SREM names Jerry<\/code><\/li>\n\n\n\n<li>\u30bb\u30c3\u30c8\u9593\u306e\u64cd\u4f5c: Redis \u306f\u3001\u8907\u6570\u306e\u30bb\u30c3\u30c8\u306e\u4ea4\u5dee\u3001\u7d50\u5408\u3001\u5dee\u5206\u306a\u3069\u306e\u64cd\u4f5c\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>\u4ea4\u5dee\u64cd\u4f5c: SINTER \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u8907\u6570\u306e\u30bb\u30c3\u30c8\u306e\u4ea4\u5dee\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ad\u30fc\u304c\u540d\u524d\u3067\u30ad\u30fc\u304c\u8272\u3067\u3042\u308b 2 \u3064\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u5171\u901a\u90e8\u5206\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<code>SINTER names colors<\/code><\/li>\n\n\n\n<li>\u548c\u96c6\u5408\u64cd\u4f5c: SUNION \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u8907\u6570\u306e\u96c6\u5408\u306e\u548c\u96c6\u5408\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ad\u30fc\u304c\u540d\u524d\u3067\u30ad\u30fc\u304c\u8272\u3067\u3042\u308b 2 \u3064\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u548c\u96c6\u5408\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<code>SUNION names colors<\/code><\/li>\n\n\n\n<li>\u5dee\u5206\u6f14\u7b97\uff1aSDIFF \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u8907\u6570\u30bb\u30c3\u30c8\u306e\u5dee\u5206\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ad\u30fc\u304c\u540d\u524d\u3067\u30ad\u30fc\u304c\u8272\u3067\u3042\u308b 2 \u3064\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u9055\u3044\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<code>SDIFF names colors<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>\u4e0a\u8a18\u306f\u3001\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u9078\u629e\u3057\u3066\u4f7f\u7528\u3067\u304d\u308b\u3001\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b Redis \u30b3\u30ec\u30af\u30b7\u30e7\u30f3 \u30b3\u30de\u30f3\u30c9\u306e\u4e00\u90e8\u3067\u3059\u3002Set \u306f\u3001Redis \u306e\u975e\u5e38\u306b\u4fbf\u5229\u306a\u30c7\u30fc\u30bf\u69cb\u9020\u306e 1 \u3064\u3068\u3057\u3066\u3001\u9ad8\u3044\u67d4\u8edf\u6027\u3068\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u3092\u5099\u3048\u3066\u304a\u308a\u3001\u91cd\u307f\u4ed8\u3051\u30e9\u30f3\u30ad\u30f3\u30b0\u3001\u76f8\u4e92\u306e\u53cb\u4eba\u306a\u3069\u3001\u3044\u304f\u3064\u304b\u306e\u4e00\u822c\u7684\u306a\u30c7\u30fc\u30bf\u69cb\u9020\u3068\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u5b9f\u88c5\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis \u306e\u30c7\u30fc\u30bf\u578b\u306e\u9806\u5e8f\u4ed8\u304d\u30b3\u30ec\u30af\u30b7\u30e7\u30f3 (Sorted Set) \u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u3067\u306f\u3001\u9806\u5e8f\u4ed8\u304d\u30bb\u30c3\u30c8 (Sorted Set) \u306f\u9806\u5e8f\u4ed8\u3051\u3089\u308c\u305f\u30c7\u30fc\u30bf\u69cb\u9020\u3067\u3042\u308a\u3001\u5404\u8981\u7d20\u306b\u306f\u30b9\u30b3\u30a2 (\u30b9\u30b3\u30a2) \u304c\u3042\u308a\u3001\u30b9\u30b3\u30a2\u306e\u5927\u304d\u3055\u306b\u5f93\u3063\u3066\u8981\u7d20\u3092\u4e26\u3079\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u9806\u5e8f\u4ed8\u304d\u30bb\u30c3\u30c8\u306e\u5404\u8981\u7d20\u306f\u4e00\u610f\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u30b9\u30b3\u30a2\u306f\u7e70\u308a\u8fd4\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Redis \u3067\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u4e26\u3079\u66ff\u3048\u3089\u308c\u305f\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u64cd\u4f5c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u8981\u7d20\u306e\u8ffd\u52a0: ZADD \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u9806\u5e8f\u4ed8\u304d\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b 1 \u3064\u4ee5\u4e0a\u306e\u8981\u7d20\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30b9\u30b3\u30a2\u304c 80 \u306e\u8981\u7d20 Tom \u3092\u3001students \u3092\u30ad\u30fc\u3068\u3059\u308b\u9806\u5e8f\u4ed8\u304d\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002 Copy code<code>ZADD students 80 Tom&nbsp;<\/code>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306e\u69cb\u6587\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<code>ZADD key score member [score member ...]<\/code><\/li>\n\n\n\n<li>\u8981\u7d20\u306e\u53d6\u5f97: ZRANGE \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u9806\u5e8f\u4ed8\u304d\u30bb\u30c3\u30c8\u5185\u306e\u6307\u5b9a\u3055\u308c\u305f\u9593\u9694\u3067\u8981\u7d20\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001students \u3092\u30ad\u30fc\u3068\u3059\u308b\u9806\u5e8f\u4ed8\u3051\u3089\u308c\u305f\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u4e0a\u4f4d 3 \u3064\u306e\u8981\u7d20\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<code>ZRANGE students 0 2&nbsp;<\/code>\u3053\u306e\u3046\u3061\u30010 \u306f\u9593\u9694\u306e\u958b\u59cb\u4f4d\u7f6e\u3092\u793a\u3057\u30012 \u306f\u9593\u9694\u306e\u7d42\u4e86\u4f4d\u7f6e\u3092\u793a\u3057\u307e\u3059\u3002\u6307\u5b9a\u3057\u305f\u30b9\u30b3\u30a2\u7bc4\u56f2\u5185\u306e\u8981\u7d20\u3092\u53d6\u5f97\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306f\u3001ZRANGEBYSCORE \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u8981\u7d20\u306e\u30e9\u30f3\u30af\u3068\u30b9\u30b3\u30a2\u3092\u53d6\u5f97\u3059\u308b: ZRANK \u30b3\u30de\u30f3\u30c9\u3068 ZSCORE \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u9806\u5e8f\u4ed8\u304d\u30bb\u30c3\u30c8\u5185\u306e\u6307\u5b9a\u3055\u308c\u305f\u8981\u7d20\u306e\u30e9\u30f3\u30af\u3068\u30b9\u30b3\u30a2\u3092\u305d\u308c\u305e\u308c\u53d6\u5f97\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ad\u30fc\u304c\u5b66\u751f\u3067\u3042\u308b\u4e26\u3079\u66ff\u3048\u3089\u308c\u305f\u30bb\u30c3\u30c8\u3067\u30c8\u30e0\u306e\u30e9\u30f3\u30af\u3068\u30b9\u30b3\u30a2\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<code>ZRANK students Tom ZSCORE students Tom<\/code><\/li>\n\n\n\n<li>\u8981\u7d20\u306e\u524a\u9664: ZREM \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u9806\u5e8f\u4ed8\u3051\u3089\u308c\u305f\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u304b\u3089 1 \u3064\u307e\u305f\u306f\u8907\u6570\u306e\u8981\u7d20\u3092\u524a\u9664\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ad\u30fc\u304c students \u3067\u3042\u308b\u30bd\u30fc\u30c8\u6e08\u307f\u30bb\u30c3\u30c8\u304b\u3089 Tom \u3092\u524a\u9664\u3057\u307e\u3059\u3002<code>ZREM students Tom<\/code><\/li>\n\n\n\n<li>\u9806\u5e8f\u4ed8\u304d\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u9577\u3055\u3092\u53d6\u5f97\u3059\u308b: ZCARD \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u9806\u5e8f\u4ed8\u304d\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u9577\u3055\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ad\u30fc\u304c\u5b66\u751f\u3067\u3042\u308b\u4e26\u3079\u66ff\u3048\u3089\u308c\u305f\u30bb\u30c3\u30c8\u306e\u9577\u3055\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<code>ZCARD students<\/code><\/li>\n\n\n\n<li>\u30b9\u30b3\u30a2\u7bc4\u56f2\u306b\u5f93\u3063\u3066\u8981\u7d20\u3092\u53d6\u5f97\u3059\u308b: ZRANGEBYSCORE \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30bd\u30fc\u30c8\u3055\u308c\u305f\u30bb\u30c3\u30c8\u5185\u306e\u6307\u5b9a\u3055\u308c\u305f\u30b9\u30b3\u30a2\u7bc4\u56f2\u5185\u306e\u8981\u7d20\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001students \u3092\u30ad\u30fc\u3068\u3059\u308b\u4e26\u3079\u66ff\u3048\u3089\u308c\u305f\u30bb\u30c3\u30c8\u3067\u30b9\u30b3\u30a2\u304c 80 \uff5e 100 \u306e\u8981\u7d20\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<code>ZRANGEBYSCORE students 80 100<\/code><\/li>\n\n\n\n<li>\u6307\u5b9a\u3055\u308c\u305f\u8981\u7d20\u306e\u5206\u6570\u7bc4\u56f2\u5185\u306e\u8981\u7d20\u6570\u3092\u53d6\u5f97\u3059\u308b: ZCOUNT \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30bd\u30fc\u30c8\u3055\u308c\u305f\u30bb\u30c3\u30c8\u5185\u306e\u6307\u5b9a\u3055\u308c\u305f\u8981\u7d20\u306e\u5206\u6570\u7bc4\u56f2\u5185\u306e\u8981\u7d20\u6570\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001students \u3092\u30ad\u30fc\u3068\u3059\u308b\u4e26\u3079\u66ff\u3048\u3089\u308c\u305f\u30bb\u30c3\u30c8\u3067\u3001\u30b9\u30b3\u30a2\u304c 80 \uff5e 100 \u306e\u8981\u7d20\u306e\u6570\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<code>ZCOUNT students 80 100<\/code><\/li>\n<\/ol>\n\n\n\n<p>\u4e0a\u8a18\u306f\u3001\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u9078\u629e\u3057\u3066\u4f7f\u7528\u3067\u304d\u308b\u3001\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b Redis \u306e\u9806\u5e8f\u4ed8\u304d\u30b3\u30ec\u30af\u30b7\u30e7\u30f3 \u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002Redis \u306e\u975e\u5e38\u306b\u4fbf\u5229\u306a\u30c7\u30fc\u30bf\u69cb\u9020\u306e 1 \u3064\u3068\u3057\u3066\u3001\u9806\u5e8f\u4ed8\u3051\u3089\u308c\u305f\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3001\u30ea\u30fc\u30c0\u30fc\u30dc\u30fc\u30c9\u3084\u4eba\u6c17\u306e\u3042\u308b\u88fd\u54c1\u30ea\u30b9\u30c8\u306a\u3069\u306e\u6a5f\u80fd\u3092\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis \u306e\u30c7\u30fc\u30bf\u578b Hash \u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u3067\u306f\u3001\u30cf\u30c3\u30b7\u30e5 (\u30cf\u30c3\u30b7\u30e5) \u306f\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3067\u3042\u308a\u3001\u5404\u30ad\u30fc\u306f\u5024\u306b\u5bfe\u5fdc\u3057\u307e\u3059\u3002\u6587\u5b57\u5217\u3068\u540c\u69d8\u306b\u3001\u30cf\u30c3\u30b7\u30e5\u3082\u30c7\u30fc\u30bf\u3092\u683c\u7d0d\u304a\u3088\u3073\u8aad\u307f\u53d6\u308b\u305f\u3081\u306e\u30c7\u30fc\u30bf\u578b\u3067\u3059\u304c\u3001\u30cf\u30c3\u30b7\u30e5\u306f\u6587\u5b57\u5217\u3088\u308a\u3082\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306a\u3069\u306e\u69cb\u9020\u5316\u30c7\u30fc\u30bf\u306e\u683c\u7d0d\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>Redis \u3067\u306f\u3001\u30cf\u30c3\u30b7\u30e5\u306f\u6b21\u306e\u65b9\u6cd5\u3067\u64cd\u4f5c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u3092\u8ffd\u52a0\u3059\u308b: HSET \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u3092\u30cf\u30c3\u30b7\u30e5\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ad\u30fc\u304c\u5b66\u751f\u3001\u30ad\u30fc\u304c\u540d\u524d\u3001\u5024\u304c\u30c8\u30e0\u3067\u3042\u308b\u30cf\u30c3\u30b7\u30e5\u306b\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002 \u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc \u3053\u306e\u30b3\u30de\u30f3\u30c9\u306e\u69cb\u6587\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059<code>HSET student name Tom&nbsp;<\/code>\u3002<code>HSET key field value<\/code><\/li>\n\n\n\n<li>\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u3092\u53d6\u5f97\u3059\u308b: HGET \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30cf\u30c3\u30b7\u30e5\u5185\u306e\u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u306b\u5bfe\u5fdc\u3059\u308b\u5024\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001student \u3092\u30ad\u30fc\u3068\u3059\u308b\u30cf\u30c3\u30b7\u30e5\u306e name \u3092\u30ad\u30fc\u3068\u3059\u308b\u5024\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<code>HGET student name<\/code><\/li>\n\n\n\n<li>\u3059\u3079\u3066\u306e\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u3092\u53d6\u5f97\u3059\u308b: HGETALL \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30cf\u30c3\u30b7\u30e5\u5185\u306e\u3059\u3079\u3066\u306e\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ad\u30fc\u304c\u5b66\u751f\u3067\u3042\u308b\u30cf\u30c3\u30b7\u30e5\u5185\u306e\u3059\u3079\u3066\u306e\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<code>HGETALL student<\/code><\/li>\n\n\n\n<li>\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u306e\u524a\u9664: HDEL \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30cf\u30c3\u30b7\u30e5\u304b\u3089 1 \u3064\u4ee5\u4e0a\u306e\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u3092\u524a\u9664\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ad\u30fc\u304c\u5b66\u751f\u3067\u3042\u308b\u30cf\u30c3\u30b7\u30e5\u304b\u3089\u3001\u30ad\u30fc\u304c\u540d\u524d\u3067\u3042\u308b\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u3092\u524a\u9664\u3057\u307e\u3059\u3002<code>HDEL student name<\/code><\/li>\n\n\n\n<li>\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u306e\u6570\u3092\u53d6\u5f97\u3059\u308b: HLEN \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30cf\u30c3\u30b7\u30e5\u5185\u306e\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u306e\u6570\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30ad\u30fc\u304c\u5b66\u751f\u3067\u3042\u308b\u30cf\u30c3\u30b7\u30e5\u5185\u306e\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u306e\u6570\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<code>HLEN student<\/code><\/li>\n\n\n\n<li>\u30ad\u30fc\u304c\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u5225\u3059\u308b: HEXISTS \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u304c\u30cf\u30c3\u30b7\u30e5\u306b\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u5225\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001name \u3068\u3044\u3046\u540d\u524d\u306e\u30ad\u30fc\u304c\u3001\u30ad\u30fc\u304c student \u3067\u3042\u308b\u30cf\u30c3\u30b7\u30e5\u306b\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3057\u307e\u3059\u3002<code>HEXISTS student name<\/code><\/li>\n<\/ol>\n\n\n\n<p>\u4e0a\u8a18\u306f\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b Redis \u30cf\u30c3\u30b7\u30e5 \u30b3\u30de\u30f3\u30c9\u306e\u4e00\u90e8\u3067\u3042\u308a\u3001\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u9078\u629e\u3057\u3066\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002Redis \u306e\u975e\u5e38\u306b\u4fbf\u5229\u306a\u30c7\u30fc\u30bf\u69cb\u9020\u306e 1 \u3064\u3068\u3057\u3066\u3001\u30cf\u30c3\u30b7\u30e5\u3092\u4f7f\u7528\u3057\u3066\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3001\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u306a\u3069\u306e\u69cb\u9020\u5316\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u304a\u3088\u3073\u64cd\u4f5c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis\u30b3\u30de\u30f3\u30c9\u306e\u5171\u901a\u30b3\u30de\u30f3\u30c9\u306e\u7d39\u4ecb\u3092\u8a73\u3057\u304f\u6559\u3048\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u306f\u3001\u30c7\u30fc\u30bf\u3092\u64cd\u4f5c\u304a\u3088\u3073\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u8c4a\u5bcc\u306a\u30b3\u30de\u30f3\u30c9\u3092\u63d0\u4f9b\u3059\u308b\u6a5f\u80fd\u8c4a\u5bcc\u306a\u30ad\u30fc\u5024\u30b9\u30c8\u30ec\u30fc\u30b8 \u30b7\u30b9\u30c6\u30e0\u3067\u3059\u3002\u4ee5\u4e0b\u306f\u3001\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b Redis \u30b3\u30de\u30f3\u30c9\u306e\u4e00\u90e8\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>KEY\u64cd\u4f5c\uff1a\n<ul class=\"wp-block-list\">\n<li>KEYS \u30d1\u30bf\u30fc\u30f3: \u6307\u5b9a\u3055\u308c\u305f\u30d1\u30bf\u30fc\u30f3\u306b\u4e00\u81f4\u3059\u308b\u3059\u3079\u3066\u306e\u30ad\u30fc\u540d\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>DEL key [key &#8230;]: \u6307\u5b9a\u3057\u305f\u30ad\u30fc\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>EXISTS \u30ad\u30fc: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u304c\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>TYPE \u30ad\u30fc: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u306b\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u5024\u306e\u30c7\u30fc\u30bf\u578b\u3092\u8fd4\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>TTL \u30ad\u30fc: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u306e\u6709\u52b9\u671f\u9650\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>PERSIST \u30ad\u30fc: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u306e\u6709\u52b9\u671f\u9650\u3092\u524a\u9664\u3057\u3066\u3001\u6c38\u7d9a\u7684\u306b\u6709\u52b9\u306b\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>RENAME oldkey newkey: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u306e\u540d\u524d\u3092\u65b0\u3057\u3044\u540d\u524d\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u6587\u5b57\u5217\u64cd\u4f5c:\n<ul class=\"wp-block-list\">\n<li>SET key value [EX seconds] [PX milliseconds] [NX|XX]: \u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc EX \u3068 PX \u306f\u3001\u305d\u308c\u305e\u308c\u6709\u52b9\u671f\u9650\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002NX \u306f\u3001\u30ad\u30fc\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306b\u306e\u307f\u8a2d\u5b9a\u3067\u304d\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002 \u3001\u304a\u3088\u3073 XX \u306f\u3001\u8a2d\u5b9a\u3059\u308b\u30ad\u30fc\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u306e\u307f\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>GET key: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u306e\u5024\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>INCR \u30ad\u30fc: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u306e\u5024\u3092 1 \u5897\u3084\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>DECR \u30ad\u30fc: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u306e\u5024\u3092 1 \u6e1b\u3089\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u30ea\u30b9\u30c8\u64cd\u4f5c:\n<ul class=\"wp-block-list\">\n<li>LPUSH \u30ad\u30fc\u5024 [\u5024 &#8230;]: \u30ea\u30b9\u30c8\u306e\u5148\u982d\u306b 1 \u3064\u4ee5\u4e0a\u306e\u8981\u7d20\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>RPUSH \u30ad\u30fc\u5024 [\u5024 &#8230;]: \u30ea\u30b9\u30c8\u306e\u672b\u5c3e\u306b 1 \u3064\u4ee5\u4e0a\u306e\u8981\u7d20\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>LPOP \u30ad\u30fc: \u30ea\u30b9\u30c8\u306e\u5148\u982d\u304b\u3089\u8981\u7d20\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>RPOP \u30ad\u30fc: \u30ea\u30b9\u30c8\u306e\u672b\u5c3e\u304b\u3089\u8981\u7d20\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>LINDEX \u30ad\u30fc \u30a4\u30f3\u30c7\u30c3\u30af\u30b9: \u6307\u5b9a\u3055\u308c\u305f\u4f4d\u7f6e\u306b\u3042\u308b\u8981\u7d20\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>LLEN \u30ad\u30fc: \u30ea\u30b9\u30c8\u306e\u9577\u3055\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u96c6\u5408\u64cd\u4f5c\uff1a\n<ul class=\"wp-block-list\">\n<li>SADD key member [member &#8230;]: \u30bb\u30c3\u30c8\u306b 1 \u3064\u4ee5\u4e0a\u306e\u8981\u7d20\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>SMEMBERS \u30ad\u30fc: \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u5185\u306e\u3059\u3079\u3066\u306e\u8981\u7d20\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>SISMEMBER \u4e3b\u8981\u30e1\u30f3\u30d0\u30fc: \u6307\u5b9a\u3055\u308c\u305f\u8981\u7d20\u304c\u30bb\u30c3\u30c8\u5185\u306b\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u5225\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>SCARD \u30ad\u30fc: \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u9577\u3055\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>SINTER key [key &#8230;]: \u8907\u6570\u306e\u30bb\u30c3\u30c8\u306e\u4ea4\u70b9\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>SUNION key [key &#8230;]: \u8907\u6570\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u548c\u96c6\u5408\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>SDIFF key [key &#8230;]: \u8907\u6570\u30bb\u30c3\u30c8\u306e\u5dee\u5206\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u9806\u5e8f\u96c6\u5408\u6f14\u7b97:\n<ul class=\"wp-block-list\">\n<li>ZADD \u30ad\u30fc \u30b9\u30b3\u30a2 \u30e1\u30f3\u30d0\u30fc [\u30b9\u30b3\u30a2 \u30e1\u30f3\u30d0\u30fc &#8230;]: \u4e26\u3079\u66ff\u3048\u3089\u308c\u305f\u30bb\u30c3\u30c8\u306b 1 \u3064\u4ee5\u4e0a\u306e\u8981\u7d20\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>ZRANGE \u30ad\u30fc \u30b9\u30bf\u30fc\u30c8 \u30b9\u30c8\u30c3\u30d7 [WITHSCORES]: \u9806\u5e8f\u4ed8\u304d\u30bb\u30c3\u30c8\u3067\u6307\u5b9a\u3055\u308c\u305f\u9593\u9694\u306e\u8981\u7d20\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>ZRANK \u30ad\u30fc \u30e1\u30f3\u30d0\u30fc: \u9806\u5e8f\u4ed8\u304d\u30bb\u30c3\u30c8\u5185\u306e\u6307\u5b9a\u3055\u308c\u305f\u8981\u7d20\u306e\u30e9\u30f3\u30af\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>ZREM key member [member &#8230;]: \u30bd\u30fc\u30c8\u6e08\u307f\u30bb\u30c3\u30c8\u304b\u3089 1 \u3064\u4ee5\u4e0a\u306e\u8981\u7d20\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u30cf\u30c3\u30b7\u30e5\u64cd\u4f5c:\n<ul class=\"wp-block-list\">\n<li>HSET \u30ad\u30fc \u30d5\u30a3\u30fc\u30eb\u30c9\u5024: \u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u3092\u30cf\u30c3\u30b7\u30e5\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>HGET \u30ad\u30fc \u30d5\u30a3\u30fc\u30eb\u30c9: \u30cf\u30c3\u30b7\u30e5\u3067\u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u306e\u5024\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>HGETALL \u30ad\u30fc: \u30cf\u30c3\u30b7\u30e5\u5185\u306e\u3059\u3079\u3066\u306e\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>HDEL \u30ad\u30fc \u30d5\u30a3\u30fc\u30eb\u30c9 [\u30d5\u30a3\u30fc\u30eb\u30c9 &#8230;]: \u30cf\u30c3\u30b7\u30e5\u304b\u3089 1 \u3064\u4ee5\u4e0a\u306e\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>\u4e0a\u8a18\u306f\u3001\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b Redis \u30b3\u30de\u30f3\u30c9\u306e\u4e00\u90e8\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>\u7d9a\u3051\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>\u5b9f\u969b\u306b\u9078\u629e\u3057\u3066\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4e0a\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u306b\u52a0\u3048\u3066\u3001Redis \u306f\u6b21\u306e\u3088\u3046\u306a\u4ed6\u306e\u591a\u304f\u306e\u4fbf\u5229\u306a\u30b3\u30de\u30f3\u30c9\u3082\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"7\">\n<li>\u30d1\u30d6\u30ea\u30c3\u30b7\u30e5\u3068\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6:\n<ul class=\"wp-block-list\">\n<li>PUBLISH \u30c1\u30e3\u30cd\u30eb \u30e1\u30c3\u30bb\u30fc\u30b8: \u6307\u5b9a\u3055\u308c\u305f\u30c1\u30e3\u30cd\u30eb\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>SUBSCRIBE channel [channel &#8230;]: 1 \u3064\u307e\u305f\u306f\u8907\u6570\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u3092\u8cfc\u8aad\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u53d6\u5f15\u51e6\u7406:\n<ul class=\"wp-block-list\">\n<li>MULTI: \u65b0\u3057\u3044\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u958b\u59cb\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>EXEC: \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u5185\u306e\u3059\u3079\u3066\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>DISCARD: \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u5185\u306e\u3059\u3079\u3066\u306e\u30b3\u30de\u30f3\u30c9\u3092\u7834\u68c4\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u4ed6\u306e\uff1a\n<ul class=\"wp-block-list\">\n<li>ECHO \u30e1\u30c3\u30bb\u30fc\u30b8: \u6307\u5b9a\u3055\u308c\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8fd4\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>INFO [\u30bb\u30af\u30b7\u30e7\u30f3]: Redis \u30b5\u30fc\u30d0\u30fc\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>FLUSHALL: \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306e\u3059\u3079\u3066\u306e\u30ad\u30fc\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>SELECT \u30a4\u30f3\u30c7\u30c3\u30af\u30b9: \u6307\u5b9a\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5207\u308a\u66ff\u3048\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>\u4e0a\u8a18\u306f\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b Redis \u30b3\u30de\u30f3\u30c9\u306e\u4e00\u90e8\u3067\u3042\u308a\u3001\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u9078\u629e\u3057\u3066\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002Redis \u306b\u306f\u3001\u30c7\u30fc\u30bf\u3092\u64cd\u4f5c\u304a\u3088\u3073\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u30b3\u30de\u30f3\u30c9\u304c\u8c4a\u5bcc\u306b\u7528\u610f\u3055\u308c\u3066\u304a\u308a\u3001\u958b\u767a\u8005\u306f\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u9069\u5207\u306a\u30b3\u30de\u30f3\u30c9\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis\u30b3\u30de\u30f3\u30c9\u6587\u5b57\u5217\u30b3\u30de\u30f3\u30c9\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u3067\u306f\u3001\u6587\u5b57\u5217\u306f\u6700\u3082\u57fa\u672c\u7684\u306a\u30c7\u30fc\u30bf\u578b\u306e 1 \u3064\u3067\u3042\u308a\u3001\u4e00\u9023\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u6587\u5b57\u5217\u3092\u64cd\u4f5c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b Redis \u6587\u5b57\u5217\u30b3\u30de\u30f3\u30c9\u306e\u4e00\u90e8\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>SET: \u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>SET key value: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u306e\u5024\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>SETEX key seconds value: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u306e\u5024\u3092\u8a2d\u5b9a\u3057\u3001\u6709\u52b9\u671f\u9650\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>SETNX \u30ad\u30fc\u5024: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306b\u306e\u307f\u3001\u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u306e\u5024\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>GET: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u306e\u5024\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>GET key: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u306e\u5024\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>INCR\/DECR: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u306e\u5024\u3092\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u307e\u305f\u306f\u30c7\u30af\u30ea\u30e1\u30f3\u30c8\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>INCR \u30ad\u30fc: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u306e\u5024\u3092 1 \u5897\u3084\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>DECR \u30ad\u30fc: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u306e\u5024\u3092 1 \u6e1b\u3089\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>INCRBY \u30ad\u30fc\u306e\u5897\u5206: \u6307\u5b9a\u3057\u305f\u30ad\u30fc\u306e\u5024\u3092\u6307\u5b9a\u3057\u305f\u91cf\u3060\u3051\u5897\u3084\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>DECRBY key decrement: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u306e\u5024\u3092\u6307\u5b9a\u3055\u308c\u305f\u91cf\u3060\u3051\u6e1b\u3089\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>APPEND: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u306e\u5024\u306e\u672b\u5c3e\u306b\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>APPEND \u30ad\u30fc\u5024: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u306e\u5024\u306e\u672b\u5c3e\u306b\u3001\u6307\u5b9a\u3055\u308c\u305f\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>STRLEN: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u5024\u306e\u9577\u3055\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>STRLEN \u30ad\u30fc: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u5024\u306e\u9577\u3055\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>MGET\/MSET: \u8907\u6570\u306e\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u3092\u307e\u3068\u3081\u3066\u53d6\u5f97\/\u8a2d\u5b9a\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>MGET key [key &#8230;]: \u6307\u5b9a\u3057\u305f\u8907\u6570\u306e\u30ad\u30fc\u306e\u5024\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>MSET key value [key value \u2026]: \u8907\u6570\u306e\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>GETSET: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u306e\u65b0\u3057\u3044\u5024\u3092\u8a2d\u5b9a\u3057\u3001\u5143\u306e\u5024\u3092\u8fd4\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>GETSET \u30ad\u30fc\u5024: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u306e\u65b0\u3057\u3044\u5024\u3092\u8a2d\u5b9a\u3057\u3001\u5143\u306e\u5024\u3092\u8fd4\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>STRALGO: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u5024\u306b\u5bfe\u3057\u3066\u3055\u307e\u3056\u307e\u306a\u6587\u5b57\u5217\u64cd\u4f5c\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>STRALGO LCS key [key &#8230;]: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u5024\u306e\u9593\u3067\u6700\u3082\u9577\u3044\u5171\u901a\u90e8\u5206\u6587\u5b57\u5217\u3092\u898b\u3064\u3051\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>\u4e0a\u8a18\u306f\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b Redis \u6587\u5b57\u5217\u30b3\u30de\u30f3\u30c9\u306e\u4e00\u90e8\u3067\u3042\u308a\u3001\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u9078\u629e\u3057\u3066\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002Redis \u306b\u306f\u8c4a\u5bcc\u306a\u6587\u5b57\u5217\u30b3\u30de\u30f3\u30c9\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u958b\u767a\u8005\u306f\u6587\u5b57\u5217\u578b\u306e\u30c7\u30fc\u30bf\u3092\u7c21\u5358\u306b\u64cd\u4f5c\u304a\u3088\u3073\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis\u30b3\u30de\u30f3\u30c9\u4e00\u89a7\u30b3\u30de\u30f3\u30c9\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u6559\u3048\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u3067\u306f\u3001\u30ea\u30b9\u30c8\u306f\u57fa\u672c\u7684\u306a\u30c7\u30fc\u30bf\u578b\u306e 1 \u3064\u3067\u3042\u308a\u3001\u4e00\u9023\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30ea\u30b9\u30c8\u3092\u64cd\u4f5c\u3067\u304d\u307e\u3059\u3002\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b\u3044\u304f\u3064\u304b\u306e Redis \u30ea\u30b9\u30c8 \u30b3\u30de\u30f3\u30c9\u3092\u6b21\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>LPUSH\/RPUSH: \u30ea\u30b9\u30c8\u306e\u5148\u982d\u307e\u305f\u306f\u672b\u5c3e\u306b 1 \u3064\u4ee5\u4e0a\u306e\u8981\u7d20\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>LPUSH \u30ad\u30fc\u5024 [\u5024 &#8230;]: \u30ea\u30b9\u30c8\u306e\u5148\u982d\u306b 1 \u3064\u4ee5\u4e0a\u306e\u8981\u7d20\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>RPUSH \u30ad\u30fc\u5024 [\u5024 &#8230;]: \u30ea\u30b9\u30c8\u306e\u672b\u5c3e\u306b 1 \u3064\u4ee5\u4e0a\u306e\u8981\u7d20\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>LPOP\/RPOP: \u30ea\u30b9\u30c8\u306e\u5148\u982d\u307e\u305f\u306f\u672b\u5c3e\u304b\u3089\u8981\u7d20\u3092\u524a\u9664\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>LPOP \u30ad\u30fc: \u30ea\u30b9\u30c8\u306e\u5148\u982d\u304b\u3089\u8981\u7d20\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>RPOP \u30ad\u30fc: \u30ea\u30b9\u30c8\u306e\u672b\u5c3e\u304b\u3089\u8981\u7d20\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>LINDEX: \u6307\u5b9a\u3055\u308c\u305f\u4f4d\u7f6e\u306e\u8981\u7d20\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>LINDEX \u30ad\u30fc \u30a4\u30f3\u30c7\u30c3\u30af\u30b9: \u6307\u5b9a\u3055\u308c\u305f\u4f4d\u7f6e\u306b\u3042\u308b\u8981\u7d20\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>LLEN: \u30ea\u30b9\u30c8\u306e\u9577\u3055\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>LLEN \u30ad\u30fc: \u30ea\u30b9\u30c8\u306e\u9577\u3055\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>LRANGE: \u6307\u5b9a\u3057\u305f\u7bc4\u56f2\u306e\u8981\u7d20\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>LRANGE \u30ad\u30fc \u30b9\u30bf\u30fc\u30c8 \u30b9\u30c8\u30c3\u30d7: \u30ea\u30b9\u30c8\u5185\u306e\u6307\u5b9a\u3055\u308c\u305f\u7bc4\u56f2\u5185\u306e\u8981\u7d20\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>LREM: \u6307\u5b9a\u3055\u308c\u305f\u8981\u7d20\u3092\u30ea\u30b9\u30c8\u304b\u3089\u524a\u9664\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>LREM \u30ad\u30fc \u30ab\u30a6\u30f3\u30c8\u5024: \u6307\u5b9a\u3055\u308c\u305f\u6570\u306e\u6307\u5b9a\u3055\u308c\u305f\u8981\u7d20\u3092\u30ea\u30b9\u30c8\u304b\u3089\u524a\u9664\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>LTRIM: \u30ea\u30b9\u30c8\u3092\u30c8\u30ea\u30e0\u3057\u3001\u6307\u5b9a\u3055\u308c\u305f\u7bc4\u56f2\u5185\u306e\u8981\u7d20\u306e\u307f\u3092\u4fdd\u6301\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>LTRIM \u30ad\u30fc \u30b9\u30bf\u30fc\u30c8 \u30b9\u30c8\u30c3\u30d7: \u6307\u5b9a\u3057\u305f\u7bc4\u56f2\u5185\u306e\u8981\u7d20\u306e\u307f\u3092\u4fdd\u6301\u3057\u3001\u305d\u308c\u4ee5\u5916\u306e\u8981\u7d20\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>BLPOP\/BRPOP: \u30ea\u30b9\u30c8\u306e\u5148\u982d\u8981\u7d20\u307e\u305f\u306f\u672b\u5c3e\u8981\u7d20\u3092\u30d6\u30ed\u30c3\u30af\u3057\u3066\u30dd\u30c3\u30d7\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>BLPOP key [key &#8230;] timeout: \u30ea\u30b9\u30c8\u306e\u5148\u982d\u8981\u7d20\u3092\u30d6\u30ed\u30c3\u30af\u3057\u3066\u30dd\u30c3\u30d7\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>BRPOP key [key \u2026] timeout: \u30ea\u30b9\u30c8\u306e\u672b\u5c3e\u8981\u7d20\u3092\u30d6\u30ed\u30c3\u30af\u3057\u3066\u30dd\u30c3\u30d7\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>\u4e0a\u8a18\u306f\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b\u3044\u304f\u3064\u304b\u306e Redis \u30ea\u30b9\u30c8 \u30b3\u30de\u30f3\u30c9\u3067\u3042\u308a\u3001\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u9078\u629e\u3057\u3066\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002Redis \u306b\u306f\u8c4a\u5bcc\u306a\u30ea\u30b9\u30c8 \u30b3\u30de\u30f3\u30c9\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u958b\u767a\u8005\u306f\u30ea\u30b9\u30c8 \u30bf\u30a4\u30d7\u306e\u30c7\u30fc\u30bf\u3092\u7c21\u5358\u306b\u64cd\u4f5c\u304a\u3088\u3073\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis \u30b3\u30de\u30f3\u30c9 set \u30b3\u30de\u30f3\u30c9\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u3067\u306f\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306f\u57fa\u672c\u7684\u306a\u30c7\u30fc\u30bf\u578b\u306e 1 \u3064\u3067\u3042\u308a\u3001\u4e00\u9023\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u64cd\u4f5c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b Redis \u30b3\u30ec\u30af\u30b7\u30e7\u30f3 \u30b3\u30de\u30f3\u30c9\u306e\u4e00\u90e8\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>SADD: 1 \u3064\u307e\u305f\u306f\u8907\u6570\u306e\u8981\u7d20\u3092\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>SADD key member [member &#8230;]: \u30bb\u30c3\u30c8\u306b 1 \u3064\u4ee5\u4e0a\u306e\u8981\u7d20\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>SMEMBERS: \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u5185\u306e\u3059\u3079\u3066\u306e\u8981\u7d20\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>SMEMBERS \u30ad\u30fc: \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u5185\u306e\u3059\u3079\u3066\u306e\u8981\u7d20\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>SISMEMBER: \u6307\u5b9a\u3055\u308c\u305f\u8981\u7d20\u304c\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>SISMEMBER \u4e3b\u8981\u30e1\u30f3\u30d0\u30fc: \u6307\u5b9a\u3055\u308c\u305f\u8981\u7d20\u304c\u30bb\u30c3\u30c8\u5185\u306b\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u5225\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>SCARD: \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u9577\u3055\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>SCARD \u30ad\u30fc: \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u9577\u3055\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>SINTER\/SUNION\/SDIFF: \u8907\u6570\u306e\u30bb\u30c3\u30c8\u306b\u5bfe\u3057\u3066\u4ea4\u5dee\u3001\u7d50\u5408\u3001\u304a\u3088\u3073\u5dee\u5206\u6f14\u7b97\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>SINTER key [key &#8230;]: \u8907\u6570\u306e\u30bb\u30c3\u30c8\u306e\u4ea4\u70b9\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>SUNION key [key &#8230;]: \u8907\u6570\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u548c\u96c6\u5408\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>SDIFF key [key &#8230;]: \u8907\u6570\u30bb\u30c3\u30c8\u306e\u5dee\u5206\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>SREM: \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u304b\u3089 1 \u3064\u4ee5\u4e0a\u306e\u8981\u7d20\u3092\u524a\u9664\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>SREM key member [member &#8230;]: \u30bb\u30c3\u30c8\u304b\u3089 1 \u3064\u4ee5\u4e0a\u306e\u8981\u7d20\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>SPOP: \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u304b\u3089\u8981\u7d20\u3092\u30e9\u30f3\u30c0\u30e0\u306b\u30dd\u30c3\u30d7\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>SPOP \u30ad\u30fc: \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u304b\u3089\u8981\u7d20\u3092\u30e9\u30f3\u30c0\u30e0\u306b\u30dd\u30c3\u30d7\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>\u4e0a\u8a18\u306f\u3001\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u9078\u629e\u3057\u3066\u4f7f\u7528\u3067\u304d\u308b\u3001\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b Redis \u30b3\u30ec\u30af\u30b7\u30e7\u30f3 \u30b3\u30de\u30f3\u30c9\u306e\u4e00\u90e8\u3067\u3059\u3002Redis \u306b\u306f\u8c4a\u5bcc\u306a\u30b3\u30ec\u30af\u30b7\u30e7\u30f3 \u30b3\u30de\u30f3\u30c9\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u958b\u767a\u8005\u306f\u30b3\u30ec\u30af\u30b7\u30e7\u30f3 \u30bf\u30a4\u30d7\u306e\u30c7\u30fc\u30bf\u3092\u7c21\u5358\u306b\u64cd\u4f5c\u304a\u3088\u3073\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis\u30b3\u30de\u30f3\u30c9\u306eordered set\u30b3\u30de\u30f3\u30c9\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u3067\u306f\u3001\u9806\u5e8f\u4ed8\u304d\u30bb\u30c3\u30c8\u306f\u57fa\u672c\u7684\u306a\u30c7\u30fc\u30bf\u578b\u306e 1 \u3064\u3067\u3042\u308a\u3001\u4e00\u9023\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u9806\u5e8f\u4ed8\u304d\u30bb\u30c3\u30c8\u3092\u64cd\u4f5c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b Redis \u306e\u9806\u5e8f\u4ed8\u304d\u30b3\u30ec\u30af\u30b7\u30e7\u30f3 \u30b3\u30de\u30f3\u30c9\u306e\u4e00\u90e8\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>ZADD: \u9806\u5e8f\u4ed8\u304d\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b 1 \u3064\u4ee5\u4e0a\u306e\u8981\u7d20\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>ZADD \u30ad\u30fc \u30b9\u30b3\u30a2 \u30e1\u30f3\u30d0\u30fc [\u30b9\u30b3\u30a2 \u30e1\u30f3\u30d0\u30fc &#8230;]: \u4e26\u3079\u66ff\u3048\u3089\u308c\u305f\u30bb\u30c3\u30c8\u306b 1 \u3064\u4ee5\u4e0a\u306e\u8981\u7d20\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>ZRANGE: \u9806\u5e8f\u4ed8\u3051\u3089\u308c\u305f\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u5185\u306e\u6307\u5b9a\u3055\u308c\u305f\u7bc4\u56f2\u5185\u306e\u8981\u7d20\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>ZRANGE \u30ad\u30fc \u30b9\u30bf\u30fc\u30c8 \u30b9\u30c8\u30c3\u30d7 [WITHSCORES]: \u9806\u5e8f\u96c6\u5408\u5185\u306e\u6307\u5b9a\u3055\u308c\u305f\u9593\u9694\u306e\u8981\u7d20\u3092\u53d6\u5f97\u3057\u307e\u3059.WITHSCORES \u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u8981\u7d20\u3068\u5bfe\u5fdc\u3059\u308b\u30b9\u30b3\u30a2\u3092\u8fd4\u3057\u307e\u3059.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>ZRANK: \u30bd\u30fc\u30c8\u6e08\u307f\u30bb\u30c3\u30c8\u5185\u306e\u6307\u5b9a\u3055\u308c\u305f\u8981\u7d20\u306e\u30e9\u30f3\u30af\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>ZRANK \u30ad\u30fc \u30e1\u30f3\u30d0\u30fc: \u9806\u5e8f\u4ed8\u304d\u30bb\u30c3\u30c8\u5185\u306e\u6307\u5b9a\u3055\u308c\u305f\u8981\u7d20\u306e\u30e9\u30f3\u30af\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>ZREM: \u30bd\u30fc\u30c8\u6e08\u307f\u30bb\u30c3\u30c8\u304b\u3089 1 \u3064\u4ee5\u4e0a\u306e\u8981\u7d20\u3092\u524a\u9664\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>ZREM key member [member &#8230;]: \u30bd\u30fc\u30c8\u6e08\u307f\u30bb\u30c3\u30c8\u304b\u3089 1 \u3064\u4ee5\u4e0a\u306e\u8981\u7d20\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>ZSCORE: \u30bd\u30fc\u30c8\u6e08\u307f\u30bb\u30c3\u30c8\u5185\u306e\u6307\u5b9a\u3055\u308c\u305f\u8981\u7d20\u306e\u30b9\u30b3\u30a2\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>ZSCORE \u4e3b\u8981\u30e1\u30f3\u30d0\u30fc: \u30bd\u30fc\u30c8\u6e08\u307f\u30bb\u30c3\u30c8\u5185\u306e\u6307\u5b9a\u3055\u308c\u305f\u8981\u7d20\u306e\u30b9\u30b3\u30a2\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>ZCOUNT: \u6307\u5b9a\u3055\u308c\u305f\u30b9\u30b3\u30a2\u7bc4\u56f2\u5185\u306e\u4e26\u3079\u66ff\u3048\u3089\u308c\u305f\u30bb\u30c3\u30c8\u5185\u306e\u8981\u7d20\u306e\u6570\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>ZCOUNT key min max: \u30bd\u30fc\u30c8\u3055\u308c\u305f\u30bb\u30c3\u30c8\u5185\u306e\u6307\u5b9a\u3055\u308c\u305f\u30b9\u30b3\u30a2\u7bc4\u56f2\u5185\u306e\u8981\u7d20\u306e\u6570\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>ZRANGEBYSCORE: \u9806\u5e8f\u4ed8\u304d\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3067\u6307\u5b9a\u3055\u308c\u305f\u30b9\u30b3\u30a2\u7bc4\u56f2\u5185\u306e\u8981\u7d20\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>ZRANGEBYSCORE key min max [WITHSCORES]: \u30bd\u30fc\u30c8\u3055\u308c\u305f\u30bb\u30c3\u30c8\u5185\u306e\u6307\u5b9a\u3055\u308c\u305f\u30b9\u30b3\u30a2\u7bc4\u56f2\u5185\u306e\u8981\u7d20\u3092\u53d6\u5f97\u3057\u307e\u3059. WITHSCORES \u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u5834\u5408, \u8981\u7d20\u3068\u5bfe\u5fdc\u3059\u308b\u30b9\u30b3\u30a2\u3092\u8fd4\u3057\u307e\u3059.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>\u4e0a\u8a18\u306f\u3001\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u9078\u629e\u3057\u3066\u4f7f\u7528\u3067\u304d\u308b\u3001\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b Redis \u306e\u9806\u5e8f\u4ed8\u304d\u30b3\u30ec\u30af\u30b7\u30e7\u30f3 \u30b3\u30de\u30f3\u30c9\u3067\u3059\u3002Redis \u306f\u9806\u5e8f\u4ed8\u3051\u3055\u308c\u305f\u30b3\u30ec\u30af\u30b7\u30e7\u30f3 \u30b3\u30de\u30f3\u30c9\u3092\u8c4a\u5bcc\u306b\u63d0\u4f9b\u3059\u308b\u305f\u3081\u3001\u958b\u767a\u8005\u306f\u9806\u5e8f\u4ed8\u3051\u3089\u308c\u305f\u30b3\u30ec\u30af\u30b7\u30e7\u30f3 \u30c7\u30fc\u30bf\u3092\u7c21\u5358\u306b\u64cd\u4f5c\u304a\u3088\u3073\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis\u30b3\u30de\u30f3\u30c9\u306e\u30cf\u30c3\u30b7\u30e5\u30b3\u30de\u30f3\u30c9\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u6559\u3048\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u3067\u306f\u3001\u30cf\u30c3\u30b7\u30e5\u306f\u57fa\u672c\u7684\u306a\u30c7\u30fc\u30bf\u578b\u306e 1 \u3064\u3067\u3042\u308a\u3001\u4e00\u9023\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30cf\u30c3\u30b7\u30e5\u3092\u64cd\u4f5c\u3067\u304d\u307e\u3059\u3002\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b Redis \u30cf\u30c3\u30b7\u30e5 \u30b3\u30de\u30f3\u30c9\u3092\u6b21\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>HSET: \u30cf\u30c3\u30b7\u30e5 \u30c6\u30fc\u30d6\u30eb\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>HSET \u30ad\u30fc \u30d5\u30a3\u30fc\u30eb\u30c9\u5024: \u30cf\u30c3\u30b7\u30e5 \u30c6\u30fc\u30d6\u30eb\u5185\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>HGET: \u30cf\u30c3\u30b7\u30e5 \u30c6\u30fc\u30d6\u30eb\u306e\u6307\u5b9a\u3055\u308c\u305f\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>HGET \u30ad\u30fc \u30d5\u30a3\u30fc\u30eb\u30c9: \u30cf\u30c3\u30b7\u30e5 \u30c6\u30fc\u30d6\u30eb\u306e\u6307\u5b9a\u3055\u308c\u305f\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>HMSET\/HMGET: \u30cf\u30c3\u30b7\u30e5 \u30c6\u30fc\u30d6\u30eb\u306e\u8907\u6570\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024\u3092\u8a2d\u5b9a\/\u53d6\u5f97\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>HMSET \u30ad\u30fc \u30d5\u30a3\u30fc\u30eb\u30c9\u5024 [\u30d5\u30a3\u30fc\u30eb\u30c9\u5024 &#8230;]: \u30cf\u30c3\u30b7\u30e5 \u30c6\u30fc\u30d6\u30eb\u306b\u8907\u6570\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>HMGET key field [field &#8230;]: \u30cf\u30c3\u30b7\u30e5\u30c6\u30fc\u30d6\u30eb\u306e\u8907\u6570\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>HDEL: \u30cf\u30c3\u30b7\u30e5 \u30c6\u30fc\u30d6\u30eb\u304b\u3089 1 \u3064\u4ee5\u4e0a\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u524a\u9664\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>HDEL \u30ad\u30fc \u30d5\u30a3\u30fc\u30eb\u30c9 [\u30d5\u30a3\u30fc\u30eb\u30c9 &#8230;]: \u30cf\u30c3\u30b7\u30e5 \u30c6\u30fc\u30d6\u30eb\u304b\u3089 1 \u3064\u4ee5\u4e0a\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>HEXISTS: \u6307\u5b9a\u3055\u308c\u305f\u30d5\u30a3\u30fc\u30eb\u30c9\u304c\u30cf\u30c3\u30b7\u30e5 \u30c6\u30fc\u30d6\u30eb\u306b\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>HEXISTS \u30ad\u30fc \u30d5\u30a3\u30fc\u30eb\u30c9: \u6307\u5b9a\u3055\u308c\u305f\u30d5\u30a3\u30fc\u30eb\u30c9\u304c\u30cf\u30c3\u30b7\u30e5 \u30c6\u30fc\u30d6\u30eb\u306b\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>HKEYS\/HVALS: \u30cf\u30c3\u30b7\u30e5 \u30c6\u30fc\u30d6\u30eb\u306e\u3059\u3079\u3066\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\/\u5024\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>HKEYS \u30ad\u30fc: \u30cf\u30c3\u30b7\u30e5 \u30c6\u30fc\u30d6\u30eb\u5185\u306e\u3059\u3079\u3066\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>HVALS \u30ad\u30fc: \u30cf\u30c3\u30b7\u30e5 \u30c6\u30fc\u30d6\u30eb\u5185\u306e\u3059\u3079\u3066\u306e\u5024\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>HLEN: \u30cf\u30c3\u30b7\u30e5 \u30c6\u30fc\u30d6\u30eb\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u6570\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>HLEN \u30ad\u30fc: \u30cf\u30c3\u30b7\u30e5 \u30c6\u30fc\u30d6\u30eb\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u6570\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>HINCRBY: \u30cf\u30c3\u30b7\u30e5 \u30c6\u30fc\u30d6\u30eb\u306e\u6307\u5b9a\u3055\u308c\u305f\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024\u3092\u3001\u6307\u5b9a\u3055\u308c\u305f\u91cf\u3060\u3051\u5897\u3084\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>HINCRBY \u30ad\u30fc \u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5897\u5206: \u30cf\u30c3\u30b7\u30e5 \u30c6\u30fc\u30d6\u30eb\u5185\u306e\u6307\u5b9a\u3055\u308c\u305f\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024\u3092\u3001\u6307\u5b9a\u3055\u308c\u305f\u91cf\u3060\u3051\u5897\u3084\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>\u4e0a\u8a18\u306f\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b Redis \u30cf\u30c3\u30b7\u30e5 \u30b3\u30de\u30f3\u30c9\u306e\u4e00\u90e8\u3067\u3042\u308a\u3001\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u9078\u629e\u3057\u3066\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002Redis \u306b\u306f\u8c4a\u5bcc\u306a\u30cf\u30c3\u30b7\u30e5 \u30b3\u30de\u30f3\u30c9\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u958b\u767a\u8005\u306f\u30cf\u30c3\u30b7\u30e5 \u30bf\u30a4\u30d7\u306e\u30c7\u30fc\u30bf\u3092\u7c21\u5358\u306b\u64cd\u4f5c\u304a\u3088\u3073\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis\u306e\u30b3\u30de\u30f3\u30c9\u30ad\u30fc\u7ba1\u7406\u30b3\u30de\u30f3\u30c9\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u6559\u3048\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u3067\u306f\u30ad\u30fc\u7ba1\u7406\u304c\u57fa\u672c\u7684\u306a\u64cd\u4f5c\u3067\u3042\u308a\u3001\u4e00\u9023\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30ad\u30fc\u3092\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b Redis \u30ad\u30fc\u7ba1\u7406\u30b3\u30de\u30f3\u30c9\u3092\u6b21\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>DEL: 1 \u3064\u307e\u305f\u306f\u8907\u6570\u306e\u30ad\u30fc\u3092\u524a\u9664\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>DEL key [key &#8230;]: 1 \u3064\u307e\u305f\u306f\u8907\u6570\u306e\u30ad\u30fc\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>EXISTS: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u304c\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>EXISTS \u30ad\u30fc: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u304c\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>KEYS: \u6307\u5b9a\u3055\u308c\u305f\u30d1\u30bf\u30fc\u30f3\u306b\u4e00\u81f4\u3059\u308b\u30ad\u30fc\u540d\u306e\u30ea\u30b9\u30c8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>KEYS \u30d1\u30bf\u30fc\u30f3: \u6307\u5b9a\u3055\u308c\u305f\u30d1\u30bf\u30fc\u30f3\u306b\u4e00\u81f4\u3059\u308b\u30ad\u30fc\u540d\u306e\u30ea\u30b9\u30c8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>EXPIRE: \u6307\u5b9a\u3057\u305f\u30ad\u30fc\u306e\u6709\u52b9\u671f\u9650\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>EXPIRE key seconds: \u6307\u5b9a\u3057\u305f\u30ad\u30fc\u306e\u6709\u52b9\u671f\u9650\u3092\u79d2\u5358\u4f4d\u3067\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>TTL: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u306e\u6709\u52b9\u671f\u9650\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>TTL \u30ad\u30fc: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u306e\u6709\u52b9\u671f\u9650\u3092\u79d2\u5358\u4f4d\u3067\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>RENAME: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u306e\u540d\u524d\u3092\u5909\u66f4\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>RENAME key newkey: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u306e\u540d\u524d\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>TYPE: \u6307\u5b9a\u3057\u305f\u30ad\u30fc\u306e\u30c7\u30fc\u30bf\u578b\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\n<ul class=\"wp-block-list\">\n<li>TYPE \u30ad\u30fc: \u6307\u5b9a\u3055\u308c\u305f\u30ad\u30fc\u306e\u30c7\u30fc\u30bf\u578b\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u623b\u308a\u5024\u306f\u3001string\u3001list\u3001set\u3001zset\u3001hash \u306e\u3044\u305a\u308c\u304b\u3067\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>\u4e0a\u8a18\u306f\u3001\u5b9f\u969b\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u9078\u629e\u3057\u3066\u4f7f\u7528\u3067\u304d\u308b\u3001\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b Redis \u30ad\u30fc\u7ba1\u7406\u30b3\u30de\u30f3\u30c9\u306e\u4e00\u90e8\u3067\u3059\u3002Redis \u306b\u306f\u8c4a\u5bcc\u306a\u30ad\u30fc\u7ba1\u7406\u30b3\u30de\u30f3\u30c9\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u958b\u767a\u8005\u306f\u30ad\u30fc\u3092\u7c21\u5358\u306b\u64cd\u4f5c\u304a\u3088\u3073\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u5c0e\u5165\u3068Redis\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u63a5\u7d9a\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u306f\u3001Redis \u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3057\u3066\u901a\u4fe1\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u307e\u305f\u306f\u30c4\u30fc\u30eb\u3092\u6307\u3057\u307e\u3059\u3002Redis \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3 \u30c4\u30fc\u30eb\u3001GUI \u30c4\u30fc\u30eb\u3001Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u3067\u3042\u308a\u3001\u3055\u307e\u3056\u307e\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u8a18\u8ff0\u3067\u304d\u307e\u3059\u3002Redis \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u3001Redis \u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u4f7f\u7528\u3057\u3066 Redis \u30b5\u30fc\u30d0\u30fc\u3068\u901a\u4fe1\u3057\u3001\u3055\u307e\u3056\u307e\u306a\u64cd\u4f5c\u3068\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u63a5\u7d9a Redis \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u3001Redis \u30b5\u30fc\u30d0\u30fc\u3068\u306e\u63a5\u7d9a\u3092\u78ba\u7acb\u3059\u308b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u6307\u3057\u307e\u3059\u3002Redis \u30b5\u30fc\u30d0\u30fc\u306f\u3001TCP \u63a5\u7d9a\u3001Unix \u30bd\u30b1\u30c3\u30c8\u63a5\u7d9a\u3001SSL\/TLS \u6697\u53f7\u5316\u63a5\u7d9a\u306a\u3069\u3001\u8907\u6570\u306e\u63a5\u7d9a\u65b9\u6cd5\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002redis-cli \u306a\u3069\u306e Redis \u306e\u7d44\u307f\u8fbc\u307f\u30b3\u30de\u30f3\u30c9 \u30e9\u30a4\u30f3 \u30c4\u30fc\u30eb\u3001Redis Desktop Manager \u306a\u3069\u306e GUI \u30c4\u30fc\u30eb\u3001\u3055\u307e\u3056\u307e\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e Redis \u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u3066\u3001Redis \u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Redis \u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3059\u308b\u3068\u304d\u306f\u3001Redis \u30b5\u30fc\u30d0\u30fc\u306e\u30a2\u30c9\u30ec\u30b9\u3068\u30dd\u30fc\u30c8\u756a\u53f7\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002Redis \u30b5\u30fc\u30d0\u30fc\u304c\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u3001\u6b63\u5e38\u306b\u63a5\u7d9a\u3059\u308b\u306b\u306f\u8a8d\u8a3c\u30d1\u30b9\u30ef\u30fc\u30c9\u3082\u5165\u529b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u63a5\u7d9a\u304c\u6210\u529f\u3057\u305f\u3089\u3001Redis \u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3055\u307e\u3056\u307e\u306a\u30b3\u30de\u30f3\u30c9\u3092\u9001\u4fe1\u3057\u3001\u3055\u307e\u3056\u307e\u306a\u64cd\u4f5c\u3084\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Redis \u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3059\u308b\u3068\u304d\u306f\u3001\u7279\u5b9a\u306e IP \u30a2\u30c9\u30ec\u30b9\u306e\u307f\u3092\u8a31\u53ef\u3059\u308b\u3001SSL\/TLS \u6697\u53f7\u5316\u63a5\u7d9a\u3092\u4f7f\u7528\u3059\u308b\u306a\u3069\u3001Redis \u30b5\u30fc\u30d0\u30fc\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u69cb\u6210\u306b\u5f93\u3046\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u3046\u3057\u306a\u3044\u3068\u3001Redis \u30b5\u30fc\u30d0\u30fc\u306b\u5bfe\u3059\u308b\u60aa\u610f\u306e\u3042\u308b\u653b\u6483\u3084\u30c7\u30fc\u30bf\u6f0f\u6d29\u306a\u3069\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u63a5\u7d9a\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u306f\u3001Redis \u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3057\u3066\u30c7\u30fc\u30bf\u306e\u8aad\u307f\u53d6\u308a\u3001\u66f8\u304d\u8fbc\u307f\u3001\u64cd\u4f5c\u3092\u884c\u3046\u30d7\u30ed\u30b0\u30e9\u30e0\u307e\u305f\u306f\u30c4\u30fc\u30eb\u3092\u6307\u3057\u3001Python\u3001Java\u3001Node.js \u306a\u3069\u306e\u3055\u307e\u3056\u307e\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u8a18\u8ff0\u3067\u304d\u307e\u3059\u3002\u30b3\u30de\u30f3\u30c9 \u30e9\u30a4\u30f3 \u30c4\u30fc\u30eb\u3001\u30b0\u30e9\u30d5\u30a3\u30ab\u30eb \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9 \u30c4\u30fc\u30eb\u3001\u307e\u305f\u306f Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u3067\u3059\u3002Redis \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u3001Redis \u30b5\u30fc\u30d0\u30fc\u3068\u306e\u63a5\u7d9a\u3092\u78ba\u7acb\u3057\u3001Redis \u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30de\u30f3\u30c9\u3092\u9001\u4fe1\u3057\u3001\u5fdc\u7b54\u3092\u53d7\u4fe1\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3001Redis \u30b5\u30fc\u30d0\u30fc\u3068\u901a\u4fe1\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>Redis \u3078\u306e\u63a5\u7d9a\u3068\u306f\u3001Redis \u30b5\u30fc\u30d0\u30fc\u3068\u306e\u63a5\u7d9a\u3092\u78ba\u7acb\u3059\u308b\u3053\u3068\u3092\u6307\u3057\u307e\u3059\u3002Redis \u30b5\u30fc\u30d0\u30fc\u306f\u3001TCP \u63a5\u7d9a\u3001Unix \u30bd\u30b1\u30c3\u30c8\u63a5\u7d9a\u3001SSL\/TLS \u6697\u53f7\u5316\u63a5\u7d9a\u306a\u3069\u3001\u8907\u6570\u306e\u63a5\u7d9a\u65b9\u6cd5\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002Redis \u306b\u63a5\u7d9a\u3059\u308b\u306b\u306f\u3001redis-cli\u3001Redis Desktop Manager \u304a\u3088\u3073\u305d\u306e\u4ed6\u306e GUI \u30c4\u30fc\u30eb\u306a\u3069\u306e Redis \u72ec\u81ea\u306e\u30b3\u30de\u30f3\u30c9 \u30e9\u30a4\u30f3 \u30c4\u30fc\u30eb\u3068\u3001\u3055\u307e\u3056\u307e\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e Redis \u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Redis \u306b\u63a5\u7d9a\u3059\u308b\u3068\u304d\u306f\u3001Redis \u30b5\u30fc\u30d0\u30fc\u306e\u30a2\u30c9\u30ec\u30b9\u3068\u30dd\u30fc\u30c8\u756a\u53f7\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002Redis \u30b5\u30fc\u30d0\u30fc\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u8a8d\u8a3c\u7528\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3082\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u63a5\u7d9a\u304c\u6210\u529f\u3059\u308b\u3068\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f Redis \u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3055\u307e\u3056\u307e\u306a\u30b3\u30de\u30f3\u30c9\u3092\u9001\u4fe1\u3057\u3001\u3055\u307e\u3056\u307e\u306a\u64cd\u4f5c\u3084\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ruby\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>$ redis-cli -h 127.0.0.1 -p 6379\n127.0.0.1:6379&gt; SET key1 value1\nOK\n127.0.0.1:6379&gt; GET key1\n\"value1\"\n<\/code><\/pre>\n\n\n\n<p>Redis \u306b\u63a5\u7d9a\u3059\u308b\u3068\u304d\u306f\u3001\u7279\u5b9a\u306e IP \u30a2\u30c9\u30ec\u30b9\u306e\u307f\u306b\u63a5\u7d9a\u3092\u8a31\u53ef\u3059\u308b\u3001SSL\/TLS \u6697\u53f7\u5316\u63a5\u7d9a\u3092\u4f7f\u7528\u3059\u308b\u306a\u3069\u3001Redis \u30b5\u30fc\u30d0\u30fc\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u69cb\u6210\u306b\u6ce8\u610f\u3092\u6255\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u3046\u3057\u306a\u3044\u3068\u3001Redis \u30b5\u30fc\u30d0\u30fc\u306b\u5bfe\u3059\u308b\u60aa\u610f\u306e\u3042\u308b\u653b\u6483\u3084\u30c7\u30fc\u30bf\u6f0f\u6d29\u306a\u3069\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u63a5\u7d9a Redis \u63a5\u7d9a\u30d7\u30fc\u30eb\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u63a5\u7d9a\u30d7\u30fc\u30eb\u306f\u3001Redis \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u63a5\u7d9a\u7ba1\u7406\u306e\u91cd\u8981\u306a\u90e8\u5206\u3067\u3042\u308a\u3001Redis \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u540c\u6642\u5b9f\u884c\u6027\u3092\u5411\u4e0a\u3055\u305b\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u63a5\u7d9a\u30d7\u30fc\u30eb\u306f\u3001\u4e00\u5b9a\u6570\u306e\u63a5\u7d9a\u3092\u4e8b\u524d\u306b\u78ba\u7acb\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u63a5\u7d9a\u306e\u53d6\u5f97\u3068\u89e3\u653e\u3092\u3088\u308a\u52b9\u7387\u7684\u306b\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u3001\u63a5\u7d9a\u306e\u983b\u7e41\u306a\u4f5c\u6210\u3068\u7834\u68c4\u3092\u56de\u907f\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u63a5\u7d9a\u30d7\u30fc\u30eb\u5185\u306e\u63a5\u7d9a\u306f Redis \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u3088\u3063\u3066\u7dad\u6301\u3055\u308c\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u63a5\u7d9a\u30d7\u30fc\u30eb\u3092\u4ecb\u3057\u3066\u63a5\u7d9a\u306e\u5272\u308a\u5f53\u3066\u3068\u30ea\u30b5\u30a4\u30af\u30eb\u3092\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002\u63a5\u7d9a\u30d7\u30fc\u30eb\u306f\u3001\u3055\u307e\u3056\u307e\u306a\u8ca0\u8377\u3084\u4e26\u884c\u6027\u306e\u4e0b\u3067\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u8981\u4ef6\u3092\u6e80\u305f\u3059\u305f\u3081\u306b\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u63a5\u7d9a\u3092\u52d5\u7684\u306b\u5897\u6e1b\u3067\u304d\u307e\u3059\u3002\u540c\u6642\u5b9f\u884c\u6027\u306e\u9ad8\u3044\u30b7\u30ca\u30ea\u30aa\u3067\u306f\u3001\u63a5\u7d9a\u30d7\u30fc\u30eb\u306b\u3088\u308a\u3001Redis \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u540c\u6642\u51e6\u7406\u80fd\u529b\u3068\u5fdc\u7b54\u901f\u5ea6\u304c\u5927\u5e45\u306b\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>Redis \u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001Jedis\u3001Lettuce\u3001redis-py \u306a\u3069\u3001\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b\u63a5\u7d9a\u30d7\u30fc\u30eb\u306e\u5b9f\u88c5\u3092\u3044\u304f\u3064\u304b\u63d0\u4f9b\u3057\u307e\u3059\u3002\u7279\u5b9a\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u3001\u9069\u5207\u306a\u63a5\u7d9a\u30d7\u30fc\u30eb\u306e\u5b9f\u88c5\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001Java \u30af\u30e9\u30a4\u30a2\u30f3\u30c8 \u30e9\u30a4\u30d6\u30e9\u30ea Jedis \u3092\u4f7f\u7528\u3057\u3066\u63a5\u7d9a\u30d7\u30fc\u30eb\u3092\u5b9f\u88c5\u3059\u308b\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">java\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>JedisPoolConfig poolConfig = new JedisPoolConfig();\npoolConfig.setMaxTotal(10); \/\/ \u8bbe\u7f6e\u6700\u5927\u8fde\u63a5\u6570\npoolConfig.setMaxIdle(5); \/\/ \u8bbe\u7f6e\u6700\u5927\u7a7a\u95f2\u8fde\u63a5\u6570\npoolConfig.setMinIdle(1); \/\/ \u8bbe\u7f6e\u6700\u5c0f\u7a7a\u95f2\u8fde\u63a5\u6570\n\nJedisPool jedisPool = new JedisPool(poolConfig, \"localhost\", 6379);\n\ntry (Jedis jedis = jedisPool.getResource()) {\n    \/\/ \u4f7f\u7528\u8fde\u63a5\u6267\u884cRedis\u64cd\u4f5c\n    jedis.set(\"key\", \"value\");\n    String result = jedis.get(\"key\");\n    System.out.println(result);\n}\n\njedisPool.close(); \/\/ \u5173\u95ed\u8fde\u63a5\u6c60\n<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u3001Jedis \u63a5\u7d9a\u30d7\u30fc\u30eb\u306f JedisPoolConfig \u3092\u4f7f\u7528\u3057\u3066\u3001\u63a5\u7d9a\u30d7\u30fc\u30eb\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc (\u63a5\u7d9a\u306e\u6700\u5927\u6570\u3001\u30a2\u30a4\u30c9\u30eb\u63a5\u7d9a\u306e\u6700\u5927\u6570\u3001\u30a2\u30a4\u30c9\u30eb\u63a5\u7d9a\u306e\u6700\u5c0f\u6570\u306a\u3069) \u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u6b21\u306b\u3001JedisPool \u3092\u4f7f\u7528\u3057\u3066\u63a5\u7d9a\u30d7\u30fc\u30eb\u3092\u4f5c\u6210\u3057\u3001getResource() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u64cd\u4f5c\u7528\u306e\u63a5\u7d9a\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u6700\u5f8c\u306b\u3001close() \u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u3066\u63a5\u7d9a\u30d7\u30fc\u30eb\u3092\u9589\u3058\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u63a5\u7d9a\u30d7\u30fc\u30ea\u30f3\u30b0\u306f\u3001\u7279\u306b\u540c\u6642\u5b9f\u884c\u6027\u306e\u9ad8\u3044\u30b7\u30ca\u30ea\u30aa\u3067\u3001Redis \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u540c\u6642\u5b9f\u884c\u6027\u3092\u5927\u5e45\u306b\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u63a5\u7d9a\u30d7\u30fc\u30eb\u306e\u5b9f\u88c5\u306f\u901a\u5e38\u3001\u30b9\u30ec\u30c3\u30c9\u30bb\u30fc\u30d5\u3067\u3042\u308a\u3001\u3055\u307e\u3056\u307e\u306a\u30cb\u30fc\u30ba\u3092\u6e80\u305f\u3059\u305f\u3081\u306b\u591a\u304f\u306e\u69cb\u6210\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis \u306e\u6c38\u7d9a\u7684\u306a RDB \u306e\u6c38\u7d9a\u6027\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u306f\u3001RDB \u6c38\u7d9a\u6027\u3068 AOF \u6c38\u7d9a\u6027\u306e 2 \u3064\u306e\u6c38\u7d9a\u5316\u65b9\u6cd5\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u4e2d\u3067\u3001RDB \u306e\u6c38\u7d9a\u6027\u3068\u306f\u3001Redis \u5185\u306e\u30c7\u30fc\u30bf\u3092\u30cf\u30fc\u30c9 \u30c7\u30a3\u30b9\u30af\u4e0a\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u306e\u5f62\u5f0f\u3067\u66f8\u304d\u8fbc\u3080\u3053\u3068\u3092\u6307\u3057\u3001\u30c7\u30fc\u30bf\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3001\u79fb\u884c\u3001\u5fa9\u65e7\u306a\u3069\u306e\u30b7\u30ca\u30ea\u30aa\u3067\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001RDB \u30d1\u30fc\u30b7\u30b9\u30bf\u30f3\u30b9\u306e\u8a73\u7d30\u306a\u8aac\u660e\u3067\u3059\u3002<\/p>\n\n\n\n<p>RDB \u6c38\u7d9a\u5316\u306f\u3001\u6307\u5b9a\u3055\u308c\u305f\u6642\u9593\u9593\u9694\u5185\u3067 Redis \u5185\u306e\u30c7\u30fc\u30bf\u306e\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u751f\u6210\u3057\u3001\u305d\u306e\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u30cf\u30fc\u30c9 \u30c7\u30a3\u30b9\u30af\u4e0a\u306e RDB \u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u8fbc\u3080\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u6c38\u7d9a\u5316\u65b9\u6cd5\u3067\u3059\u3002RDB \u30d5\u30a1\u30a4\u30eb\u306f\u3001Redis \u306e\u3059\u3079\u3066\u306e\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u306e\u30c7\u30fc\u30bf\u3092\u542b\u3080\u30d0\u30a4\u30ca\u30ea \u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002Redis \u304c\u6c38\u7d9a\u5316\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u3001\u307e\u305a\u30e1\u30e2\u30ea\u5185\u306e\u30c7\u30fc\u30bf\u3092\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u306b\u5909\u63db\u3057\u3001\u6b21\u306b\u305d\u306e\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af\u4e0a\u306e RDB \u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<p>RDB \u6c38\u7d9a\u6027\u306b\u306f\u3001\u6b21\u306e\u5229\u70b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>RDB \u30d5\u30a1\u30a4\u30eb\u306f\u3001\u5727\u7e2e\u3001\u6697\u53f7\u5316\u3001\u8ee2\u9001\u304c\u53ef\u80fd\u306a\u30d0\u30a4\u30ca\u30ea \u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002<\/li>\n\n\n\n<li>RDB \u30d5\u30a1\u30a4\u30eb\u306f Redis \u30c7\u30fc\u30bf\u306e\u5358\u306a\u308b\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3067\u3042\u308b\u305f\u3081\u3001RDB \u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u306f\u6bd4\u8f03\u7684\u5c0f\u3055\u304f\u3001\u30c7\u30fc\u30bf\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3001\u79fb\u884c\u3001\u304a\u3088\u3073\u5fa9\u5143\u3092\u8fc5\u901f\u306b\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>RDB \u306e\u6c38\u7d9a\u6027\u306f\u3001\u3059\u3079\u3066\u306e\u66f8\u304d\u8fbc\u307f\u64cd\u4f5c\u3092\u6c38\u7d9a\u5316\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u6307\u5b9a\u3055\u308c\u305f\u6642\u9593\u9593\u9694\u3067\u306e\u307f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u751f\u6210\u3059\u308b\u305f\u3081\u3001Redis \u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u5927\u304d\u306a\u5f71\u97ff\u3092\u4e0e\u3048\u307e\u305b\u3093\u3002<\/li>\n<\/ol>\n\n\n\n<p>RDB \u6c38\u7d9a\u5316\u306e\u6b20\u70b9\u306f\u3001Redis \u304c\u30c0\u30a6\u30f3\u3057\u3066\u305d\u306e\u4ed6\u306e\u7570\u5e38\u306a\u72b6\u614b\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u3001\u6700\u5f8c\u306e\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u4ee5\u964d\u306e\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u304c\u5931\u308f\u308c\u308b\u3053\u3068\u3067\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u3088\u308a\u9ad8\u3044\u30c7\u30fc\u30bf\u4fe1\u983c\u6027\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u3001AOF \u6c38\u7d9a\u5316\u306e\u4f7f\u7528\u3092\u691c\u8a0e\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Redis \u3067\u306f\u3001\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u751f\u6210\u306e\u6642\u9593\u9593\u9694\u3001\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8 \u30d5\u30a1\u30a4\u30eb\u306e\u540d\u524d\u3068\u30d1\u30b9\u306a\u3069\u3001\u69cb\u6210\u30d5\u30a1\u30a4\u30eb redis.conf \u3092\u4ecb\u3057\u3066 RDB \u6c38\u7d9a\u5316\u306e\u95a2\u9023\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u69cb\u6210\u3067\u304d\u307e\u3059\u3002\u540c\u6642\u306b\u3001Redis \u306f SAVE \u3068 BGSAVE \u306e 2 \u3064\u306e\u30b3\u30de\u30f3\u30c9\u3092\u63d0\u4f9b\u3057\u3066\u3001\u624b\u52d5\u307e\u305f\u306f\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u751f\u6210\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001BGSAVE \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u751f\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ruby\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>127.0.0.1:6379&gt; BGSAVE\nBackground saving started\n<\/code><\/pre>\n\n\n\n<p>RDB\u306e\u6c38\u7d9a\u6027\u3092\u5b9f\u884c\u3059\u308b\u5834\u5408\u3001\u30c7\u30fc\u30bf\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3068\u30ea\u30ab\u30d0\u30ea\u306e\u30b9\u30ad\u30fc\u30e0\u3092\u8003\u616e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001RDB\u30d5\u30a1\u30a4\u30eb\u306e\u6574\u5408\u6027\u3068\u53ef\u7528\u6027\u3092\u5b9a\u671f\u7684\u306b\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3001\u30c7\u30fc\u30bf\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3068\u4fe1\u983c\u6027\u3092\u78ba\u4fdd\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis\u306e\u6c38\u7d9a\u7684\u306aAOF\u306e\u6c38\u7d9a\u6027\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u306f\u3001RDB \u6c38\u7d9a\u6027\u3068 AOF \u6c38\u7d9a\u6027\u306e 2 \u3064\u306e\u6c38\u7d9a\u5316\u65b9\u6cd5\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u3046\u3061\u3001AOF \u6c38\u7d9a\u5316\u306f\u30ed\u30b0\u30d9\u30fc\u30b9\u306e\u6c38\u7d9a\u5316\u65b9\u5f0f\u3067\u3042\u308a\u3001\u3059\u3079\u3066\u306e\u66f8\u304d\u8fbc\u307f\u64cd\u4f5c\u30b3\u30de\u30f3\u30c9\u3092\u8a18\u9332\u3057\u3001\u3053\u308c\u3089\u306e\u30b3\u30de\u30f3\u30c9\u3092\u8ffd\u52a0\u3057\u3066 AOF \u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002AOF \u30d5\u30a1\u30a4\u30eb\u306f\u3001\u30c7\u30fc\u30bf\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3001\u79fb\u884c\u3001\u56de\u5fa9\u306a\u3069\u306e\u30b7\u30ca\u30ea\u30aa\u3067\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001AOF \u6c38\u7d9a\u6027\u306e\u8a73\u7d30\u306a\u8aac\u660e\u3067\u3059\u3002<\/p>\n\n\n\n<p>AOF \u6c38\u7d9a\u6027\u306f\u3001Redis \u306b\u3088\u3063\u3066\u5b9f\u884c\u3055\u308c\u305f\u3059\u3079\u3066\u306e\u66f8\u304d\u8fbc\u307f\u64cd\u4f5c\u30b3\u30de\u30f3\u30c9\u3092 AOF \u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u9332\u3057\u307e\u3059\u3002AOF \u30d5\u30a1\u30a4\u30eb\u306f\u3001Redis \u306b\u3088\u3063\u3066\u5b9f\u884c\u3055\u308c\u308b\u3059\u3079\u3066\u306e\u66f8\u304d\u8fbc\u307f\u64cd\u4f5c\u3092\u30b3\u30de\u30f3\u30c9\u306e\u5f62\u5f0f\u3067\u8a18\u9332\u3059\u308b\u30c6\u30ad\u30b9\u30c8 \u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002Redis \u3092\u6c38\u7d9a\u5316\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u3001AOF \u30d5\u30a1\u30a4\u30eb\u5185\u306e\u3059\u3079\u3066\u306e\u66f8\u304d\u8fbc\u307f\u64cd\u4f5c\u30b3\u30de\u30f3\u30c9\u304c\u518d\u5b9f\u884c\u3055\u308c\u3001\u5143\u306e Redis \u30c7\u30fc\u30bf\u304c\u5fa9\u5143\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>AOF \u6c38\u7d9a\u6027\u306b\u306f\u3001\u6b21\u306e\u5229\u70b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>AOF \u30d5\u30a1\u30a4\u30eb\u306f\u3001\u4ed6\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u7c21\u5358\u306b\u8aad\u307f\u53d6\u3063\u3066\u51e6\u7406\u3067\u304d\u308b\u30c6\u30ad\u30b9\u30c8 \u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002<\/li>\n\n\n\n<li>AOF \u6c38\u7d9a\u6027\u306f\u3001\u3059\u3079\u3066\u306e\u66f8\u304d\u8fbc\u307f\u64cd\u4f5c\u30b3\u30de\u30f3\u30c9\u3092\u8a18\u9332\u3059\u308b\u305f\u3081\u3001\u30c7\u30fc\u30bf\u306e\u4fe1\u983c\u6027\u3092\u9ad8\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059.Redis \u304c\u30af\u30e9\u30c3\u30b7\u30e5\u3059\u308b\u306a\u3069\u306e\u7570\u5e38\u306a\u72b6\u614b\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u3067\u3082\u3001AOF \u30d5\u30a1\u30a4\u30eb\u5185\u306e\u30b3\u30de\u30f3\u30c9\u3092\u518d\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u30c7\u30fc\u30bf\u3092\u56de\u5fa9\u3067\u304d\u307e\u3059.<\/li>\n\n\n\n<li>AOF \u6c38\u7d9a\u6027\u306f\u3001\u3059\u3079\u3066\u306e\u66f8\u304d\u8fbc\u307f\u64cd\u4f5c\u304c AOF \u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u9332\u3055\u308c\u308b\u305f\u3081\u3001\u30c7\u30fc\u30bf\u306e\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0 \u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>AOF \u6c38\u7d9a\u6027\u306e\u6b20\u70b9\u306f\u3001\u5404\u66f8\u304d\u8fbc\u307f\u64cd\u4f5c\u3092 AOF \u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u9332\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3001\u66f8\u304d\u8fbc\u307f\u64cd\u4f5c\u306e\u5897\u52a0\u306b\u4f34\u3044 AOF \u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u304c\u5927\u304d\u304f\u306a\u308b\u3053\u3068\u3067\u3059\u3002AOF \u30d5\u30a1\u30a4\u30eb\u304c\u5927\u304d\u3059\u304e\u308b\u3068\u3001\u30c7\u30fc\u30bf\u306e\u5fa9\u5143\u306b\u6642\u9593\u304c\u304b\u304b\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001AOF\u30d5\u30a1\u30a4\u30eb\u306f\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3067\u3042\u308b\u305f\u3081\u3001\u5727\u7e2e\u3084\u6697\u53f7\u5316\u304c\u3067\u304d\u306a\u3044\u305f\u3081\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u554f\u984c\u3082\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>Redis \u3067\u306f\u3001AOF \u30d5\u30a1\u30a4\u30eb\u306e\u540d\u524d\u3068\u30d1\u30b9\u3001AOF \u6c38\u7d9a\u5316\u6226\u7565\u306a\u3069\u3001\u69cb\u6210\u30d5\u30a1\u30a4\u30eb redis.conf \u3092\u4f7f\u7528\u3057\u3066\u3001AOF \u6c38\u7d9a\u5316\u306e\u95a2\u9023\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u69cb\u6210\u3067\u304d\u307e\u3059\u3002\u540c\u6642\u306b\u3001Redis \u306f BGREWRITEAOF \u3068 BGSAVE \u306e 2 \u3064\u306e\u30b3\u30de\u30f3\u30c9\u3082\u63d0\u4f9b\u3057\u3001AOF \u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u304d\u63db\u3048\u3066\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u624b\u52d5\u307e\u305f\u306f\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u751f\u6210\u3057\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001BGREWRITEAOF \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001AOF \u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ruby\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>127.0.0.1:6379&gt; BGREWRITEAOF\nBackground append only file rewriting started\n<\/code><\/pre>\n\n\n\n<p>AOF \u6c38\u7d9a\u5316\u3092\u5b9f\u884c\u3059\u308b\u5834\u5408\u3001AOF \u30d5\u30a1\u30a4\u30eb\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3068\u5fa9\u5143\u306a\u3069\u306e\u8a08\u753b\u3092\u8003\u616e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u30c7\u30fc\u30bf\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3068\u4fe1\u983c\u6027\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306b\u3001AOF \u30d5\u30a1\u30a4\u30eb\u306e\u6574\u5408\u6027\u3068\u53ef\u7528\u6027\u3092\u5b9a\u671f\u7684\u306b\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3082\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis\u306e\u6c38\u7d9aRDB\u3068AOF\u306e\u6bd4\u8f03\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>RDB \u6c38\u7d9a\u6027\u3068 AOF \u6c38\u7d9a\u6027\u306f\u3001Redis \u3067\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b 2 \u3064\u306e\u6c38\u7d9a\u5316\u65b9\u6cd5\u3067\u3042\u308a\u3001\u305d\u308c\u305e\u308c\u306b\u9577\u6240\u3068\u77ed\u6240\u304c\u3042\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001RDB \u6c38\u7d9a\u6027\u3068 AOF \u6c38\u7d9a\u6027\u306e\u6bd4\u8f03\u306e\u8a73\u7d30\u306a\u8aac\u660e\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30c7\u30fc\u30bf\u306e\u4fe1\u983c\u6027: AOF \u6c38\u7d9a\u5316\u306f\u3001\u3059\u3079\u3066\u306e\u66f8\u304d\u8fbc\u307f\u64cd\u4f5c\u30b3\u30de\u30f3\u30c9\u3092\u8a18\u9332\u3059\u308b\u305f\u3081\u3001\u3088\u308a\u9ad8\u3044\u30c7\u30fc\u30bf\u4fe1\u983c\u6027\u3092\u63d0\u4f9b\u3067\u304d\u307e\u3059. Redis \u304c\u30af\u30e9\u30c3\u30b7\u30e5\u3057\u305f\u308a\u3001\u305d\u306e\u4ed6\u306e\u7570\u5e38\u306a\u72b6\u614b\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u3067\u3082\u3001AOF \u30d5\u30a1\u30a4\u30eb\u5185\u306e\u30b3\u30de\u30f3\u30c9\u3092\u518d\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u30c7\u30fc\u30bf\u3092\u56de\u5fa9\u3067\u304d\u307e\u3059.&nbsp;RDB \u306e\u6c38\u7d9a\u6027\u306f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u306e\u307f\u3092\u8a18\u9332\u3057\u307e\u3059. Redis \u304c\u30af\u30e9\u30c3\u30b7\u30e5\u3057\u305f\u308a\u3001\u96fb\u6e90\u304c\u30aa\u30d5\u306b\u306a\u3063\u305f\u308a\u3059\u308b\u3068\u3001\u6700\u5f8c\u306e\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u4ee5\u964d\u306e\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u304c\u5931\u308f\u308c\u307e\u3059.<\/li>\n\n\n\n<li>\u30d5\u30a1\u30a4\u30eb \u30b5\u30a4\u30ba: RDB \u6c38\u7d9a\u6027\u306b\u3088\u3063\u3066\u751f\u6210\u3055\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u306f\u3001Redis \u5185\u306e\u30c7\u30fc\u30bf\u306e\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u306e\u307f\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u3001\u6bd4\u8f03\u7684\u5c0f\u3055\u3044\u3067\u3059\u3002AOF \u6c38\u7d9a\u6027\u306b\u3088\u3063\u3066\u751f\u6210\u3055\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u3059\u3079\u3066\u306e\u66f8\u304d\u8fbc\u307f\u64cd\u4f5c\u30b3\u30de\u30f3\u30c9\u3092\u8a18\u9332\u3059\u308b\u305f\u3081\u3001\u3088\u308a\u5927\u304d\u304f\u306a\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u8aad\u307f\u53d6\u308a\u3068\u66f8\u304d\u8fbc\u307f\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9: RDB \u306e\u6c38\u7d9a\u6027\u306f\u3001\u5404\u66f8\u304d\u8fbc\u307f\u64cd\u4f5c\u3092\u6c38\u7d9a\u5316\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u6307\u5b9a\u3055\u308c\u305f\u6642\u9593\u9593\u9694\u3067\u306e\u307f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u751f\u6210\u3059\u308b\u305f\u3081\u3001\u8aad\u307f\u53d6\u308a\u3068\u66f8\u304d\u8fbc\u307f\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3078\u306e\u5f71\u97ff\u304c\u5c11\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u3059\u3079\u3066\u306e\u66f8\u304d\u8fbc\u307f\u64cd\u4f5c\u306f AOF \u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u8fbc\u307e\u308c\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3001AOF \u6c38\u7d9a\u6027\u306f\u66f8\u304d\u8fbc\u307f\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u4e00\u5b9a\u306e\u5f71\u97ff\u3092\u4e0e\u3048\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30c7\u30fc\u30bf\u56de\u5fa9\u901f\u5ea6: \u30c7\u30fc\u30bf\u56de\u5fa9\u4e2d\u3001AOF \u6c38\u7d9a\u5316\u306e\u56de\u5fa9\u901f\u5ea6\u306f\u3001\u3059\u3079\u3066\u306e\u66f8\u304d\u8fbc\u307f\u64cd\u4f5c\u30b3\u30de\u30f3\u30c9\u3092\u518d\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u305f\u3081\u3001RDB \u6c38\u7d9a\u5316\u3088\u308a\u3082\u9045\u304f\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8 \u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u53d6\u308b\u3060\u3051\u3067\u3088\u3044\u305f\u3081\u3001RDB \u6c38\u7d9a\u5316\u306e\u5fa9\u65e7\u901f\u5ea6\u306f\u6bd4\u8f03\u7684\u9ad8\u901f\u3067\u3059\u3002<\/li>\n\n\n\n<li>\u69cb\u6210\u306e\u8907\u96d1\u3055: RDB \u6c38\u7d9a\u5316\u306e\u69cb\u6210\u306f\u6bd4\u8f03\u7684\u5358\u7d14\u3067\u3001\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u306e\u751f\u6210\u9593\u9694\u3092\u8a2d\u5b9a\u3059\u308b\u3060\u3051\u3067\u6e08\u307f\u307e\u3059\u3002AOF \u6c38\u7d9a\u5316\u306e\u69cb\u6210\u306f\u3088\u308a\u8907\u96d1\u3067\u3001AOF \u30d5\u30a1\u30a4\u30eb\u306e\u540d\u524d\u3068\u30d1\u30b9\u3001\u304a\u3088\u3073 AOF \u6c38\u7d9a\u5316\u6226\u7565\u306a\u3069\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u8981\u7d04\u3059\u308b\u3068\u3001RDB \u6c38\u7d9a\u6027\u306f\u30c7\u30fc\u30bf\u306e\u9ad8\u901f\u306a\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3001\u79fb\u884c\u3001\u304a\u3088\u3073\u56de\u5fa9\u304c\u5fc5\u8981\u306a\u30b7\u30ca\u30ea\u30aa\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u304c\u3001AOF \u6c38\u7d9a\u6027\u306f\u9ad8\u3044\u30c7\u30fc\u30bf\u4fe1\u983c\u6027\u304c\u5fc5\u8981\u306a\u30b7\u30ca\u30ea\u30aa\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002\u5b9f\u969b\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u7279\u5b9a\u306e\u8981\u4ef6\u3068\u30b7\u30ca\u30ea\u30aa\u306b\u5f93\u3063\u3066\u3001\u9069\u5207\u306a\u6c38\u7d9a\u5316\u65b9\u6cd5\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002\u540c\u6642\u306b\u3001RDB \u6c38\u7d9a\u6027\u3068 AOF \u6c38\u7d9a\u6027\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u4f7f\u7528\u200b\u200b\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u9ad8\u3044\u30c7\u30fc\u30bf\u4fe1\u983c\u6027\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u8981\u4ef6\u3092\u5b9f\u73fe\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u6982\u5ff5\u3068\u7279\u5fb4\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3068\u306f\u3001\u4e00\u9023\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u30e6\u30cb\u30c3\u30c8\u306b\u30d1\u30c3\u30b1\u30fc\u30b8\u5316\u3057\u3066\u3001\u3053\u308c\u3089\u306e\u30b3\u30de\u30f3\u30c9\u3092\u30a2\u30c8\u30df\u200b\u200b\u30c3\u30af\u306b\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u3059\u3002Redis \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306b\u306f\u6b21\u306e\u7279\u5fb4\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u539f\u5b50\u6027: Redis \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u5185\u306e\u3059\u3079\u3066\u306e\u30b3\u30de\u30f3\u30c9\u306f\u539f\u5b50\u7684\u306b\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u3059\u3079\u3066\u304c\u6210\u529f\u3059\u308b\u304b\u3001\u3059\u3079\u3066\u304c\u5931\u6557\u3057\u307e\u3059\u3002\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u306b\u5931\u6557\u3059\u308b\u3068\u3001\u5f8c\u7d9a\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3059\u3079\u3066\u5b9f\u884c\u3055\u308c\u307e\u305b\u3093\u3002<\/li>\n\n\n\n<li>\u4e00\u8cab\u6027: Redis \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u5b9f\u884c\u524d\u5f8c\u3067\u3001\u30c7\u30fc\u30bf\u306e\u72b6\u614b\u306f\u4e00\u8cab\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u5206\u96e2: Redis \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u5b9f\u884c\u306f\u4ed6\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u5b9f\u884c\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u305a\u3001\u5404\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306f\u4e92\u3044\u306b\u72ec\u7acb\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u6c38\u7d9a\u6027: Redis \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u304c\u6b63\u5e38\u306b\u5b9f\u884c\u3055\u308c\u308b\u3068\u3001\u7d50\u679c\u306f Redis \u306b\u6c38\u7d9a\u7684\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>Redis \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306f\u3001MULTI\u3001EXEC\u3001DISCARD\u3001WATCH \u306a\u3069\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u5b9f\u88c5\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u3046\u3061\u3001MULTI \u30b3\u30de\u30f3\u30c9\u306f\u65b0\u3057\u3044\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u958b\u59cb\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u3001EXEC \u30b3\u30de\u30f3\u30c9\u306f\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u5185\u306e\u3059\u3079\u3066\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u3001DISCARD \u30b3\u30de\u30f3\u30c9\u306f\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u5185\u306e\u3059\u3079\u3066\u306e\u30b3\u30de\u30f3\u30c9\u3092\u7834\u68c4\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u3001WATCH \u30b3\u30de\u30f3\u30c9\u306f\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u76e3\u8996\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30ad\u30fc\u304c\u5b9f\u884c\u4e2d\u306b\u5909\u66f4\u3055\u308c\u308b\u3068\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306f\u5931\u6557\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>Redis \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u8907\u6570\u306e\u30b3\u30de\u30f3\u30c9\u3092 1 \u3064\u306e\u5b9f\u884c\u30e6\u30cb\u30c3\u30c8\u306b\u30d1\u30c3\u30b1\u30fc\u30b8\u5316\u3057\u3001\u5b9f\u884c\u52b9\u7387\u3092\u5411\u4e0a\u3055\u305b\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u5185\u306e\u3059\u3079\u3066\u306e\u30b3\u30de\u30f3\u30c9\u306e\u539f\u5b50\u6027\u3092\u78ba\u4fdd\u3057\u3066\u3001\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u306e\u5931\u6557\u306b\u3088\u3063\u3066\u5f15\u304d\u8d77\u3053\u3055\u308c\u308b\u30c7\u30fc\u30bf\u72b6\u614b\u306e\u4e0d\u6574\u5408\u3092\u56de\u907f\u3067\u304d\u307e\u3059\u3002\u5b9f\u969b\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u7279\u5b9a\u306e\u30cb\u30fc\u30ba\u3068\u30b7\u30ca\u30ea\u30aa\u306b\u5f93\u3063\u3066\u3001Redis \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002Redis \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306f\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u64cd\u4f5c\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001\u30c7\u30fc\u30bf\u306e\u4e0d\u6574\u5408\u3092\u907f\u3051\u308b\u305f\u3081\u306b\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u5185\u306e\u30b3\u30de\u30f3\u30c9\u3092\u614e\u91cd\u306b\u51e6\u7406\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3Redis\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u30b3\u30de\u30f3\u30c9\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3 \u30b3\u30de\u30f3\u30c9\u306b\u306f\u3001MULTI\u3001EXEC\u3001DISCARD\u3001WATCH \u306a\u3069\u306e\u30b3\u30de\u30f3\u30c9\u304c\u542b\u307e\u308c\u3066\u304a\u308a\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u958b\u59cb\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u5b9f\u884c\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u653e\u68c4\u3001\u304a\u3088\u3073\u30ad\u30fc\u306e\u76e3\u8996\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>MULTI \u30b3\u30de\u30f3\u30c9: \u65b0\u3057\u3044\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u958b\u59cb\u3057\u3001\u5f8c\u7d9a\u306e\u3059\u3079\u3066\u306e\u30b3\u30de\u30f3\u30c9\u3092\u73fe\u5728\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306b\u8ffd\u52a0\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059. \u30b3\u30de\u30f3\u30c9\u306f OK \u3092\u8fd4\u3057\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u304c\u6b63\u5e38\u306b\u958b\u304b\u308c\u305f\u3053\u3068\u3092\u793a\u3057\u307e\u3059.<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">ruby\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>127.0.0.1:6379&gt; MULTI\nOK\n<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\">\n<li>EXEC \u30b3\u30de\u30f3\u30c9: \u73fe\u5728\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u5185\u306e\u3059\u3079\u3066\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059. \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u5185\u306e\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u306b\u5931\u6557\u3057\u305f\u5834\u5408, \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u5168\u4f53\u304c\u5931\u6557\u3057\u307e\u3059. \u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f, \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u5185\u306e\u3059\u3079\u3066\u306e\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u7d50\u679c\u3092\u8fd4\u3057\u307e\u3059.<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">ruby\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>127.0.0.1:6379&gt; EXEC\n1) OK\n2) OK\n3) OK\n<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\">\n<li>DISCARD \u30b3\u30de\u30f3\u30c9: \u73fe\u5728\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u7834\u68c4\u3057\u3001\u73fe\u5728\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u3059\u3079\u3066\u306e\u30b3\u30de\u30f3\u30c9\u3092\u30af\u30ea\u30a2\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059. \u30b3\u30de\u30f3\u30c9\u306f OK \u3092\u8fd4\u3057\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u304c\u7834\u68c4\u3055\u308c\u305f\u3053\u3068\u3092\u793a\u3057\u307e\u3059.<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">ruby\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>127.0.0.1:6379&gt; DISCARD\nOK\n<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li>WATCH \u30b3\u30de\u30f3\u30c9: \u30ad\u30fc\u3092\u76e3\u8996\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u5b9f\u884c\u4e2d\u306b\u30ad\u30fc\u304c\u5909\u66f4\u3055\u308c\u308b\u3068\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306f\u5931\u6557\u3057\u307e\u3059\u3002\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u8907\u6570\u306e\u30ad\u30fc\u3092\u76e3\u8996\u3067\u304d\u3001\u76e3\u8996\u3055\u308c\u305f\u30ad\u30fc\u306f\u30a6\u30a9\u30c3\u30c1 \u30ea\u30b9\u30c8\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">ruby\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>127.0.0.1:6379&gt; WATCH key1 key2\nOK\n<\/code><\/pre>\n\n\n\n<p>\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u5b9f\u884c\u4e2d\u306b\u3001Redis \u30c7\u30fc\u30bf\u578b\u3092\u4f7f\u7528\u3059\u308b\u901a\u5e38\u306e\u30b3\u30de\u30f3\u30c9\u3068\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3 \u30b3\u30de\u30f3\u30c9\u3092\u6df7\u5728\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3 \u30b3\u30de\u30f3\u30c9\u306e\u4f7f\u7528\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ruby\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>127.0.0.1:6379&gt; MULTI\nOK\n127.0.0.1:6379&gt; SET key1 \"Hello\"\nQUEUED\n127.0.0.1:6379&gt; SET key2 \"World\"\nQUEUED\n127.0.0.1:6379&gt; GET key1\nQUEUED\n127.0.0.1:6379&gt; GET key2\nQUEUED\n127.0.0.1:6379&gt; EXEC\n1) OK\n2) OK\n3) \"Hello\"\n4) \"World\"\n<\/code><\/pre>\n\n\n\n<p>MULTI \u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u5f8c\u3001\u5f8c\u7d9a\u306e\u3059\u3079\u3066\u306e\u30b3\u30de\u30f3\u30c9\u304c\u73fe\u5728\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306b\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002\u3059\u3079\u3066\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u5f8c\u3001EXEC \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u73fe\u5728\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u5185\u306e\u3059\u3079\u3066\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u7d50\u679c\u3092\u8fd4\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u4f8b\u3067\u306f\u3001\u307e\u305a SET \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066 2 \u3064\u306e\u30ad\u30fc key1 \u3068 key2 \u306b\u5024\u3092\u8a2d\u5b9a\u3057\u3001\u6b21\u306b GET \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3053\u308c\u3089 2 \u3064\u306e\u30ad\u30fc\u306e\u5024\u3092\u53d6\u5f97\u3057\u3001EXEC \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u5185\u306e\u3059\u3079\u3066\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>Redis \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306f\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u64cd\u4f5c\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001\u30c7\u30fc\u30bf\u306e\u4e0d\u6574\u5408\u3092\u907f\u3051\u308b\u305f\u3081\u306b\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u5185\u306e\u30b3\u30de\u30f3\u30c9\u3092\u614e\u91cd\u306b\u51e6\u7406\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u4f7f\u7528\u4f8b\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u306f\u3001Redis \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u305f\u7c21\u5358\u306a\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ruby\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>127.0.0.1:6379&gt; MULTI\nOK\n127.0.0.1:6379&gt; INCR user:1:login_count\nQUEUED\n127.0.0.1:6379&gt; INCR user:1:total_count\nQUEUED\n127.0.0.1:6379&gt; EXEC\n1) (integer) 1\n2) (integer) 1\n<\/code><\/pre>\n\n\n\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u6700\u521d\u306b MULTI \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u65b0\u3057\u3044\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u958b\u59cb\u3057\u3001\u6b21\u306b INCR \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30ad\u30fc<code>user:1:login_count<\/code>\u3068\u305d\u308c\u305e\u308c\u3092<code>user:1:total_count<\/code>\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3057\u307e\u3059\u3002MULTI \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u958b\u59cb\u3057\u305f\u5f8c\u3001\u5f8c\u7d9a\u306e\u3059\u3079\u3066\u306e\u30b3\u30de\u30f3\u30c9\u306f\u73fe\u5728\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306b\u8ffd\u52a0\u3055\u308c\u307e\u3059\u304c\u3001\u5b9f\u884c\u3055\u308c\u306a\u3044\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u6b21\u306b\u3001EXEC \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u5185\u306e\u3059\u3079\u3066\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u5185\u306e\u7279\u5b9a\u306e\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u306b\u5931\u6557\u3059\u308b\u3068\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u5168\u4f53\u304c\u5931\u6557\u3057\u3001\u3059\u3079\u3066\u306e\u30b3\u30de\u30f3\u30c9\u304c\u5b9f\u884c\u3055\u308c\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u304c\u6b63\u5e38\u306b\u5b9f\u884c\u3055\u308c\u308b\u3068\u3001\u8fd4\u3055\u308c\u308b\u7d50\u679c\u306f\u914d\u5217\u306b\u306a\u308a\u307e\u3059\u3002\u914d\u5217\u306e\u5404\u8981\u7d20\u306f\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u5185\u306e\u5404\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u7d50\u679c\u306b\u5bfe\u5fdc\u3057\u307e\u3059\u3002\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u306b\u5931\u6557\u3057\u305f\u5834\u5408\u3001\u5bfe\u5fdc\u3059\u308b\u8981\u7d20\u306e\u5024\u306f nil \u3067\u3059\u3002<\/p>\n\n\n\n<p>Redis \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3001\u8907\u6570\u306e\u30b3\u30de\u30f3\u30c9\u3092 1 \u3064\u306e\u5b9f\u884c\u30e6\u30cb\u30c3\u30c8\u306b\u30d1\u30c3\u30b1\u30fc\u30b8\u5316\u3057\u3001\u5b9f\u884c\u52b9\u7387\u3092\u5411\u4e0a\u3055\u305b\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u5185\u306e\u3059\u3079\u3066\u306e\u30b3\u30de\u30f3\u30c9\u306e\u539f\u5b50\u6027\u3092\u78ba\u4fdd\u3057\u3066\u3001\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u306e\u5931\u6557\u306b\u3088\u3063\u3066\u5f15\u304d\u8d77\u3053\u3055\u308c\u308b\u30c7\u30fc\u30bf\u72b6\u614b\u306e\u4e0d\u6574\u5408\u3092\u56de\u907f\u3067\u304d\u307e\u3059\u3002\u5b9f\u969b\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u7279\u5b9a\u306e\u30cb\u30fc\u30ba\u3068\u30b7\u30ca\u30ea\u30aa\u306b\u5f93\u3063\u3066\u3001Redis \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002Redis \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306f\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u64cd\u4f5c\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001\u30c7\u30fc\u30bf\u306e\u4e0d\u6574\u5408\u3092\u907f\u3051\u308b\u305f\u3081\u306b\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u5185\u306e\u30b3\u30de\u30f3\u30c9\u3092\u614e\u91cd\u306b\u51e6\u7406\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis \u306e\u30d1\u30d6\u30ea\u30c3\u30b7\u30e5\u3068\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6\u306e\u6982\u5ff5\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u306e\u30d1\u30d6\u30ea\u30c3\u30b7\u30e5\/\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6\u306f\u3001\u9001\u4fe1\u8005 (\u30d1\u30d6\u30ea\u30c3\u30b7\u30e3\u30fc) \u304c\u7279\u5b9a\u306e\u30c1\u30e3\u30cd\u30eb\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3057\u3001\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d0\u30fc (\u53d7\u4fe1\u8005) \u304c 1 \u3064\u4ee5\u4e0a\u306e\u30c1\u30e3\u30cd\u30eb\u306b\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6\u3057\u3066\u3001\u7279\u5b9a\u306e\u30c1\u30e3\u30cd\u30eb\u3067\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d7\u4fe1\u3067\u304d\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u30f3\u30b0 \u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002Redis \u306e\u30d1\u30d6\u30ea\u30c3\u30b7\u30e5\/\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6 \u30e2\u30fc\u30c9\u306f\u3001\u30d1\u30d6\u30ea\u30c3\u30b7\u30e3\u30fc\u3068\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d0\u30fc\u306e\u9593\u306e\u76f4\u63a5\u7684\u306a\u5bfe\u8a71\u3067\u306f\u306a\u304f\u3001\u30e1\u30c3\u30bb\u30fc\u30b8 \u30c1\u30e3\u30cd\u30eb\u3092\u4ecb\u3057\u305f\u901a\u4fe1\u304c\u3042\u308b\u975e\u540c\u671f\u901a\u4fe1\u30e2\u30fc\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<p>Redis \u3067\u306f\u3001PUBLISH \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u6307\u5b9a\u3057\u305f\u30c1\u30e3\u30cd\u30eb\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3067\u304d\u307e\u3059\u3002\u6b21\u306b\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ruby\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>127.0.0.1:6379&gt; PUBLISH channel1 \"Hello world!\"\n(integer) 1\n<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u3001PUBLISH \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u300cHello world!\u300d\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u3092 channel1 \u3068\u3044\u3046\u540d\u524d\u306e\u30c1\u30e3\u30cd\u30eb\u306b\u9001\u4fe1\u3057\u30011 \u3092\u8fd4\u3057\u3066 1 \u4eba\u306e\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d0\u30fc\u304c\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d7\u4fe1\u3057\u305f\u3053\u3068\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d0\u30fc\u306f\u3001SUBSCRIBE \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u6307\u5b9a\u3055\u308c\u305f\u30c1\u30e3\u30cd\u30eb\u306b\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6\u3067\u304d\u307e\u3059\u3002\u6b21\u306b\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ruby\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>127.0.0.1:6379&gt; SUBSCRIBE channel1\nReading messages... (press Ctrl-C to quit)\n1) \"subscribe\"\n2) \"channel1\"\n3) (integer) 1\n<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u3001SUBSCRIBE \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066 channel1 \u3068\u3044\u3046\u540d\u524d\u306e\u30c1\u30e3\u30cd\u30eb\u306b\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6\u3057\u30013 \u3064\u306e\u8981\u7d20\u3092\u542b\u3080\u914d\u5217\u3092\u8fd4\u3057\u307e\u3059\u3002\u6700\u521d\u306e\u8981\u7d20\u306f\u8cfc\u8aad\u304c\u6210\u529f\u3057\u305f\u3053\u3068\u3092\u610f\u5473\u3059\u308b\u300csubscribe\u300d\u30012 \u756a\u76ee\u306e\u8981\u7d20\u306f\u8cfc\u8aad\u3057\u3066\u3044\u308b\u30c1\u30e3\u30f3\u30cd\u30eb\u306e\u540d\u524d\u30013 \u756a\u76ee\u306e\u8981\u7d20\u306f\u30c1\u30e3\u30f3\u30cd\u30eb\u3092\u8cfc\u8aad\u3057\u3066\u3044\u308b\u8cfc\u8aad\u8005\u306e\u6570\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d0\u30fc\u306f\u3001UNSUBSCRIBE \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u6307\u5b9a\u3055\u308c\u305f\u30c1\u30e3\u30cd\u30eb\u304b\u3089\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6\u3092\u89e3\u9664\u3067\u304d\u307e\u3059\u3002\u6b21\u306b\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ruby\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>127.0.0.1:6379&gt; UNSUBSCRIBE channel1\n<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u3001channel1 \u3068\u3044\u3046\u540d\u524d\u306e\u30c1\u30e3\u30cd\u30eb\u3078\u306e\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u304c\u3001UNSUBSCRIBE \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6\u89e3\u9664\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>Redis \u306f\u3001\u3059\u3079\u3066\u306e\u30c1\u30e3\u30cd\u30eb\u304b\u3089\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6\u3092\u89e3\u9664\u3059\u308b\u305f\u3081\u306e PUNSUBSCRIBE \u30b3\u30de\u30f3\u30c9\u3082\u63d0\u4f9b\u3057\u307e\u3059\u3002\u6b21\u306b\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ruby\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>127.0.0.1:6379&gt; PUNSUBSCRIBE\n<\/code><\/pre>\n\n\n\n<p>\u5b9f\u969b\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001Redis \u30d1\u30d6\u30ea\u30c3\u30b7\u30e5\/\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6 \u30e2\u30c7\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u901a\u4fe1\u3001\u30a4\u30d9\u30f3\u30c8\u99c6\u52d5\u578b\u3001\u304a\u3088\u3073\u305d\u306e\u4ed6\u306e\u6a5f\u80fd\u3092\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001Redis \u306e\u30d1\u30d6\u30ea\u30c3\u30b7\u30e5\/\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6 \u30e2\u30c7\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001\u30aa\u30f3\u30e9\u30a4\u30f3 \u30c1\u30e3\u30c3\u30c8\u3084\u30a4\u30f3\u30b9\u30bf\u30f3\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8\u30f3\u30b0\u306a\u3069\u306e\u6a5f\u80fd\u3092\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis \u306e publish \u304a\u3088\u3073 subscribe \u30b3\u30de\u30f3\u30c9\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u306e\u30d1\u30d6\u30ea\u30c3\u30b7\u30e5\u304a\u3088\u3073\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6 \u30b3\u30de\u30f3\u30c9\u306b\u306f\u3001PUBLISH\u3001SUBSCRIBE\u3001UNSUBSCRIBE\u3001\u304a\u3088\u3073 PUNSUBSCRIBE \u30b3\u30de\u30f3\u30c9\u304c\u542b\u307e\u308c\u307e\u3059. \u4ee5\u4e0b\u306f\u3001\u3053\u308c\u3089\u306e\u30b3\u30de\u30f3\u30c9\u306e\u8a73\u7d30\u306a\u8aac\u660e\u3067\u3059:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>PUBLISH \u30b3\u30de\u30f3\u30c9: \u6307\u5b9a\u3055\u308c\u305f\u30c1\u30e3\u30cd\u30eb\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u69cb\u6587\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002\u30b3\u30d4\u30fc \u30b3\u30fc\u30c9\u306e<code>PUBLISH channel message&nbsp;<\/code>\u3046\u3061\u3001channel \u306f\u30c1\u30e3\u30cd\u30eb\u306e\u540d\u524d\u3001message \u306f\u9001\u4fe1\u3059\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u5185\u5bb9\u3067\u3059\u3002\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d0\u30fc\u306e\u6570\u3092\u8fd4\u3057\u307e\u3059\u3002\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d7\u3051\u53d6\u308a\u307e\u3057\u305f\u3002<\/li>\n\n\n\n<li><code>SUBSCRIBE channel [channel ...]&nbsp;<\/code>SUBSCRIBE \u30b3\u30de\u30f3\u30c9: 1 \u3064\u307e\u305f\u306f\u8907\u6570\u306e\u30c1\u30e3\u30cd\u30eb\u306b\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u69cb\u6587\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u914d\u5217\u3092\u8fd4\u3057\u307e\u3059\u3002\u914d\u5217\u306e\u6700\u521d\u306e\u8981\u7d20\u306f\u300csubscribe\u300d\u3067\u3001\u3053\u308c\u306f\u8cfc\u8aad\u304c\u6210\u529f\u3057\u305f\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u30022 \u756a\u76ee\u306e\u8981\u7d20\u306f\u8cfc\u8aad\u3057\u3066\u3044\u308b\u30c1\u30e3\u30f3\u30cd\u30eb\u306e\u540d\u524d\u3067\u30013 \u756a\u76ee\u306e\u8981\u7d20\u306f\u30c1\u30e3\u30f3\u30cd\u30eb\u306b\u8cfc\u8aad\u3057\u3066\u3044\u308b\u8cfc\u8aad\u8005\u306e\u6570\u3067\u3059\u3002<\/li>\n\n\n\n<li>UNSUBSCRIBE \u30b3\u30de\u30f3\u30c9: \u6307\u5b9a\u3055\u308c\u305f\u30c1\u30e3\u30f3\u30cd\u30eb\u306e\u767b\u9332\u3092\u89e3\u9664\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u69cb\u6587\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059: cssCopy \u30b3\u30fc\u30c9<code>UNSUBSCRIBE [channel [channel ...]]&nbsp;<\/code>\u305d\u306e\u4e2d\u3067\u3001channel \u306f 1 \u3064\u4ee5\u4e0a\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u306e\u540d\u524d\u3067\u3042\u308a\u3001\u8907\u6570\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u3092\u767b\u9332\u89e3\u9664\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u5404\u30c1\u30e3\u30f3\u30cd\u30eb\u540d\u306f\u30b9\u30da\u30fc\u30b9\u3067\u533a\u5207\u3089\u308c\u307e\u3059\u3002\u30c1\u30e3\u30f3\u30cd\u30eb\u540d\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001\u3059\u3079\u3066\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u304b\u3089\u767b\u9332\u89e3\u9664\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>PUNSUBSCRIBE \u30b3\u30de\u30f3\u30c9: \u3059\u3079\u3066\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u306e\u8cfc\u8aad\u3092\u89e3\u9664\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002\u69cb\u6587\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc<code>PUNSUBSCRIBE&nbsp;<\/code>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u8cfc\u8aad\u3057\u3066\u3044\u308b\u3059\u3079\u3066\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u3092\u30ad\u30e3\u30f3\u30bb\u30eb\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>Redis \u306e\u30d1\u30d6\u30ea\u30c3\u30b7\u30e5\/\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6 \u30e2\u30fc\u30c9\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u3001\u30d1\u30d6\u30ea\u30c3\u30b7\u30e3\u30fc\u3068\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d0\u30fc\u306f\u975e\u540c\u671f\u3067\u901a\u4fe1\u3057\u3001\u30d1\u30d6\u30ea\u30c3\u30b7\u30e3\u30fc\u3068\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d0\u30fc\u306e\u9593\u306b\u76f4\u63a5\u306e\u5bfe\u8a71\u306f\u306a\u304f\u3001\u30e1\u30c3\u30bb\u30fc\u30b8 \u30c1\u30e3\u30cd\u30eb\u3092\u4ecb\u3057\u3066\u901a\u4fe1\u304c\u884c\u308f\u308c\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3057\u305f\u304c\u3063\u3066\u3001Redis \u30d1\u30d6\u30ea\u30c3\u30b7\u30e5\/\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6 \u30e2\u30fc\u30c9\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001\u30c7\u30fc\u30bf\u306e\u4e0d\u6574\u5408\u3084\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u306e\u5931\u6557\u3092\u56de\u907f\u3059\u308b\u305f\u3081\u306b\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u914d\u4fe1\u306e\u9806\u5e8f\u3068\u30c1\u30e3\u30cd\u30eb \u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u3084\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u89e3\u9664\u306a\u3069\u306e\u64cd\u4f5c\u306b\u7279\u5225\u306a\u6ce8\u610f\u3092\u6255\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis publish subscribe \u306e\u4f7f\u7528\u4f8b\u3092\u8a73\u3057\u304f\u6559\u3048\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u306f\u3001Redis \u30d1\u30d6\u30ea\u30c3\u30b7\u30e5\/\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6 \u30d1\u30bf\u30fc\u30f3\u3092\u4f7f\u7528\u3057\u305f\u7c21\u5358\u306a\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30bf\u30fc\u30df\u30ca\u30eb \u30a6\u30a3\u30f3\u30c9\u30a6\u3067 channel1 \u3068\u3044\u3046\u540d\u524d\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u3092\u8cfc\u8aad\u3057\u307e\u3059: ruby\u200b\u200bCopy code<code>127.0.0.1:6379&gt; SUBSCRIBE channel1 Reading messages... (press Ctrl-C to quit)&nbsp;<\/code>\u4e0a\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3067\u306f\u3001SUBSCRIBE \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066 channel1 \u3068\u3044\u3046\u540d\u524d\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u3092\u8cfc\u8aad\u3057\u3001\u3053\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u304b\u3089\u306e\u30cb\u30e5\u30fc\u30b9\u3092\u5f85\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u793a\u3059\u30d7\u30ed\u30f3\u30d7\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u51fa\u529b\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u5225\u306e\u30bf\u30fc\u30df\u30ca\u30eb \u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u3001channel1 \u3068\u3044\u3046\u540d\u524d\u306e\u30c1\u30e3\u30cd\u30eb\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3057\u307e\u3059: ruby\u200b\u200bCopy code<code>127.0.0.1:6379&gt; PUBLISH channel1 \"Hello world!\" (integer) 1&nbsp;<\/code>\u4e0a\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001PUBLISH \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001channel1 \u3068\u3044\u3046\u540d\u524d\u306e\u30c1\u30e3\u30cd\u30eb\u306b\u30e1\u30c3\u30bb\u30fc\u30b8 &#8220;Hello world!&#8221; \u3092\u9001\u4fe1\u3057\u30011 \u3092\u8fd4\u3057\u3066\u30011 \u3064\u306e\u30b5\u30d6\u30b9\u30af\u30ea\u30d7\u30b7\u30e7\u30f3\u304c\u53d7\u4fe1\u3055\u308c\u305f\u3053\u3068\u3092\u793a\u3057\u307e\u3059\u3002\u30e1\u30c3\u30bb\u30fc\u30b8\u3002<\/li>\n\n\n\n<li>\u9001\u4fe1\u3055\u308c\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u6700\u521d\u306e\u30bf\u30fc\u30df\u30ca\u30eb \u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u53d7\u4fe1\u3055\u308c\u307e\u3059: arduinoCopy \u30b3\u30fc\u30c9<code>1) \"message\" 2) \"channel1\" 3) \"Hello world!\"&nbsp;<\/code>\u4e0a\u8a18\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u306f\u3001\u6700\u521d\u306e\u8981\u7d20\u306f\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u53d7\u4fe1\u3055\u308c\u305f\u3053\u3068\u3092\u793a\u3059\u300c\u30e1\u30c3\u30bb\u30fc\u30b8\u300d\u30012 \u756a\u76ee\u306e\u8981\u7d20\u306f\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6\u3055\u308c\u305f\u30c1\u30e3\u30cd\u30eb\u540d\u30013 \u756a\u76ee\u306e\u8981\u7d20\u306f\u53d7\u4fe1\u3057\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u3059\u3002\u30b3\u30f3\u30c6\u30f3\u30c4\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u6700\u521d\u306b\u7aef\u672b\u30a6\u30a3\u30f3\u30c9\u30a6\u3067 SUBSCRIBE \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066 channel1 \u3068\u3044\u3046\u540d\u524d\u306e\u30c1\u30e3\u30cd\u30eb\u306b\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6\u3057\u3001\u3053\u306e\u30c1\u30e3\u30cd\u30eb\u304b\u3089\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u5f85\u6a5f\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u793a\u3059\u30d7\u30ed\u30f3\u30d7\u30c8 \u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u51fa\u529b\u3057\u307e\u3059\u3002\u6b21\u306b\u3001\u5225\u306e\u30bf\u30fc\u30df\u30ca\u30eb \u30a6\u30a3\u30f3\u30c9\u30a6\u3067 PUBLISH \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u300cHello world!\u300d\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u30c1\u30e3\u30cd\u30eb\u306b\u9001\u4fe1\u3057\u30011 \u3092\u8fd4\u3057\u3066\u30011 \u4eba\u306e\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d0\u30fc\u304c\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d7\u4fe1\u3057\u305f\u3053\u3068\u3092\u793a\u3057\u307e\u3059\u3002\u6700\u5f8c\u306b\u3001\u9001\u4fe1\u3055\u308c\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u6700\u521d\u306e\u7aef\u672b\u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u53d7\u4fe1\u3055\u308c\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u5185\u5bb9\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5b9f\u969b\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001Redis \u30d1\u30d6\u30ea\u30c3\u30b7\u30e5\/\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6 \u30e2\u30c7\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u901a\u4fe1\u3001\u30a4\u30d9\u30f3\u30c8\u99c6\u52d5\u578b\u3001\u304a\u3088\u3073\u305d\u306e\u4ed6\u306e\u6a5f\u80fd\u3092\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001\u30aa\u30f3\u30e9\u30a4\u30f3 \u30c1\u30e3\u30c3\u30c8 \u30eb\u30fc\u30e0\u3067\u306f\u3001Redis \u306e\u30d1\u30d6\u30ea\u30c3\u30b7\u30e5\/\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6 \u30e2\u30c7\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001\u591a\u4eba\u6570\u30c1\u30e3\u30c3\u30c8\u6a5f\u80fd\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u304c\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3059\u308b\u5834\u5408\u3001PUBLISH \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u6307\u5b9a\u3057\u305f\u30c1\u30e3\u30cd\u30eb\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3059\u308b\u3068\u3001\u305d\u306e\u30c1\u30e3\u30cd\u30eb\u306b\u52a0\u5165\u3057\u3066\u3044\u308b\u3059\u3079\u3066\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d7\u4fe1\u3057\u3001\u30c1\u30e3\u30c3\u30c8 \u30eb\u30fc\u30e0\u306b\u8868\u793a\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis \u30de\u30b9\u30bf\u30fc\/\u30b9\u30ec\u30fc\u30d6 \u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u9ad8\u5ea6\u306a\u6a5f\u80fd\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u30de\u30b9\u30bf\u30fc\/\u30b9\u30ec\u30fc\u30d6 \u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3001Redis \u306e\u9ad8\u5ea6\u306a\u6a5f\u80fd\u3067\u3042\u308a\u3001\u8907\u6570\u306e Redis \u30b5\u30fc\u30d0\u30fc\u9593\u3067\u30c7\u30fc\u30bf\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u540c\u671f\u3092\u5b9f\u73fe\u3067\u304d\u3001\u901a\u5e38\u3001Redis \u306e\u53ef\u7528\u6027\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5411\u4e0a\u3055\u305b\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u30de\u30b9\u30bf\u30fc\/\u30b9\u30ec\u30fc\u30d6 \u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u57fa\u672c\u539f\u5247\u306f\u30011 \u3064\u306e Redis \u30b5\u30fc\u30d0\u30fc\u3092\u30de\u30b9\u30bf\u30fc \u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3059 (\u30de\u30b9\u30bf\u30fc \u30ce\u30fc\u30c9\u3068\u547c\u3070\u308c\u307e\u3059)\u3001\u4ed6\u306e Redis \u30b5\u30fc\u30d0\u30fc\u3092\u30b9\u30ec\u30fc\u30d6 \u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u4f7f\u7528\u3057\u307e\u3059 (\u30b9\u30ec\u30fc\u30d6 \u30ce\u30fc\u30c9\u3068\u547c\u3070\u308c\u307e\u3059)\u3002\u30de\u30b9\u30bf\u30fc \u30ce\u30fc\u30c9\u306f\u3001\u81ea\u8eab\u306e\u30c7\u30fc\u30bf\u3092\u30b9\u30ec\u30fc\u30d6 \u30ce\u30fc\u30c9\u306b\u975e\u540c\u671f\u7684\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002 \u3001\u304a\u3088\u3073\u30b9\u30ec\u30fc\u30d6\u30ce\u30fc\u30c9\u306f\u8aad\u307f\u53d6\u308a\u64cd\u4f5c\u3092\u63d0\u4f9b\u3067\u304d\u308b\u305f\u3081\u3001\u30d7\u30e9\u30a4\u30de\u30ea\u30ce\u30fc\u30c9\u306e\u8aad\u307f\u53d6\u308a\u8ca0\u8377\u3092\u5171\u6709\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Redis \u30de\u30b9\u30bf\u30fc\/\u30b9\u30ec\u30fc\u30d6 \u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u306f\u3001\u6b21\u306e\u4e3b\u306a\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30c7\u30fc\u30bf \u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u65b9\u6cd5: Redis \u30de\u30b9\u30bf\u30fc \u30b9\u30ec\u30fc\u30d6 \u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3001\u30c7\u30fc\u30bf \u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u975e\u540c\u671f\u65b9\u5f0f\u3092\u4f7f\u7528\u3057\u307e\u3059. \u30de\u30b9\u30bf\u30fc \u30ce\u30fc\u30c9\u306f\u3001\u81ea\u8eab\u306e\u30c7\u30fc\u30bf\u3092\u975e\u540c\u671f\u7684\u306b\u30b9\u30ec\u30fc\u30d6 \u30ce\u30fc\u30c9\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059. \u30b9\u30ec\u30fc\u30d6 \u30ce\u30fc\u30c9\u306f\u3001\u30de\u30b9\u30bf\u30fc \u30ce\u30fc\u30c9\u3068\u306e\u63a5\u7d9a\u3092\u78ba\u7acb\u3057\u3001\u30de\u30b9\u30bf\u30fc \u30ce\u30fc\u30c9\u304b\u3089\u9001\u4fe1\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092\u53d7\u4fe1\u3057\u307e\u3059\u30c7\u30fc\u30bf\u306e\u8907\u88fd\u3068\u540c\u671f\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30b9\u30ec\u30fc\u30d6 \u30ce\u30fc\u30c9\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3: Redis \u30de\u30b9\u30bf\u30fc\/\u30b9\u30ec\u30fc\u30d6 \u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u8907\u6570\u306e\u30b9\u30ec\u30fc\u30d6 \u30ce\u30fc\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3067\u304d\u3001\u5404\u30b9\u30ec\u30fc\u30d6 \u30ce\u30fc\u30c9\u306f\u30de\u30b9\u30bf\u30fc \u30ce\u30fc\u30c9\u304b\u3089\u30c7\u30fc\u30bf\u3092\u30b3\u30d4\u30fc\u3067\u304d\u3001\u30b9\u30ec\u30fc\u30d6 \u30ce\u30fc\u30c9\u306f\u8aad\u307f\u53d6\u308a\u64cd\u4f5c\u3092\u63d0\u4f9b\u3057\u3066\u30de\u30b9\u30bf\u30fc \u30ce\u30fc\u30c9\u306e\u8aad\u307f\u53d6\u308a\u8ca0\u8377\u3092\u5171\u6709\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30c7\u30fc\u30bf\u540c\u671f\u65b9\u6cd5: Redis \u30de\u30b9\u30bf\u30fc\/\u30b9\u30ec\u30fc\u30d6 \u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u306f 2 \u3064\u306e\u30c7\u30fc\u30bf\u540c\u671f\u65b9\u6cd5\u304c\u3042\u308a\u30011 \u3064\u306f\u5b8c\u5168\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001\u3064\u307e\u308a\u3001\u30b9\u30ec\u30fc\u30d6 \u30ce\u30fc\u30c9\u304c\u30c7\u30fc\u30bf\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u59cb\u3059\u308b\u3068\u304d\u3001\u6700\u521d\u306b\u30de\u30b9\u30bf\u30fc \u30ce\u30fc\u30c9\u306e\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u3092\u30b3\u30d4\u30fc\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059; \u3082\u3046 1 \u3064\u306f\u5897\u5206\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u3002\u3064\u307e\u308a\u3001\u30b9\u30ec\u30fc\u30d6 \u30ce\u30fc\u30c9\u304c\u30c7\u30fc\u30bf\u3092\u30b3\u30d4\u30fc\u3059\u308b\u3068\u304d\u306f\u3001\u30de\u30b9\u30bf\u30fc \u30ce\u30fc\u30c9\u306b\u3088\u3063\u3066\u8ffd\u52a0\u3055\u308c\u305f\u65b0\u3057\u3044\u30c7\u30fc\u30bf\u3092\u30b3\u30d4\u30fc\u3059\u308b\u3060\u3051\u3067\u6e08\u307f\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u969c\u5bb3\u5fa9\u65e7: \u30de\u30b9\u30bf\u30fc \u30ce\u30fc\u30c9\u306b\u969c\u5bb3\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u3001\u30b9\u30ec\u30fc\u30d6 \u30ce\u30fc\u30c9\u306e 1 \u3064\u3092\u65b0\u3057\u3044\u30de\u30b9\u30bf\u30fc \u30ce\u30fc\u30c9\u306b\u6607\u683c\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081\u3001\u969c\u5bb3\u5fa9\u65e7\u3068\u9ad8\u53ef\u7528\u6027\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>Redis \u30de\u30b9\u30bf\u30fc\/\u30b9\u30ec\u30fc\u30d6 \u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001Redis \u306e\u53ef\u7528\u6027\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5411\u4e0a\u3057\u3001\u30c7\u30fc\u30bf\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3068\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u5b9f\u73fe\u3055\u308c\u308b\u305f\u3081\u3001\u30de\u30b9\u30bf\u30fc \u30ce\u30fc\u30c9\u306e\u969c\u5bb3\u306b\u3088\u308b\u30c7\u30fc\u30bf\u306e\u640d\u5931\u3068\u30d3\u30b8\u30cd\u30b9\u306e\u4e2d\u65ad\u306e\u30ea\u30b9\u30af\u304c\u8efd\u6e1b\u3055\u308c\u307e\u3059\u3002\u540c\u6642\u306b\u3001\u30b9\u30ec\u30fc\u30d6 \u30ce\u30fc\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30de\u30b9\u30bf\u30fc \u30ce\u30fc\u30c9\u306e\u8aad\u307f\u53d6\u308a\u8ca0\u8377\u3092\u5171\u6709\u3057\u3001Redis \u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u30b9\u30eb\u30fc\u30d7\u30c3\u30c8\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5b9f\u969b\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001Redis \u306e\u53ef\u7528\u6027\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5411\u4e0a\u3055\u305b\u308b\u305f\u3081\u306b\u3001\u7279\u5b9a\u306e\u30cb\u30fc\u30ba\u3068\u30b7\u30ca\u30ea\u30aa\u306b\u5f93\u3063\u3066 Redis \u30de\u30b9\u30bf\u30fc\/\u30b9\u30ec\u30fc\u30d6 \u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002Redis \u30de\u30b9\u30bf\u30fc\/\u30b9\u30ec\u30fc\u30d6 \u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u3001\u30c7\u30fc\u30bf\u306e\u4e00\u8cab\u6027\u3068\u6574\u5408\u6027\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306b\u3001\u969c\u5bb3\u5fa9\u65e7\u3084\u30c7\u30fc\u30bf\u540c\u671f\u306a\u3069\u306e\u554f\u984c\u306b\u6ce8\u610f\u3092\u6255\u3046\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis \u30b7\u30e3\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u9ad8\u5ea6\u306a\u6a5f\u80fd\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u30b7\u30e3\u30fc\u30c7\u30a3\u30f3\u30b0 (\u30b7\u30e3\u30fc\u30c7\u30a3\u30f3\u30b0) \u306f\u3001Redis \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u8907\u6570\u306e\u30b7\u30e3\u30fc\u30c9 (\u30b7\u30e3\u30fc\u30c9) \u306b\u5206\u5272\u3067\u304d\u308b\u9ad8\u5ea6\u306a\u6a5f\u80fd\u3067\u3042\u308a\u3001\u5404\u30b7\u30e3\u30fc\u30c9\u3092\u7570\u306a\u308b\u7269\u7406\u30b5\u30fc\u30d0\u30fc\u307e\u305f\u306f\u4eee\u60f3\u30de\u30b7\u30f3\u306b\u30c7\u30d7\u30ed\u30a4\u3057\u3066\u3001\u6c34\u5e73\u65b9\u5411\u306e\u30c7\u30fc\u30bf\u5206\u5272\u3068\u5206\u6563\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002Redis \u306e\u65ad\u7247\u5316\u306b\u3088\u308a\u3001Redis \u306e\u53ef\u7528\u6027\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5411\u4e0a\u3059\u308b\u3068\u540c\u6642\u306b\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u306e\u4fdd\u5b58\u3068\u51e6\u7406\u304c\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>Redis \u30b7\u30e3\u30fc\u30c7\u30a3\u30f3\u30b0\u306b\u306f\u3001\u6b21\u306e\u4e3b\u306a\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30c7\u30fc\u30bf\u30bb\u30b0\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u65b9\u6cd5: Redis sharding \u306f\u30c7\u30fc\u30bf\u30bb\u30b0\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u306b\u30c7\u30fc\u30bf\u30b7\u30e3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u4f7f\u7528\u3057\u307e\u3059. Redis \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u8907\u6570\u306e\u30b7\u30e3\u30fc\u30c9\u306b\u5206\u5272\u3055\u308c\u307e\u3059. \u5404\u30b7\u30e3\u30fc\u30c9\u306b\u306f\u30c7\u30fc\u30bf\u306e\u4e00\u90e8\u304c\u542b\u307e\u308c\u307e\u3059. \u30bb\u30b0\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u65b9\u6cd5\u306f, \u3055\u307e\u3056\u307e\u306a\u30cb\u30fc\u30ba\u3084\u30b7\u30ca\u30ea\u30aa\u306b\u5fdc\u3058\u3066\u9078\u629e\u3067\u304d\u307e\u3059.\u30c7\u30fc\u30bf\u306e\u4fa1\u5024\u306f\u30cf\u30c3\u30b7\u30e5\u5316\u3055\u308c\u3001\u30c7\u30fc\u30bf\u306e\u30d3\u30b8\u30cd\u30b9\u30bf\u30a4\u30d7\u306a\u3069\u306b\u5fdc\u3058\u3066\u5206\u5272\u3055\u308c\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30b7\u30e3\u30fc\u30c9 \u30ce\u30fc\u30c9\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3: \u5404\u30b7\u30e3\u30fc\u30c9\u306f\u7570\u306a\u308b\u7269\u7406\u30b5\u30fc\u30d0\u30fc\u307e\u305f\u306f\u4eee\u60f3\u30de\u30b7\u30f3\u306b\u30c7\u30d7\u30ed\u30a4\u3067\u304d\u3001\u5404\u30b7\u30e3\u30fc\u30c9\u306f\u30c7\u30fc\u30bf\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3068\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b Redis \u30de\u30b9\u30bf\u30fc\/\u30b9\u30ec\u30fc\u30d6 \u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3067\u304d\u308b\u305f\u3081\u3001Redis \u306e\u53ef\u7528\u6027\u3068\u4fe1\u983c\u6027\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30b7\u30e3\u30fc\u30c9 \u30eb\u30fc\u30c6\u30a3\u30f3\u30b0: Redis \u30b7\u30e3\u30fc\u30c9\u306f\u30c7\u30fc\u30bf \u30a2\u30af\u30bb\u30b9\u306b\u30b7\u30e3\u30fc\u30c9 \u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u4f7f\u7528\u3057\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u30c7\u30fc\u30bf \u30ad\u30fc\u5024\u3068\u30b7\u30e3\u30fc\u30c7\u30a3\u30f3\u30b0 \u30eb\u30fc\u30eb\u306b\u57fa\u3065\u3044\u3066\u30c7\u30fc\u30bf \u30a2\u30af\u30bb\u30b9\u306b\u5bfe\u5fdc\u3059\u308b\u30b7\u30e3\u30fc\u30c9 \u30ce\u30fc\u30c9\u3092\u9078\u629e\u3057\u3001\u30c7\u30fc\u30bf\u306e\u8aad\u307f\u53d6\u308a\u3001\u66f8\u304d\u8fbc\u307f\u3001\u304a\u3088\u3073\u51e6\u7406\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u969c\u5bb3\u5fa9\u65e7: \u30b7\u30e3\u30fc\u30c9 \u30ce\u30fc\u30c9\u306b\u969c\u5bb3\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u3001\u30b9\u30ec\u30fc\u30d6 \u30ce\u30fc\u30c9\u306e 1 \u3064\u3092\u65b0\u3057\u3044\u30de\u30b9\u30bf\u30fc \u30ce\u30fc\u30c9\u306b\u6607\u683c\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081\u3001\u969c\u5bb3\u5fa9\u65e7\u3068\u9ad8\u53ef\u7528\u6027\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>Redis \u30b7\u30e3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30c7\u30fc\u30bf\u306e\u6c34\u5e73\u5206\u5272\u3068\u5206\u6563\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u5b9f\u73fe\u3057\u3001Redis \u306e\u53ef\u7528\u6027\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u540c\u6642\u306b\u3001\u6700\u9069\u306a\u30c7\u30fc\u30bf \u30bb\u30b0\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u3068\u30a2\u30af\u30bb\u30b9\u52b9\u7387\u3092\u9054\u6210\u3059\u308b\u305f\u3081\u306b\u3001\u7279\u5b9a\u306e\u30cb\u30fc\u30ba\u3068\u30b7\u30ca\u30ea\u30aa\u306b\u5f93\u3063\u3066\u3001\u3055\u307e\u3056\u307e\u306a\u30d5\u30e9\u30b0\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u6226\u7565\u3068\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0 \u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002Redis \u30b7\u30e3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u3001\u30c7\u30fc\u30bf\u306e\u6b63\u78ba\u6027\u3068\u4fe1\u983c\u6027\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306b\u3001\u30c7\u30fc\u30bf\u306e\u4e00\u8cab\u6027\u3068\u5b8c\u5168\u6027\u306b\u6ce8\u610f\u3092\u6255\u3046\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u5b9f\u969b\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30c7\u30fc\u30bf\u306e\u6c34\u5e73\u5206\u5272\u3068\u5206\u6563\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u5b9f\u73fe\u3057\u3001Redis \u306e\u53ef\u7528\u6027\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5411\u4e0a\u3055\u305b\u308b\u305f\u3081\u306b\u3001\u30d3\u30b8\u30cd\u30b9 \u30cb\u30fc\u30ba\u3068\u30c7\u30fc\u30bf \u30b9\u30b1\u30fc\u30eb\u306b\u5fdc\u3058\u3066 Redis \u30b7\u30e3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u4f7f\u7528\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002Redis \u30b7\u30e3\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u3001\u30c7\u30fc\u30bf\u306e\u6b63\u78ba\u6027\u3068\u4fe1\u983c\u6027\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306b\u3001\u969c\u5bb3\u56de\u5fa9\u3001\u30c7\u30fc\u30bf\u540c\u671f\u3001\u30c7\u30fc\u30bf\u306e\u4e00\u8cab\u6027\u306a\u3069\u306e\u554f\u984c\u306b\u6ce8\u610f\u3092\u6255\u3046\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis \u306e\u9ad8\u5ea6\u306a\u6a5f\u80fd\u30af\u30e9\u30b9\u30bf\u30fc\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u30af\u30e9\u30b9\u30bf\u30fc\u306f Redis \u306e\u9ad8\u5ea6\u306a\u6a5f\u80fd\u3067\u3042\u308a\u3001\u8907\u6570\u306e Redis \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u30af\u30e9\u30b9\u30bf\u30fc\u306b\u5f62\u6210\u3057\u3001\u30c7\u30fc\u30bf\u306e\u6c34\u5e73\u5206\u5272\u3068\u5206\u6563\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u5b9f\u73fe\u3057\u3001Redis \u306e\u53ef\u7528\u6027\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Redis \u30af\u30e9\u30b9\u30bf\u30fc\u306f\u5206\u6563\u578b\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3092\u63a1\u7528\u3057\u3001\u5358\u4e00\u969c\u5bb3\u70b9\u304c\u306a\u304f\u3001\u30ce\u30fc\u30c9\u3092\u52d5\u7684\u306b\u8ffd\u52a0\u304a\u3088\u3073\u524a\u9664\u3067\u304d\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u306e\u4fdd\u5b58\u3068\u51e6\u7406\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>Redis \u30af\u30e9\u30b9\u30bf\u30fc\u306b\u306f\u3001\u6b21\u306e\u4e3b\u306a\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30c7\u30fc\u30bf \u30b7\u30e3\u30fc\u30c7\u30a3\u30f3\u30b0\u65b9\u5f0f: Redis \u30af\u30e9\u30b9\u30bf\u30fc\u306f\u3001\u30c7\u30fc\u30bf \u30bb\u30b0\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u306b\u30c7\u30fc\u30bf \u30b7\u30e3\u30fc\u30c7\u30a3\u30f3\u30b0\u65b9\u5f0f\u3092\u63a1\u7528\u3057\u3001Redis \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u8907\u6570\u306e\u30b9\u30ed\u30c3\u30c8 (\u30b9\u30ed\u30c3\u30c8) \u306b\u5206\u5272\u3057\u3001\u5404\u30b9\u30ed\u30c3\u30c8\u3092\u7570\u306a\u308b Redis \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u5272\u308a\u5f53\u3066\u3066\u3001\u6c34\u5e73\u65b9\u5411\u306e\u30c7\u30fc\u30bf\u5206\u5272\u3068\u5206\u6563\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30af\u30e9\u30b9\u30bf\u30fc \u30ce\u30fc\u30c9\u306e\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3: \u5404 Redis \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306f\u3001\u30c7\u30fc\u30bf\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3068\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b Redis \u30de\u30b9\u30bf\u30fc\/\u30b9\u30ec\u30fc\u30d6 \u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3067\u304d\u308b\u305f\u3081\u3001Redis \u306e\u53ef\u7528\u6027\u3068\u4fe1\u983c\u6027\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30af\u30e9\u30b9\u30bf\u30fc \u30ce\u30fc\u30c9\u306e\u81ea\u52d5\u691c\u51fa: Redis \u30af\u30e9\u30b9\u30bf\u30fc\u306f\u3001\u65b0\u3057\u3044\u30ce\u30fc\u30c9\u306e\u81ea\u52d5\u691c\u51fa\u3068\u30aa\u30d5\u30e9\u30a4\u30f3 \u30ce\u30fc\u30c9\u306e\u524a\u9664\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3001\u52d5\u7684\u306b\u62e1\u5f35\u304a\u3088\u3073\u7e2e\u5c0f\u3059\u308b\u6a5f\u80fd\u3092\u5099\u3048\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30af\u30e9\u30b9\u30bf \u30ce\u30fc\u30c9 \u30eb\u30fc\u30c6\u30a3\u30f3\u30b0: Redis \u30af\u30e9\u30b9\u30bf\u306f\u3001\u30c7\u30fc\u30bf \u30a2\u30af\u30bb\u30b9\u306b\u30af\u30e9\u30b9\u30bf \u30ce\u30fc\u30c9 \u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u3001\u30c7\u30fc\u30bf\u306e\u8aad\u307f\u53d6\u308a\u3001\u66f8\u304d\u8fbc\u307f\u3001\u304a\u3088\u3073\u51e6\u7406\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306b\u3001\u30c7\u30fc\u30bf \u30ad\u30fc\u5024\u3068\u30d5\u30e9\u30b0\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3 \u30eb\u30fc\u30eb\u306b\u5f93\u3063\u3066\u3001\u30c7\u30fc\u30bf \u30a2\u30af\u30bb\u30b9\u306b\u5bfe\u5fdc\u3059\u308b\u30b9\u30ed\u30c3\u30c8\u3068 Redis \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u969c\u5bb3\u56de\u5fa9: Redis \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u307e\u305f\u306f\u30b9\u30ed\u30c3\u30c8\u306b\u969c\u5bb3\u304c\u767a\u751f\u3059\u308b\u3068\u3001Redis \u30af\u30e9\u30b9\u30bf\u30fc\u306f\u30af\u30e9\u30b9\u30bf\u30fc\u304b\u3089\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u307e\u305f\u306f\u30b9\u30ed\u30c3\u30c8\u3092\u81ea\u52d5\u7684\u306b\u524a\u9664\u3057\u3001\u30c7\u30fc\u30bf\u3092\u4ed6\u306e\u901a\u5e38\u306e Redis \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u307e\u305f\u306f\u30b9\u30ed\u30c3\u30c8\u306b\u79fb\u884c\u3057\u3066\u3001\u969c\u5bb3\u56de\u5fa9\u3068\u9ad8\u901f\u53ef\u7528\u6027\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>Redis \u30af\u30e9\u30b9\u30bf\u30fc\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30c7\u30fc\u30bf\u306e\u6c34\u5e73\u5206\u5272\u3068\u5206\u6563\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u5b9f\u73fe\u3067\u304d\u308b\u305f\u3081\u3001Redis \u306e\u53ef\u7528\u6027\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002\u540c\u6642\u306b\u3001Redis \u30af\u30e9\u30b9\u30bf\u30fc\u306b\u306f\u52d5\u7684\u306b\u62e1\u5f35\u304a\u3088\u3073\u7e2e\u5c0f\u3059\u308b\u6a5f\u80fd\u304c\u3042\u308a\u3001\u3055\u307e\u3056\u307e\u306a\u30d3\u30b8\u30cd\u30b9\u3084\u8ca0\u8377\u306b\u9069\u5fdc\u3059\u308b\u305f\u3081\u306b\u3001\u7279\u5b9a\u306e\u30cb\u30fc\u30ba\u3084\u30b7\u30ca\u30ea\u30aa\u306b\u5f93\u3063\u3066\u30ce\u30fc\u30c9\u3092\u52d5\u7684\u306b\u8ffd\u52a0\u304a\u3088\u3073\u524a\u9664\u3067\u304d\u307e\u3059\u3002Redis \u30af\u30e9\u30b9\u30bf\u30fc\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u3001\u30c7\u30fc\u30bf\u306e\u6b63\u78ba\u6027\u3068\u4fe1\u983c\u6027\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306b\u3001\u30c7\u30fc\u30bf\u306e\u4e00\u8cab\u6027\u3068\u5b8c\u5168\u6027\u306b\u6ce8\u610f\u3092\u6255\u3046\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u5b9f\u969b\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30c7\u30fc\u30bf\u306e\u6c34\u5e73\u5206\u5272\u3068\u5206\u6563\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u5b9f\u73fe\u3057\u3001Redis \u306e\u53ef\u7528\u6027\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5411\u4e0a\u3055\u305b\u308b\u305f\u3081\u306b\u3001\u30d3\u30b8\u30cd\u30b9 \u30cb\u30fc\u30ba\u3068\u30c7\u30fc\u30bf\u306e\u898f\u6a21\u306b\u5fdc\u3058\u3066 Redis \u30af\u30e9\u30b9\u30bf\u30fc\u3092\u4f7f\u7528\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002Redis \u30af\u30e9\u30b9\u30bf\u30fc\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u3001\u30c7\u30fc\u30bf\u306e\u6b63\u78ba\u6027\u3068\u4fe1\u983c\u6027\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306b\u3001Redis \u30af\u30e9\u30b9\u30bf\u30fc\u306e\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3068\u30eb\u30fc\u30eb\u3001\u304a\u3088\u3073\u30c7\u30fc\u30bf\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3068\u79fb\u884c\u306e\u30e1\u30ab\u30cb\u30ba\u30e0\u3092\u7406\u89e3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis \u3068\u4ed6\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u306e\u6bd4\u8f03\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u306f\u30aa\u30fc\u30d7\u30f3 \u30bd\u30fc\u30b9\u306e\u30a4\u30f3\u30e1\u30e2\u30ea \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3042\u308a\u3001\u4ed6\u306e\u7a2e\u985e\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u6bd4\u8f03\u3057\u3066\u3001\u6b21\u306e\u4e3b\u306a\u9577\u6240\u3068\u77ed\u6240\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u9ad8\u901f: Redis \u306f\u30e1\u30e2\u30ea\u30d9\u30fc\u30b9\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3059. \u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u306f\u30e1\u30e2\u30ea\u306b\u4fdd\u5b58\u3055\u308c\u308b\u305f\u3081\u3001\u8aad\u307f\u53d6\u308a\u3068\u66f8\u304d\u8fbc\u307f\u306e\u901f\u5ea6\u3068\u5fdc\u7b54\u6642\u200b\u200b\u9593\u304c\u975e\u5e38\u306b\u9ad8\u901f\u3067\u3042\u308a\u3001\u9ad8\u3044\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u8981\u4ef6\u3092\u6301\u3064\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30b7\u30ca\u30ea\u30aa\u306b\u9069\u3057\u3066\u3044\u307e\u3059.&nbsp;\u5f93\u6765\u306e\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u3001\u6bd4\u8f03\u7684\u9045\u3044\u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af\u304b\u3089\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u53d6\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u8c4a\u5bcc\u306a\u30c7\u30fc\u30bf\u578b: Redis \u306f\u3001\u6587\u5b57\u5217\u3001\u30ea\u30b9\u30c8\u3001\u30cf\u30c3\u30b7\u30e5\u3001\u30bb\u30c3\u30c8\u3001\u9806\u5e8f\u4ed8\u304d\u30bb\u30c3\u30c8\u306a\u3069\u306e\u8907\u6570\u306e\u30c7\u30fc\u30bf\u578b\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3001\u3055\u307e\u3056\u307e\u306a\u578b\u306e\u30c7\u30fc\u30bf\u3092\u67d4\u8edf\u306b\u683c\u7d0d\u304a\u3088\u3073\u64cd\u4f5c\u3067\u304d\u307e\u3059\u3002\u5f93\u6765\u306e\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u8868\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u306e\u307f\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u308a\u3001\u3055\u307e\u3056\u307e\u306a\u7a2e\u985e\u306e\u30c7\u30fc\u30bf\u3092\u67d4\u8edf\u306b\u683c\u7d0d\u304a\u3088\u3073\u64cd\u4f5c\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/li>\n\n\n\n<li>\u30c7\u30fc\u30bf\u306e\u6c38\u7d9a\u6027: Redis \u306f\u3001\u3055\u307e\u3056\u307e\u306a\u30c7\u30fc\u30bf\u306e\u6c38\u7d9a\u5316\u65b9\u6cd5\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u308a\u3001\u30e1\u30e2\u30ea\u5185\u306e\u30c7\u30fc\u30bf\u3092\u30c7\u30a3\u30b9\u30af\u306b\u4fdd\u5b58\u3057\u3066\u3001\u30c7\u30fc\u30bf\u306e\u6c38\u7d9a\u6027\u3068\u4fe1\u983c\u6027\u3092\u78ba\u4fdd\u3067\u304d\u307e\u3059\u3002\u5f93\u6765\u306e\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3082\u30c7\u30fc\u30bf\u306e\u6c38\u7d9a\u6027\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9 \u30b3\u30b9\u30c8\u304c\u9ad8\u304f\u306a\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u512a\u308c\u305f\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3: Redis \u306f\u3001\u30de\u30b9\u30bf\u30fc\/\u30b9\u30ec\u30fc\u30d6 \u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30b7\u30e3\u30fc\u30c7\u30a3\u30f3\u30b0\u306a\u3069\u306e\u9ad8\u5ea6\u306a\u6a5f\u80fd\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u308a\u3001\u30c7\u30fc\u30bf\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3001\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001\u304a\u3088\u3073\u6c34\u5e73\u65b9\u5411\u306e\u62e1\u5f35\u3092\u5b9f\u73fe\u3067\u304d\u3001\u9ad8\u53ef\u7528\u6027\u304a\u3088\u3073\u9ad8\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30b7\u30ca\u30ea\u30aa\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u5f93\u6765\u306e\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u304c\u5236\u9650\u3055\u308c\u3066\u304a\u308a\u3001\u3088\u308a\u9ad8\u3044\u30b3\u30b9\u30c8\u3068\u8907\u96d1\u3055\u304c\u5fc5\u8981\u3067\u3059\u3002<\/li>\n\n\n\n<li>\u8907\u96d1\u306a\u30af\u30a8\u30ea\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u306a\u3044: Redis \u306f\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u30d9\u30fc\u30b9\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3042\u308a\u3001\u8907\u6570\u30c6\u30fc\u30d6\u30eb\u306e\u7d50\u5408\u30af\u30a8\u30ea\u3084\u30b5\u30d6\u30af\u30a8\u30ea\u306a\u3069\u306e\u8907\u96d1\u306a\u30af\u30a8\u30ea\u64cd\u4f5c\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u8907\u96d1\u306a\u30c7\u30fc\u30bf\u69cb\u9020\u3092\u4fdd\u5b58\u304a\u3088\u3073\u30af\u30a8\u30ea\u3059\u308b\u5834\u5408\u306f\u3001\u8ffd\u52a0\u306e\u51e6\u7406\u3068\u5909\u63db\u304c\u5fc5\u8981\u3067\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u4e00\u822c\u306b\u3001Redis \u306f\u3001\u9ad8\u3044\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u8981\u4ef6\u3001\u5c0f\u3055\u306a\u30c7\u30fc\u30bf \u30dc\u30ea\u30e5\u30fc\u30e0\u3001\u304a\u3088\u3073\u6bd4\u8f03\u7684\u5358\u7d14\u306a\u30c7\u30fc\u30bf\u69cb\u9020 (\u30ad\u30e3\u30c3\u30b7\u30e5\u3001\u30ab\u30a6\u30f3\u30bf\u30fc\u3001\u30ea\u30fc\u30c0\u30fc\u30dc\u30fc\u30c9\u306a\u3069) \u3092\u5099\u3048\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30b7\u30ca\u30ea\u30aa\u306b\u9069\u3057\u3066\u304a\u308a\u3001\u5f93\u6765\u306e\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u8907\u96d1\u306a\u30c7\u30fc\u30bf\u69cb\u9020\u306e\u51e6\u7406\u306b\u9069\u3057\u3066\u304a\u308a\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30b7\u30ca\u30ea\u30aa\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002 e \u30b3\u30de\u30fc\u30b9\u3001\u30bd\u30fc\u30b7\u30e3\u30eb \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306a\u3069\u306e\u8907\u96d1\u306a\u30af\u30a8\u30ea\u3068\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u51e6\u7406\u7528\u3002\u5b9f\u969b\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30c7\u30fc\u30bf\u306e\u6b63\u78ba\u6027\u3068\u4fe1\u983c\u6027\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306b\u3001\u7279\u5b9a\u306e\u30cb\u30fc\u30ba\u3068\u30b7\u30ca\u30ea\u30aa\u306b\u5f93\u3063\u3066\u9069\u5207\u306a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u9078\u629e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis \u3068\u4ed6\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u6bd4\u8f03\u3092\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044 Redis \u3068\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9<\/p>\n\n\n\n<p>Redis \u306f\u30e1\u30e2\u30ea \u30d9\u30fc\u30b9\u306e\u30ad\u30fc\u5024\u30b9\u30c8\u30ec\u30fc\u30b8 \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3059\u304c\u3001\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u30c6\u30fc\u30d6\u30eb \u30d9\u30fc\u30b9\u306e\u30c7\u30fc\u30bf \u30b9\u30c8\u30ec\u30fc\u30b8\u65b9\u5f0f\u3067\u3059\u30022 \u3064\u306e\u4e3b\u306a\u9055\u3044\u306f\u3001\u30c7\u30fc\u30bf \u30b9\u30c8\u30ec\u30fc\u30b8\u3001\u30af\u30a8\u30ea\u8a00\u8a9e\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u51e6\u7406\u3001\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u3001\u304a\u3088\u3073\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30c7\u30fc\u30bf\u306e\u4fdd\u5b58\u65b9\u6cd5: Redis \u306f\u30c7\u30fc\u30bf\u3092\u30e1\u30e2\u30ea\u306b\u4fdd\u5b58\u3057\u307e\u3059\u304c\u3001\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u30c7\u30fc\u30bf\u3092\u30c7\u30a3\u30b9\u30af\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001Redis \u306e\u8aad\u307f\u53d6\u308a\u3068\u66f8\u304d\u8fbc\u307f\u306e\u901f\u5ea6\u306f\u975e\u5e38\u306b\u9ad8\u901f\u3067\u3059\u304c\u3001\u30c7\u30fc\u30bf\u91cf\u306f\u30e1\u30e2\u30ea\u5bb9\u91cf\u306b\u3088\u3063\u3066\u5236\u9650\u3055\u308c\u307e\u3059; \u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u30c7\u30a3\u30b9\u30af\u304b\u3089\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u53d6\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u8aad\u307f\u53d6\u308a\u3068\u66f8\u304d\u8fbc\u307f\u306e\u901f\u5ea6\u306f\u6bd4\u8f03\u7684\u9045\u3044\u3067\u3059\u304c\u3001\u4fdd\u5b58\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u3059\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3002<\/li>\n\n\n\n<li>\u30af\u30a8\u30ea\u8a00\u8a9e: Redis \u306f\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u306e\u5f62\u5f0f\u3067\u30c7\u30fc\u30bf\u3092\u683c\u7d0d\u3057\u3001\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u306e\u53d6\u5f97\u3001\u8a2d\u5b9a\u3001\u524a\u9664\u306a\u3069\u306e\u5358\u7d14\u306a\u691c\u7d22\u3068\u64cd\u4f5c\u306e\u307f\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u304c\u3001\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f SQL \u8a00\u8a9e\u306a\u3069\u306e\u8907\u96d1\u306a\u30af\u30a8\u30ea\u8a00\u8a9e\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002\u30c6\u30fc\u30d6\u30eb \u30e6\u30cb\u30aa\u30f3 \u30af\u30a8\u30ea\u3001\u30b5\u30d6\u30af\u30a8\u30ea\u3001\u30b0\u30eb\u30fc\u30d7\u5316\u3001\u4e26\u3079\u66ff\u3048\u3001\u96c6\u8a08\u306a\u3069\u3001\u8907\u6570\u306e\u8907\u96d1\u306a\u64cd\u4f5c\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u51e6\u7406: Redis \u306f\u57fa\u672c\u7684\u306a\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u51e6\u7406\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3001MULTI\u3001EXEC\u3001DISCARD\u3001WATCH \u306a\u3069\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4ecb\u3057\u3066\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u64cd\u4f5c\u3092\u5b9f\u88c5\u3067\u304d\u307e\u3059\u304c\u3001\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u306f\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u305b\u3093\u3002\u4e00\u65b9\u3001\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u5b8c\u5168\u306a\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u51e6\u7406\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3001BEGIN\u3001COMMIT \u306a\u3069\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002 \u3001\u304a\u3088\u3073 ROLLBACK \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u64cd\u4f5c\u3092\u5b9f\u88c5\u3057\u3001\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u3068\u30c7\u30fc\u30bf\u306e\u4e00\u8cab\u6027\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3: Redis \u306f\u3001\u30b7\u30e3\u30fc\u30c7\u30a3\u30f3\u30b0\u3084\u30de\u30b9\u30bf\u30fc\/\u30b9\u30ec\u30fc\u30d6 \u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u306e\u9ad8\u5ea6\u306a\u6a5f\u80fd\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u308a\u3001\u30c7\u30fc\u30bf\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3001\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001\u304a\u3088\u3073\u6c34\u5e73\u5c55\u958b\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u3001\u5206\u6563\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3084\u30de\u30b9\u30bf\u30fc\/\u30b9\u30ec\u30fc\u30d6 \u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u306e\u6a5f\u80fd\u3082\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u3088\u308a\u9ad8\u3044\u30b3\u30b9\u30c8\u3068\u8907\u96d1\u3055\u304c\u5fc5\u8981\u3067\u3059\u3002 .<\/li>\n\n\n\n<li>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9: Redis \u306f\u975e\u5e38\u306b\u9ad8\u901f\u306a\u8aad\u307f\u53d6\u308a\u3068\u66f8\u304d\u8fbc\u307f\u306e\u901f\u5ea6\u3068\u5fdc\u7b54\u6642\u200b\u200b\u9593\u3092\u5099\u3048\u3066\u304a\u308a\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u3001\u30ab\u30a6\u30f3\u30bf\u30fc\u3001\u30e9\u30f3\u30ad\u30f3\u30b0\u306a\u3069\u306e\u9ad8\u3044\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u8981\u4ef6\u3092\u6301\u3064\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30b7\u30ca\u30ea\u30aa\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306f\u6bd4\u8f03\u7684\u9045\u3044\u3067\u3059\u304c\u3001\u51e6\u7406\u3067\u304d\u307e\u3059\u3002\u8907\u96d1\u306a\u30c7\u30fc\u30bf\u69cb\u9020\u3068\u5927\u898f\u6a21\u306a\u30c7\u30fc\u30bf\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u8981\u7d04\u3059\u308b\u3068\u3001Redis \u306f\u3001\u30c7\u30fc\u30bf\u91cf\u304c\u5c11\u306a\u304f\u3001\u30c7\u30fc\u30bf\u69cb\u9020\u304c\u6bd4\u8f03\u7684\u5358\u7d14\u3067\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u3001\u30ab\u30a6\u30f3\u30bf\u30fc\u3001\u30ea\u30fc\u30c0\u30fc\u30dc\u30fc\u30c9\u306a\u3069\u306e\u9ad8\u3044\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5fc5\u8981\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30b7\u30ca\u30ea\u30aa\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002\u4e00\u65b9\u3001\u30ea\u30ec\u30fc\u30b7\u30e7\u30ca\u30eb \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u3001\u8907\u96d1\u306a\u30c7\u30fc\u30bf\u69cb\u9020\u3092\u51e6\u7406\u3057\u3001\u8907\u96d1\u306a\u30af\u30a8\u30ea\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u306e\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002 e \u30b3\u30de\u30fc\u30b9\u3001\u30bd\u30fc\u30b7\u30e3\u30eb \u30cd\u30c3\u30c8\u30ef\u30fc\u30ad\u30f3\u30b0\u306a\u3069\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u51e6\u7406\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30b7\u30ca\u30ea\u30aa\u3002\u5b9f\u969b\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30c7\u30fc\u30bf\u306e\u6b63\u78ba\u6027\u3068\u4fe1\u983c\u6027\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306b\u3001\u7279\u5b9a\u306e\u30cb\u30fc\u30ba\u3068\u30b7\u30ca\u30ea\u30aa\u306b\u5f93\u3063\u3066\u9069\u5207\u306a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u9078\u629e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>Redis \u3068\u4ed6\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044 Redis \u3068\u4ed6\u306e NoSQL \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9<\/p>\n\n\n\n<p>Redis \u3068\u4ed6\u306e NoSQL \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u6bd4\u8f03\u306b\u306f\u3001\u4e3b\u306b\u6b21\u306e\u5074\u9762\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30c7\u30fc\u30bf\u306e\u4fdd\u5b58\u65b9\u6cd5: Redis \u306f\u30e1\u30e2\u30ea\u30d9\u30fc\u30b9\u306e\u30ad\u30fc\u5024\u30b9\u30c8\u30ec\u30fc\u30b8 \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3059\u304c\u3001\u4ed6\u306e NoSQL \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9 (MongoDB\u3001Cassandra \u306a\u3069) \u306f\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3001\u5217\u30d5\u30a1\u30df\u30ea\u30fc\u3001\u30b0\u30e9\u30d5\u306a\u3069\u306e\u3055\u307e\u3056\u307e\u306a\u30c7\u30fc\u30bf \u30e2\u30c7\u30eb\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u3055\u307e\u3056\u307e\u306a\u30c7\u30fc\u30bf \u30b9\u30c8\u30ec\u30fc\u30b8\u8981\u4ef6\u306b\u9069\u3057\u305f\u3055\u307e\u3056\u307e\u306a\u30c7\u30fc\u30bf \u30e2\u30c7\u30eb\u304c\u3042\u308a\u3001\u6700\u9069\u306a NoSQL \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30c7\u30fc\u30bf\u306e\u4e00\u8cab\u6027: Redis \u306f\u3001\u8aad\u307f\u53d6\u308a\u3068\u66f8\u304d\u8fbc\u307f\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u5fdc\u7b54\u6642\u9593\u304c\u9ad8\u304f\u306a\u308a\u307e\u3059\u304c\u3001\u30c7\u30fc\u30bf\u306e\u4e00\u8cab\u6027\u304c\u3044\u304f\u3089\u304b\u72a0\u7272\u306b\u306a\u308a\u307e\u3059\u3002\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3084\u8907\u96d1\u306a\u30c7\u30fc\u30bf\u51e6\u7406\u306e\u5834\u5408\u3001\u30c7\u30fc\u30bf\u306e\u4e0d\u6574\u5408\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u4ed6\u306e NoSQL \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u306f\u3001\u7d50\u679c\u6574\u5408\u6027\u3001\u5f37\u529b\u306a\u6574\u5408\u6027\u3001\u30bb\u30c3\u30b7\u30e7\u30f3\u6574\u5408\u6027\u306a\u3069\u3001\u3055\u307e\u3056\u307e\u306a\u30c7\u30fc\u30bf\u6574\u5408\u6027\u30e2\u30c7\u30eb\u304c\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u7279\u5b9a\u306e\u30cb\u30fc\u30ba\u306b\u5fdc\u3058\u3066\u6700\u9069\u306a\u30c7\u30fc\u30bf\u6574\u5408\u6027\u30e2\u30c7\u30eb\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u51e6\u7406: Redis \u306f\u57fa\u672c\u7684\u306a\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u51e6\u7406\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u304c\u3001\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u64cd\u4f5c\u306f\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u305b\u3093\u3002\u4ed6\u306e NoSQL \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u5b8c\u5168\u306a\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u51e6\u7406\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3001\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u64cd\u4f5c\u3092\u30b5\u30dd\u30fc\u30c8\u3067\u304d\u3001\u30c7\u30fc\u30bf\u306e\u4e00\u8cab\u6027\u3068\u6574\u5408\u6027\u3092\u78ba\u4fdd\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3: Redis \u306f\u3001\u30b7\u30e3\u30fc\u30c7\u30a3\u30f3\u30b0\u3084\u30de\u30b9\u30bf\u30fc\/\u30b9\u30ec\u30fc\u30d6 \u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u306e\u9ad8\u5ea6\u306a\u6a5f\u80fd\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u304a\u308a\u3001\u30c7\u30fc\u30bf\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3001\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001\u304a\u3088\u3073\u6c34\u5e73\u62e1\u5f35\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002\u4ed6\u306e NoSQL \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3082\u3001\u9ad8\u53ef\u7528\u6027\u3068\u9ad8\u53ef\u7528\u6027\u3092\u30b5\u30dd\u30fc\u30c8\u3067\u304d\u308b\u5206\u6563\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3084\u30ec\u30d7\u30ea\u30ab \u30bb\u30c3\u30c8\u306a\u3069\u306e\u6a5f\u80fd\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002 -\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30b7\u30fc\u30f3\u3002<\/li>\n\n\n\n<li>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30b7\u30ca\u30ea\u30aa: Redis \u306f\u3001\u9ad8\u3044\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u8981\u4ef6\u3001\u5c11\u91cf\u306e\u30c7\u30fc\u30bf \u30dc\u30ea\u30e5\u30fc\u30e0\u3001\u304a\u3088\u3073\u6bd4\u8f03\u7684\u5358\u7d14\u306a\u30c7\u30fc\u30bf\u69cb\u9020 (\u30ad\u30e3\u30c3\u30b7\u30e5\u3001\u30ab\u30a6\u30f3\u30bf\u30fc\u3001\u30ea\u30fc\u30c0\u30fc\u30dc\u30fc\u30c9\u306a\u3069) \u3092\u5099\u3048\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30b7\u30ca\u30ea\u30aa\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002\u4e00\u65b9\u3001\u4ed6\u306e NoSQL \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306f\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8 \u30b9\u30c8\u30ec\u30fc\u30b8\u306a\u3069\u306e\u3055\u307e\u3056\u307e\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30b7\u30ca\u30ea\u30aa\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002 \u3001\u6642\u7cfb\u5217\u30c7\u30fc\u30bf\u4fdd\u5b58\u3001\u30b0\u30e9\u30d5\u30c7\u30fc\u30bf\u4fdd\u5b58\u306a\u3069<\/li>\n<\/ol>\n\n\n\n<p>\u8981\u7d04\u3059\u308b\u3068\u3001Redis \u3068\u4ed6\u306e NoSQL \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u306f\u3001\u30c7\u30fc\u30bf \u30b9\u30c8\u30ec\u30fc\u30b8\u65b9\u6cd5\u3001\u30c7\u30fc\u30bf\u306e\u4e00\u8cab\u6027\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u51e6\u7406\u3001\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u3001\u304a\u3088\u3073\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30b7\u30ca\u30ea\u30aa\u306b\u95a2\u3057\u3066\u3001\u7279\u5b9a\u306e\u9055\u3044\u3068\u5229\u70b9\u3068\u6b20\u70b9\u304c\u3042\u308a\u307e\u3059\u3002\u5b9f\u969b\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30c7\u30fc\u30bf\u306e\u6b63\u78ba\u6027\u3068\u4fe1\u983c\u6027\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306b\u3001\u7279\u5b9a\u306e\u30cb\u30fc\u30ba\u3068\u30b7\u30ca\u30ea\u30aa\u306b\u5f93\u3063\u3066\u9069\u5207\u306a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u9078\u629e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>\u5b9f\u969b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306eRedis\u306e\u9069\u7528\u4e8b\u4f8b\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>Redis \u306f\u5b9f\u969b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u5e45\u5e83\u3044\u9069\u7528\u4e8b\u4f8b\u304c\u3042\u308a\u3001\u6700\u3082\u4e00\u822c\u7684\u306a\u9069\u7528\u30b7\u30ca\u30ea\u30aa\u306f\u30ad\u30e3\u30c3\u30b7\u30e5 \u30b7\u30b9\u30c6\u30e0\u3067\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u3084\u5546\u54c1\u60c5\u5831\u306a\u3069\u3001\u983b\u7e41\u306b\u8aad\u307f\u53d6\u3089\u308c\u3066\u64cd\u4f5c\u3055\u308c\u308b\u30c7\u30fc\u30bf\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30c7\u30fc\u30bf\u304c\u6bce\u56de\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u8aad\u307f\u53d6\u3089\u308c\u308b\u3068\u3001\u5927\u91cf\u306e\u30b5\u30fc\u30d0\u30fc \u30ea\u30bd\u30fc\u30b9\u304c\u6d88\u8cbb\u3055\u308c\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u5fdc\u7b54\u901f\u5ea6\u304c\u4f4e\u4e0b\u3057\u3001\u30e6\u30fc\u30b6\u30fc \u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3057\u305f\u304c\u3063\u3066\u3001\u3053\u308c\u3089\u306e\u4e00\u822c\u7684\u306b\u4f7f\u7528\u3055\u308c\u308b\u30c7\u30fc\u30bf\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3068\u3057\u3066 Redis \u306b\u4fdd\u5b58\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306b\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u3053\u308c\u3089\u306e\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u3001\u307e\u305a Redis \u306b\u30af\u30a8\u30ea\u3092\u9001\u4fe1\u3057\u3001\u30c7\u30fc\u30bf\u304c Redis \u306b\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u79fb\u52d5\u3057\u3066\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3057\u3001\u30af\u30a8\u30ea\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092 Redis \u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u306a\u304f\u3001\u6b21\u56de Redis \u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u3068\u304d\u306b\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3053\u3068\u3002<\/p>\n\n\n\n<p>EC \u30b5\u30a4\u30c8\u3092\u4f8b\u306b\u3068\u308b\u3068\u3001\u5546\u54c1\u540d\u3001\u4fa1\u683c\u3001\u5728\u5eab\u306a\u3069\u306e\u5546\u54c1\u60c5\u5831\u3092 Redis \u306b\u4fdd\u5b58\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306b\u3001\u30e6\u30fc\u30b6\u30fc\u304cWeb\u30b5\u30a4\u30c8\u3067\u5546\u54c1\u60c5\u5831\u3092\u78ba\u8a8d\u3059\u308b\u3068\u3001\u307e\u305aRedis\u306b\u5546\u54c1\u60c5\u5831\u3092\u554f\u3044\u5408\u308f\u305b\u3001Redis\u306b\u5546\u54c1\u60c5\u5831\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u306f\u76f4\u63a5\u30e6\u30fc\u30b6\u30fc\u306b\u8fd4\u3055\u308c\u3001\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306f\u76f4\u63a5\u30e6\u30fc\u30b6\u30fc\u306b\u8fd4\u3055\u308c\u307e\u3059\u3002 Redis \u3067\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u7167\u4f1a\u3055\u308c\u3001\u7167\u4f1a\u3055\u308c\u305f\u88fd\u54c1\u60c5\u5831\u304c Redis \u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u4fdd\u5b58\u3055\u308c\u308b\u305f\u3081\u3001\u6b21\u306e\u8a2a\u554f\u6642\u306b Redis \u304b\u3089\u76f4\u63a5\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Redis \u30ad\u30e3\u30c3\u30b7\u30e5 \u30b7\u30b9\u30c6\u30e0\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u8ca0\u8377\u3092\u52b9\u679c\u7684\u306b\u8efd\u6e1b\u3057\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u5fdc\u7b54\u901f\u5ea6\u3068\u5b89\u5b9a\u6027\u3092\u5411\u4e0a\u3055\u305b\u308b\u3068\u540c\u6642\u306b\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u30b3\u30b9\u30c8\u3068\u8907\u96d1\u3055\u3092\u8efd\u6e1b\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>\u5b9f\u969b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306eRedis\u306e\u9069\u7528\u4e8b\u4f8b\u30ab\u30a6\u30f3\u30bf\u30fc\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>\u5b9f\u969b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306e Redis \u306e\u9069\u7528\u4e8b\u4f8b\u306b\u306f\u3001\u30ab\u30a6\u30f3\u30bf\u30fc \u30b7\u30b9\u30c6\u30e0\u3082\u542b\u307e\u308c\u307e\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30b7\u30b9\u30c6\u30e0\u3067\u306f\u3001Web \u30b5\u30a4\u30c8\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u30af\u30ea\u30c3\u30af\u306a\u3069\u3001\u3044\u304f\u3064\u304b\u306e\u30c7\u30fc\u30bf\u3092\u30ab\u30a6\u30f3\u30c8\u3057\u3066\u30ab\u30a6\u30f3\u30c8\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30c7\u30fc\u30bf\u306e\u30ab\u30a6\u30f3\u30c8\u304c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u76f4\u63a5\u5b9f\u884c\u3055\u308c\u308b\u3068\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5927\u304d\u306a\u8ca0\u8377\u304c\u304b\u304b\u308a\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u5b89\u5b9a\u6027\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3057\u305f\u304c\u3063\u3066\u3001\u3053\u308c\u3089\u306e\u30ab\u30a6\u30f3\u30bf\u30fc \u30c7\u30fc\u30bf\u3092 Redis \u306b\u4fdd\u5b58\u3057\u3001Redis \u304c\u63d0\u4f9b\u3059\u308b\u30a2\u30c8\u30df\u30c3\u30af\u64cd\u4f5c (INCRBY \u306a\u3069) \u3092\u4f7f\u7528\u3057\u3066\u3001\u30c7\u30fc\u30bf\u306e\u81ea\u5df1\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3068\u81ea\u5df1\u30c7\u30af\u30ea\u30e1\u30f3\u30c8\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306b\u3001\u7279\u5b9a\u306e\u30ab\u30a6\u30f3\u30bf\u30fc\u3092\u5897\u6e1b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u3001\u64cd\u4f5c\u306e\u305f\u3081\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u884c\u304b\u306a\u304f\u3066\u3082\u3001Redis \u304c\u63d0\u4f9b\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3092\u76f4\u63a5\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u5fdc\u7b54\u901f\u5ea6\u304c\u5927\u5e45\u306b\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30aa\u30f3\u30e9\u30a4\u30f3 \u30b2\u30fc\u30e0\u3092\u4f8b\u306b\u3068\u308b\u3068\u3001\u30d7\u30ec\u30a4\u30e4\u30fc\u306e\u30dd\u30a4\u30f3\u30c8\u3092 Redis \u306b\u4fdd\u5b58\u3067\u304d\u307e\u3059\u3002\u30d7\u30ec\u30a4\u30e4\u30fc\u304c\u30bf\u30b9\u30af\u3092\u5b8c\u4e86\u3057\u305f\u308a\u5bfe\u6226\u76f8\u624b\u3092\u5012\u3057\u305f\u308a\u3059\u308b\u305f\u3073\u306b\u3001Redis \u304c\u63d0\u4f9b\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3092\u76f4\u63a5\u547c\u3073\u51fa\u3057\u3066\u3001\u30d7\u30ec\u30a4\u30e4\u30fc\u306e\u30dd\u30a4\u30f3\u30c8\u306b\u5bfe\u3057\u3066\u81ea\u52d5\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u64cd\u4f5c\u3092\u5b9f\u884c\u3057\u3001\u7d2f\u7a4d\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002\u30dd\u30a4\u30f3\u30c8\u3068\u7d71\u8a08\u306e\u3002<\/p>\n\n\n\n<p>Redis \u30ab\u30a6\u30f3\u30bf\u30fc \u30b7\u30b9\u30c6\u30e0\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u8ca0\u8377\u3092\u52b9\u679c\u7684\u306b\u8efd\u6e1b\u3057\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u5fdc\u7b54\u901f\u5ea6\u3068\u5b89\u5b9a\u6027\u3092\u5411\u4e0a\u3055\u305b\u3001\u30c7\u30fc\u30bf\u306e\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306e\u30ab\u30a6\u30f3\u30c8\u3068\u7d71\u8a08\u3092\u5b9f\u73fe\u3057\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30b7\u30b9\u30c6\u30e0\u304c\u30d3\u30b8\u30cd\u30b9\u5206\u6790\u3068\u610f\u601d\u6c7a\u5b9a\u3092\u3088\u308a\u9069\u5207\u306b\u884c\u3046\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002 -\u4f5c\u308b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>\u5b9f\u969b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306eRedis\u306e\u9069\u7528\u4e8b\u4f8b\u30e1\u30c3\u30bb\u30fc\u30b8\u30ad\u30e5\u30fc\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>\u5b9f\u969b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306e Redis \u306e\u9069\u7528\u4e8b\u4f8b\u306b\u306f\u3001\u30e1\u30c3\u30bb\u30fc\u30b8 \u30ad\u30e5\u30fc\u30a4\u30f3\u30b0 \u30b7\u30b9\u30c6\u30e0\u3082\u542b\u307e\u308c\u307e\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30b7\u30b9\u30c6\u30e0\u306b\u306f\u3001\u96fb\u5b50\u30e1\u30fc\u30eb\u306e\u9001\u4fe1\u3001SMS \u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u9001\u4fe1\u306a\u3069\u3001\u975e\u540c\u671f\u51e6\u7406\u3092\u5fc5\u8981\u3068\u3059\u308b\u6642\u9593\u306e\u304b\u304b\u308b\u64cd\u4f5c\u307e\u305f\u306f\u30bf\u30b9\u30af\u304c\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u64cd\u4f5c\u3092\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u76f4\u63a5\u5b9f\u884c\u3059\u308b\u3068\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u52d5\u4f5c\u304c\u30d6\u30ed\u30c3\u30af\u3055\u308c\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u5fdc\u7b54\u901f\u5ea6\u304c\u4f4e\u4e0b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3057\u305f\u304c\u3063\u3066\u3001Redis \u3092\u30e1\u30c3\u30bb\u30fc\u30b8 \u30ad\u30e5\u30fc\u3068\u3057\u3066\u4f7f\u7528\u3057\u3001\u3053\u308c\u3089\u306e\u30bf\u30b9\u30af\u3092\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u30ab\u30d7\u30bb\u30eb\u5316\u3057\u3001Redis \u306e\u30ea\u30b9\u30c8\u306b\u4fdd\u5b58\u3067\u304d\u307e\u3059\u3002\u6b21\u306b\u3001\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u306e\u30bf\u30b9\u30af \u30cf\u30f3\u30c9\u30e9\u30fc\u306f\u3001\u3053\u306e\u30ea\u30b9\u30c8\u5185\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u4f7f\u7528\u3057\u3066\u3001\u3053\u308c\u3089\u306e\u6642\u9593\u306e\u304b\u304b\u308b\u64cd\u4f5c\u307e\u305f\u306f\u975e\u540c\u671f\u30bf\u30b9\u30af\u3092\u5b9f\u884c\u3067\u304d\u308b\u305f\u3081\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u540c\u6642\u5b9f\u884c\u6027\u3068\u51e6\u7406\u80fd\u529b\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>e \u30b3\u30de\u30fc\u30b9 Web \u30b5\u30a4\u30c8\u3092\u4f8b\u306b\u3068\u308b\u3068\u3001Redis \u3092\u6ce8\u6587\u30e1\u30c3\u30bb\u30fc\u30b8 \u30ad\u30e5\u30fc\u3068\u3057\u3066\u4f7f\u7528\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u6ce8\u6587\u60c5\u5831\u3092\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u30ab\u30d7\u30bb\u30eb\u5316\u3057\u3001Redis \u30ad\u30e5\u30fc\u306b\u4fdd\u5b58\u3067\u304d\u307e\u3059\u3002\u6b21\u306b\u3001\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u306e\u6ce8\u6587\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3001\u6ce8\u6587\u78ba\u8a8d\u30e1\u30fc\u30eb\u306e\u9001\u4fe1\u3001\u6ce8\u6587\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u66f4\u65b0\u306a\u3069\u3001\u3053\u306e\u30ad\u30e5\u30fc\u5185\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u6d88\u8cbb\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u6ce8\u6587\u306b\u95a2\u9023\u3059\u308b\u64cd\u4f5c\u3092\u51e6\u7406\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Redis \u3092\u30e1\u30c3\u30bb\u30fc\u30b8 \u30ad\u30e5\u30fc\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30bf\u30b9\u30af\u306e\u975e\u540c\u671f\u51e6\u7406\u3092\u5b9f\u73fe\u3057\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u3092\u5411\u4e0a\u3055\u305b\u308b\u3068\u540c\u6642\u306b\u3001\u30bf\u30b9\u30af\u306e\u9010\u6b21\u5b9f\u884c\u3068\u51aa\u7b49\u6027\u3092\u5b9f\u73fe\u3057\u3066\u3001\u30bf\u30b9\u30af\u306e\u6b63\u78ba\u6027\u3068\u6574\u5408\u6027\u3092\u78ba\u4fdd\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>\u5b9f\u969b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306eRedis\u306e\u9069\u7528\u4e8b\u4f8b\u4e00\u89a7\u3092\u8a73\u3057\u304f\u6559\u3048\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>\u5b9f\u969b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306e Redis \u306e\u9069\u7528\u4e8b\u4f8b\u306b\u306f\u3001\u30ea\u30fc\u30c0\u30fc\u30dc\u30fc\u30c9 \u30b7\u30b9\u30c6\u30e0\u3082\u542b\u307e\u308c\u307e\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30b7\u30b9\u30c6\u30e0\u306b\u306f\u3001Web \u30b5\u30a4\u30c8\u3067\u4eba\u6c17\u306e\u3042\u308b\u8a18\u4e8b\u3084\u5546\u54c1\u306e\u4eba\u6c17\u5ea6\u306a\u3069\u3001\u6570\u3048\u3066\u30e9\u30f3\u30af\u4ed8\u3051\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u591a\u304f\u306e\u30c7\u30fc\u30bf\u304c\u5b58\u5728\u3059\u308b\u3053\u3068\u304c\u3088\u304f\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30c7\u30fc\u30bf\u3092\u6bce\u56de\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u7167\u4f1a\u3057\u3066\u30bd\u30fc\u30c8\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u3001\u591a\u304f\u306e\u30b5\u30fc\u30d0\u30fc \u30ea\u30bd\u30fc\u30b9\u3092\u6d88\u8cbb\u3057\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u5fdc\u7b54\u901f\u5ea6\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3053\u3067\u3001\u96c6\u8a08\u3084\u30e9\u30f3\u30af\u4ed8\u3051\u304c\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u3092Redis\u306b\u4fdd\u5b58\u3057\u3001Redis\u304c\u63d0\u4f9b\u3059\u308b\u30bd\u30fc\u30c8\u6e08\u307f\u30bb\u30c3\u30c8(Sorted Set)\u3092\u5229\u7528\u3057\u3066\u3001\u30c7\u30fc\u30bf\u306e\u81ea\u52d5\u30bd\u30fc\u30c8\u3084\u30e9\u30f3\u30af\u4ed8\u3051\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001\u96c6\u8a08\u3084\u30e9\u30f3\u30af\u4ed8\u3051\u304c\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u3092\u9806\u5e8f\u96c6\u5408\u306e\u30e1\u30f3\u30d0\u30fc\u3068\u3057\u3066\u4f7f\u7528\u3067\u304d\u3001\u30e1\u30f3\u30d0\u30fc\u306e\u30b9\u30b3\u30a2\u306f\u3001\u8a18\u4e8b\u306e\u30af\u30ea\u30c3\u30af\u6570\u3084\u5546\u54c1\u306e\u58f2\u4e0a\u306a\u3069\u306e\u30c7\u30fc\u30bf\u306e\u7d71\u8a08\u5024\u3067\u3059\u3002 .&nbsp;\u305d\u3057\u3066\u3001Redis\u304c\u63d0\u4f9b\u3059\u308b\u9806\u5e8f\u4ed8\u304d\u53ce\u96c6\u30b3\u30de\u30f3\u30c9\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u306e\u81ea\u52d5\u30bd\u30fc\u30c8\u3084\u30e9\u30f3\u30ad\u30f3\u30b0\u3001\u30e9\u30f3\u30ad\u30f3\u30b0\u30c7\u30fc\u30bf\u306e\u30af\u30a8\u30ea\u3084\u66f4\u65b0\u3092\u5b9f\u73fe\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30bd\u30fc\u30b7\u30e3\u30eb \u30cd\u30c3\u30c8\u30ef\u30fc\u30ad\u30f3\u30b0 \u30b5\u30a4\u30c8\u3092\u4f8b\u306b\u3068\u308b\u3068\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u6ce8\u76ee\u5ea6\u3084\u30d5\u30a1\u30f3\u306a\u3069\u306e\u30c7\u30fc\u30bf\u3092 Redis \u306e\u9806\u5e8f\u4ed8\u3051\u3089\u308c\u305f\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u4fdd\u5b58\u3057\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u4eba\u6c17\u30e9\u30f3\u30ad\u30f3\u30b0\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001Redis \u304c\u63d0\u4f9b\u3059\u308b\u9806\u5e8f\u4ed8\u304d\u30b3\u30ec\u30af\u30b7\u30e7\u30f3 \u30b3\u30de\u30f3\u30c9\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u3067\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306e\u30e9\u30f3\u30ad\u30f3\u30b0\u3068\u30e6\u30fc\u30b6\u30fc\u306e\u4eba\u6c17\u5ea6\u306e\u30af\u30a8\u30ea\u304c\u5b9f\u73fe\u3055\u308c\u3001Web \u30b5\u30a4\u30c8\u306f\u30e6\u30fc\u30b6\u30fc\u3092\u30ec\u30b3\u30e1\u30f3\u30c9\u3057\u3001\u4e26\u3079\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Redis \u30ea\u30fc\u30c0\u30fc\u30dc\u30fc\u30c9 \u30b7\u30b9\u30c6\u30e0\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u3092\u81ea\u52d5\u7684\u306b\u4e26\u3079\u66ff\u3048\u3066\u30e9\u30f3\u30af\u4ed8\u3051\u3057\u3001\u30b7\u30b9\u30c6\u30e0 \u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3068\u5fdc\u7b54\u901f\u5ea6\u3092\u5411\u4e0a\u3055\u305b\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306e\u30c7\u30fc\u30bf\u66f4\u65b0\u3068\u30af\u30a8\u30ea\u3092\u5b9f\u73fe\u3057\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30b7\u30b9\u30c6\u30e0\u304c\u30c7\u30fc\u30bf\u5206\u6790\u3068\u610f\u601d\u6c7a\u5b9a\u3092\u3088\u308a\u9069\u5207\u306b\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/edu.ujhb.org\/?p=1740\" alt=\"\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/chat.openai.com\/_next\/image?url=https%3A%2F%2Flh3.googleusercontent.com%2Fa%2FAGNmyxbwVdnTP0E2eBqDrujRQjV-wFP12Thr4vFgysVv5A%3Ds96-c&amp;w=96&amp;q=75\" alt=\"gun tei\"\/><\/figure>\n\n\n\n<p>\u5b9f\u969b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306eRedis\u306e\u9069\u7528\u4e8b\u4f8b\u3084\u305d\u306e\u4ed6\u306e\u9069\u7528\u30b7\u30ca\u30ea\u30aa\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n\n\n\n<p>\u30ad\u30e3\u30c3\u30b7\u30e5 \u30b7\u30b9\u30c6\u30e0\u3001\u30ab\u30a6\u30f3\u30bf\u30fc \u30b7\u30b9\u30c6\u30e0\u3001\u30e1\u30c3\u30bb\u30fc\u30b8 \u30ad\u30e5\u30fc \u30b7\u30b9\u30c6\u30e0\u3001\u30ea\u30fc\u30c0\u30fc\u30dc\u30fc\u30c9 \u30b7\u30b9\u30c6\u30e0\u306b\u52a0\u3048\u3066\u3001Redis \u306b\u306f\u5b9f\u969b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306e\u4ed6\u306e\u591a\u304f\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30b7\u30ca\u30ea\u30aa\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305f\u3068\u3048\u3070\u3001Redis \u3092\u5206\u6563\u30ed\u30c3\u30af \u30b7\u30b9\u30c6\u30e0\u3068\u3057\u3066\u4f7f\u7528\u3057\u3066\u3001\u30de\u30eb\u30c1\u30d7\u30ed\u30bb\u30b9\u307e\u305f\u306f\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u306e\u540c\u6642\u64cd\u4f5c\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002Redis \u3067\u4e00\u610f\u306e\u30ad\u30fc\u3092\u4f5c\u6210\u3057\u3001\u30ad\u30fc\u306e\u6709\u52b9\u671f\u9650\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u5171\u6709\u30ea\u30bd\u30fc\u30b9\u306b\u5bfe\u3059\u308b\u76f8\u4e92\u6392\u4ed6\u7684\u30a2\u30af\u30bb\u30b9\u3068\u5354\u8abf\u64cd\u4f5c\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3055\u3089\u306b\u3001Redis \u306f\u3001\u5206\u6563 Web \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406\u7528\u306e\u5206\u6563\u30bb\u30c3\u30b7\u30e7\u30f3 \u30b7\u30b9\u30c6\u30e0\u3068\u3057\u3066\u3082\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u60c5\u5831\u3092Redis\u306b\u4fdd\u5b58\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u8981\u6c42\u3059\u308b\u305f\u3073\u306b\u30bb\u30c3\u30b7\u30e7\u30f3\u60c5\u5831\u3092Redis\u304b\u3089\u53d6\u5f97\u3059\u308b\u3053\u3068\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u72b6\u614b\u306e\u5171\u6709\u3068\u7ba1\u7406\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3055\u3089\u306b\u3001Redis \u306f\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0 \u30e1\u30c3\u30bb\u30fc\u30b8 \u30d7\u30c3\u30b7\u30e5 \u30b7\u30b9\u30c6\u30e0\u3068\u3057\u3066\u3082\u4f7f\u7528\u3067\u304d\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0 \u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u30d7\u30c3\u30b7\u30e5\u6a5f\u80fd\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002Redis \u3067\u30d1\u30d6\u30ea\u30c3\u30b7\u30e5\/\u30b5\u30d6\u30b9\u30af\u30e9\u30a4\u30d6 \u30c1\u30e3\u30cd\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u30d7\u30c3\u30b7\u30e5\u3068\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3078\u306e\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u901a\u4fe1\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3055\u3089\u306b\u3001Redis \u3092\u4f7f\u7528\u3057\u3066\u3001\u96fb\u6d41\u5236\u9650\u3001\u30c7\u30fc\u30bf \u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u3001\u5730\u7406\u7684\u4f4d\u7f6e\u306e\u30dd\u30b8\u30b7\u30e7\u30cb\u30f3\u30b0\u306a\u3069\u306e\u6a5f\u80fd\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059. \u7279\u5b9a\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30b7\u30ca\u30ea\u30aa\u306f\u3001\u30d3\u30b8\u30cd\u30b9 \u30cb\u30fc\u30ba\u306b\u95a2\u9023\u3057\u3066\u3044\u307e\u3059.<\/p>\n\n\n\n<p>\u3064\u307e\u308a\u3001\u9ad8\u6027\u80fd\u306a\u30a4\u30f3\u30e1\u30e2\u30ea \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u3057\u3066\u3001Redis \u306f\u8c4a\u5bcc\u306a\u30c7\u30fc\u30bf\u69cb\u9020\u3068\u5f37\u529b\u306a\u6a5f\u80fd\u3092\u5099\u3048\u3066\u304a\u308a\u3001\u975e\u5e38\u306b\u5e45\u5e83\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 \u30b7\u30ca\u30ea\u30aa\u3068\u5b9f\u969b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306e\u4f7f\u7528\u5024\u3092\u5099\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30f3\u30c4\u306b\u5408\u308f\u305b\u3066\u30a2\u30ec\u30f3\u30b8\u3057\u3066\u3082\u3089\u3048\u307e\u3059\u304b\u3002 &hellip; <\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_mi_skip_tracking":false,"footnotes":""},"categories":[23],"tags":[],"class_list":["post-2144","post","type-post","status-publish","format-standard","hentry","category-material"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=\/wp\/v2\/posts\/2144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2144"}],"version-history":[{"count":1,"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=\/wp\/v2\/posts\/2144\/revisions"}],"predecessor-version":[{"id":2145,"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=\/wp\/v2\/posts\/2144\/revisions\/2145"}],"wp:attachment":[{"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edu.ujhb.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}