{"id":38346,"date":"2024-11-01T17:17:46","date_gmt":"2024-11-01T17:17:46","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=38346"},"modified":"2024-11-26T06:44:35","modified_gmt":"2024-11-26T06:44:35","slug":"express-%ea%b0%9c%eb%b0%9c-%ea%b0%95%ec%a2%8c-%ec%ba%90%ec%8b%b1-%ec%a0%84%eb%9e%b5-redis-%eb%a9%94%eb%aa%a8%eb%a6%ac-%ec%ba%90%ec%8b%9c","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/38346\/","title":{"rendered":"Express \uac1c\ubc1c \uac15\uc88c, \uce90\uc2f1 \uc804\ub7b5 (Redis, \uba54\ubaa8\ub9ac \uce90\uc2dc)"},"content":{"rendered":"<p><body><\/p>\n<p>\n        \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\ub2e4 \ubcf4\uba74, \uc131\ub2a5 \uac1c\uc120\uc758 \ud544\uc694\uc131\uc744 \ub290\ub07c\uac8c \ub418\ub294 \uc21c\uac04\uc774 \ub9ce\uc2b5\ub2c8\ub2e4. \ud2b9\ud788 \ub300\ub7c9\uc758 \ub370\uc774\ud130 \uc694\uccad\uc774\ub098 \ube48\ubc88\ud55c DB \ucffc\ub9ac\ub97c \ucc98\ub9ac\ud558\ub294 \uacbd\uc6b0, \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc751\ub2f5 \uc18d\ub3c4\ub97c \uac1c\uc120\ud558\uae30 \uc704\ud574 \uce90\uc2f1 \uc804\ub7b5\uc744 \uc0ac\uc6a9\ud558\ub294 \uac83\uc774 \uc911\uc694\ud569\ub2c8\ub2e4. \ubcf8 \uae00\uc5d0\uc11c\ub294 Express.js\ub97c \uc774\uc6a9\ud55c \ubc31\uc5d4\ub4dc \uc11c\ubc84 \uac1c\ubc1c\uc5d0\uc11c\uc758 \uce90\uc2f1 \uc804\ub7b5\uc5d0 \ub300\ud574 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. Redis\uc640 \uba54\ubaa8\ub9ac \uce90\uc2dc\ub97c \ud65c\uc6a9\ud55c \ubc29\ubc95\uc744 \uc911\uc2ec\uc73c\ub85c \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h2>1. \uce90\uc2f1\uc758 \ud544\uc694\uc131<\/h2>\n<p>\n        \uce90\uc2f1\uc740 \ub370\uc774\ud130\ub97c \ud6a8\uc728\uc801\uc73c\ub85c \uc800\uc7a5\ud558\uace0 \uc7ac\uc0ac\uc6a9\ud558\ub294 \uae30\uc220\ub85c, \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc758 \ubd80\ud558\ub97c \uc904\uc774\uace0 \uc11c\ubc84\uc758 \uc751\ub2f5 \uc18d\ub3c4\ub97c \ub192\uc774\ub294 \ub370 \uae30\uc5ec\ud569\ub2c8\ub2e4. \uce90\uc2f1\uc758 \uc7a5\uc810\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:\n    <\/p>\n<ul>\n<li>\uc751\ub2f5 \uc2dc\uac04\uc744 \ub2e8\ucd95\uc2dc\ucf1c \uc0ac\uc6a9\uc790\uc758 \uccb4\ud5d8\uc744 \uac1c\uc120\ud569\ub2c8\ub2e4.<\/li>\n<li>\uc11c\ubc84 \ub9ac\uc18c\uc2a4\ub97c \uc808\uc57d\ud558\uc5ec \ube44\uc6a9 \ud6a8\uc728\uc131\uc744 \ub192\uc785\ub2c8\ub2e4.<\/li>\n<li>DB\uc758 \ubd80\ud558\ub97c \uc904\uc5ec \uc2dc\uc2a4\ud15c\uc758 \uc548\uc815\uc131\uc744 \uc99d\uac00\uc2dc\ud0b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>2. \uba54\ubaa8\ub9ac \uce90\uc2dc<\/h2>\n<p>\n        \uba54\ubaa8\ub9ac \uce90\uc2dc\ub294 \uc11c\ubc84\uc758 RAM\uc5d0 \ub370\uc774\ud130\ub97c \uc800\uc7a5\ud558\ub294 \ubc29\uc2dd\uc73c\ub85c, \ub9e4\uc6b0 \ube60\ub978 \uc751\ub2f5 \uc18d\ub3c4\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4. \ub178\ub4dc\uc5d0\uc11c \uba54\ubaa8\ub9ac \uce90\uc2dc\ub97c \uad6c\ud604\ud558\uae30 \uc704\ud574 `node-cache` \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub294 \ub2e8\uc21c\ud55c \uba54\ubaa8\ub9ac \uce90\uc2dc \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.\n    <\/p>\n<h3>2.1. node-cache \uc124\uce58<\/h3>\n<pre>\n        <code>npm install node-cache<\/code>\n    <\/pre>\n<h3>2.2. \uba54\ubaa8\ub9ac \uce90\uc2dc \uad6c\ud604 \uc608\uc81c<\/h3>\n<p>\n        \ub2e4\uc74c\uc740 Express.js\uc640 node-cache\ub97c \uc0ac\uc6a9\ud558\uc5ec \uac04\ub2e8\ud55c \uba54\ubaa8\ub9ac \uce90\uc2f1\uc744 \uad6c\ud604\ud55c \uc608\uc81c\uc785\ub2c8\ub2e4.\n    <\/p>\n<pre>\n        <code>const express = require('express');\nconst NodeCache = require('node-cache');\nconst app = express();\nconst port = 3000;\n\n\/\/ \uba54\ubaa8\ub9ac \uce90\uc2dc \ucd08\uae30\ud654\nconst cache = new NodeCache();\n\n\/\/ \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5ed\ud560\uc744 \ud558\ub294 \uac00\uc9dc API\nconst getDataFromDb = (key) =&gt; {\n    return { data: `\uc774 \ub370\uc774\ud130\ub294 DB\uc5d0\uc11c \uc628 \uac83\uc785\ub2c8\ub2e4: ${key}` };\n};\n\n\/\/ \uce90\uc2f1 \ubbf8\ub4e4\uc6e8\uc5b4\nconst cacheMiddleware = (req, res, next) =&gt; {\n    const { key } = req.params;\n    const cachedData = cache.get(key);\n\n    if (cachedData) {\n        return res.json({ source: 'cache', data: cachedData });\n    } else {\n        next();\n    }\n};\n\n\/\/ API \uc5d4\ub4dc\ud3ec\uc778\ud2b8\napp.get('\/data\/:key', cacheMiddleware, (req, res) =&gt; {\n    const { key } = req.params;\n    const dataFromDb = getDataFromDb(key);\n    \n    \/\/ \uba54\ubaa8\ub9ac\uc5d0 \uce90\uc2dc \uc800\uc7a5\n    cache.set(key, dataFromDb.data, 600); \/\/ 600\ucd08 \ub3d9\uc548 \uc800\uc7a5\n    res.json({ source: 'db', data: dataFromDb.data });\n});\n\napp.listen(port, () =&gt; {\n    console.log(`\uc11c\ubc84\uac00 ${port} \ud3ec\ud2b8\uc5d0\uc11c \uc2e4\ud589 \uc911\uc785\ub2c8\ub2e4.`);\n});<\/code>\n    <\/pre>\n<p>\n        \uc704\uc758 \uc608\uc81c\uc5d0\uc11c \uba54\ubaa8\ub9ac \uce90\uc2dc\ub97c \uc0ac\uc6a9\ud558\uc5ec DB\uc5d0\uc11c \uc628 \ub370\uc774\ud130\ub97c \ud074\ub77c\uc774\uc5b8\ud2b8\uc5d0\uac8c \ubc18\ud658\ud569\ub2c8\ub2e4. \ub9cc\uc57d \uc694\uccad\ub41c \ub370\uc774\ud130\uac00 \uce90\uc2dc\uc5d0 \uc874\uc7ac\ud55c\ub2e4\uba74, \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub97c \ud638\ucd9c\ud558\uc9c0 \uc54a\uace0 \uce90\uc2dc\ub41c \ub370\uc774\ud130\ub97c \ubc18\ud658\ud569\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 \uc751\ub2f5 \uc2dc\uac04\uc744 \ud604\uc800\ud788 \uc904\uc77c \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h2>3. Redis \uce90\uc2dc<\/h2>\n<p>\n        Redis\ub294 \uc778\uba54\ubaa8\ub9ac \ud0a4-\uac12 \ub370\uc774\ud130 \uc800\uc7a5\uc18c\ub85c, \ubd84\uc0b0 \uc2dc\uc2a4\ud15c\uc744 \uc9c0\uc6d0\ud558\uba70 \ud37c\uc2dc\uc2a4\ud134\uc2a4 \uae30\ub2a5\uc744 \uac16\ucd98 \uace0\uc131\ub2a5 \uce90\uc2dc \uc194\ub8e8\uc158\uc785\ub2c8\ub2e4. Redis\ub294 \uba54\ubaa8\ub9ac \uce90\uc2dc\ubcf4\ub2e4 \ub354 \ub9ce\uc740 \ub370\uc774\ud130 \uc6a9\ub7c9\uc744 \uc9c0\uc6d0\ud558\uace0 \ub370\uc774\ud130 \ubcf5\uc81c\ub97c \ud1b5\ud574 \uace0\uac00\uc6a9\uc131\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. Redis\ub97c \uc0ac\uc6a9\ud558\uae30 \uc704\ud574\uc11c\ub294 \uba3c\uc800 Redis \uc11c\ubc84\ub97c \uc124\uce58\ud558\uace0 `redis` \ud074\ub77c\uc774\uc5b8\ud2b8 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc124\uce58\ud574\uc57c \ud569\ub2c8\ub2e4.\n    <\/p>\n<h3>3.1. Redis \uc124\uce58<\/h3>\n<p>\n        Redis\ub294 \ub2e4\uc591\ud55c \ud50c\ub7ab\ud3fc\uc5d0\uc11c \uc124\uce58\ud560 \uc218 \uc788\uc73c\uba70, Docker\ub97c \uc774\uc6a9\ud55c \uc124\uce58 \ubc29\ubc95\uc774 \uac00\uc7a5 \ud3b8\ub9ac\ud569\ub2c8\ub2e4. \uac04\ub2e8\ud55c \uba85\ub839\uc5b4\ub85c Redis \uc11c\ubc84\ub97c \uc2e4\ud589\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<pre>\n        <code>docker run --name redis -d -p 6379:6379 redis<\/code>\n    <\/pre>\n<h3>3.2. Redis \ud074\ub77c\uc774\uc5b8\ud2b8 \uc124\uce58<\/h3>\n<pre>\n        <code>npm install redis<\/code>\n    <\/pre>\n<h3>3.3. Redis \uce90\uc2dc \uad6c\ud604 \uc608\uc81c<\/h3>\n<p>\n        \ub2e4\uc74c\uc740 Express.js\uc640 Redis\ub97c \uc0ac\uc6a9\ud558\uc5ec \uce90\uc2f1\uc744 \uad6c\ud604\ud55c \uc608\uc81c\uc785\ub2c8\ub2e4.\n    <\/p>\n<pre>\n        <code>const express = require('express');\nconst redis = require('redis');\nconst app = express();\nconst port = 3000;\n\n\/\/ Redis \ud074\ub77c\uc774\uc5b8\ud2b8 \ucd08\uae30\ud654\nconst client = redis.createClient();\n\nclient.on('error', (err) =&gt; {\n    console.error('Redis \uc5f0\uacb0 \uc624\ub958:', err);\n});\n\n\/\/ \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5ed\ud560\uc744 \ud558\ub294 \uac00\uc9dc API\nconst getDataFromDb = (key) =&gt; {\n    return { data: `\uc774 \ub370\uc774\ud130\ub294 DB\uc5d0\uc11c \uc628 \uac83\uc785\ub2c8\ub2e4: ${key}` };\n};\n\n\/\/ \uce90\uc2f1 \ubbf8\ub4e4\uc6e8\uc5b4\nconst cacheMiddleware = (req, res, next) =&gt; {\n    const { key } = req.params;\n\n    client.get(key, (err, cachedData) =&gt; {\n        if (err) throw err;\n\n        if (cachedData) {\n            return res.json({ source: 'cache', data: JSON.parse(cachedData) });\n        } else {\n            next();\n        }\n    });\n};\n\n\/\/ API \uc5d4\ub4dc\ud3ec\uc778\ud2b8\napp.get('\/data\/:key', cacheMiddleware, (req, res) =&gt; {\n    const { key } = req.params;\n    const dataFromDb = getDataFromDb(key);\n\n    \/\/ Redis\uc5d0 \uce90\uc2dc \uc800\uc7a5\n    client.setex(key, 600, JSON.stringify(dataFromDb.data)); \/\/ 600\ucd08 \ub3d9\uc548 \uc800\uc7a5\n    res.json({ source: 'db', data: dataFromDb.data });\n});\n\napp.listen(port, () =&gt; {\n    console.log(`\uc11c\ubc84\uac00 ${port} \ud3ec\ud2b8\uc5d0\uc11c \uc2e4\ud589 \uc911\uc785\ub2c8\ub2e4.`);\n});<\/code>\n    <\/pre>\n<p>\n        \uc704\uc758 \uc608\uc81c\uc5d0\uc11c Redis \uce90\uc2dc\ub97c \uc0ac\uc6a9\ud558\uc5ec DB\uc5d0\uc11c \uc628 \ub370\uc774\ud130\ub97c \ud074\ub77c\uc774\uc5b8\ud2b8\uc5d0\uac8c \ubc18\ud658\ud569\ub2c8\ub2e4. Redis\uac00 \uc124\uce58\ub41c \uc0c1\ud0dc\uc5d0\uc11c Redis \ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \ucd08\uae30\ud654\ud558\uace0, \uc694\uccad\ub41c \ub370\uc774\ud130\uac00 Redis \uce90\uc2dc\uc5d0 \uc874\uc7ac\ud558\ub294\uc9c0\ub97c \ud655\uc778\ud569\ub2c8\ub2e4. \uce90\uc7ac\ub41c \ub370\uc774\ud130\uac00 \uc874\uc7ac\ud55c\ub2e4\uba74 \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub97c \ud638\ucd9c\ud558\uc9c0 \uc54a\uace0 \uce90\uc2dc\uc5d0\uc11c \ub370\uc774\ud130\ub97c \ubc18\ud658\ud569\ub2c8\ub2e4. \uc774 \ubc29\uc2dd\uc740 \uba54\ubaa8\ub9ac \uce90\uc2dc\ubcf4\ub2e4 \ubcf4\ub2e4 \uc720\uc5f0\ud558\uace0 \ubd84\uc0b0\ub418\uc5b4 \uc788\ub294 \uc194\ub8e8\uc158\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.\n    <\/p>\n<h2>4. \uce90\uc2f1 \uc804\ub7b5 \uacb0\uc815\ud558\uae30<\/h2>\n<p>\n        \uc801\uc808\ud55c \uce90\uc2f1 \uc804\ub7b5\uc744 \uacb0\uc815\ud558\uae30 \uc704\ud574\uc11c\ub294 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc694\uad6c \uc0ac\ud56d, \ub370\uc774\ud130\uc758 \uc131\uaca9, \uc0ac\uc6a9\uc790 \ud2b8\ub798\ud53d \ud328\ud134 \ub4f1\uc744 \uace0\ub824\ud574\uc57c \ud569\ub2c8\ub2e4. \uc77c\ubc18\uc801\uc73c\ub85c \ub2e4\uc74c\uacfc \uac19\uc740 \uae30\uc900\ub4e4\uc744 \uace0\ub824\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:\n    <\/p>\n<ul>\n<li><strong>\ub370\uc774\ud130\uc758 \ubcc0\ub3d9\uc131:<\/strong> \ubcc0\uacbd\uc774 \uc7a6\uc740 \ub370\uc774\ud130\ub294 \uce90\uc2dc\ud558\uae30\uc5d0 \uc801\ud569\ud558\uc9c0 \uc54a\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ubc18\uba74, \uc790\uc8fc \uc870\ud68c\ub418\ub294 \ub370\uc774\ud130\ub294 \uce90\uc2f1\ud560 \ub54c \ud070 \ud6a8\uacfc\ub97c \ubcfc \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li><strong>\uc0ac\uc6a9 \ube48\ub3c4:<\/strong> \uc0ac\uc6a9\uc790\ub4e4\uc5d0 \uc758\ud574 \uc790\uc8fc \uc694\uccad\ub418\ub294 \ub370\uc774\ud130\uc5d0 \ub300\ud574 \uce90\uc2f1\uc744 \uc801\uc6a9\ud574\uc57c \ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\uc751\ub2f5 \uc2dc\uac04:<\/strong> \uc2e4\uc2dc\uac04 \ucc98\ub9ac\ud574\uc57c \ud558\ub294 \ub370\uc774\ud130\ub294 \uce90\uc2dc\ub97c \uc0ac\uc6a9\ud558\uae30\ubcf4\ub2e4\ub294 DB\uc5d0\uc11c \uc9c1\uc811 \uac00\uc838\uc624\ub294 \uac83\uc774 \ub354 \ud6a8\uc728\uc801\uc77c \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>5. \uacb0\ub860<\/h2>\n<p>\n        \uce90\uc2f1\uc740 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc131\ub2a5\uc744 \ud06c\uac8c \ud5a5\uc0c1\uc2dc\ud0ac \uc218 \uc788\ub294 \uc911\uc694\ud55c \uae30\uc220\uc785\ub2c8\ub2e4. Express.js\uc640 Redis, \uba54\ubaa8\ub9ac \uce90\uc2dc\ub97c \ud65c\uc6a9\ud55c \uc608\uc81c\ub97c \ud1b5\ud574 \uc774\ub7ec\ud55c \uce90\uc2f1 \uc804\ub7b5\uc744 \uad6c\ud604\ud574 \ubcf4\uc558\uc2b5\ub2c8\ub2e4. \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc694\uad6c \uc0ac\ud56d\uc5d0 \ub9de\ub294 \uce58\ubc00\ud55c \uce90\uc2f1 \uc804\ub7b5\uc744 \uc218\ub9bd\ud568\uc73c\ub85c\uc368, \uc131\ub2a5\uacfc \uc0ac\uc6a9\uc790 \uacbd\ud5d8\uc744 \ubaa8\ub450 \ub9cc\uc871\ud560 \uc218 \uc788\ub294 \uc6f9 \uc11c\ube44\uc2a4\ub97c \uad6c\ucd95\ud560 \uc218 \uc788\uc744 \uac83\uc785\ub2c8\ub2e4.\n    <\/p>\n<h2>6. \ucd94\uac00 \uc790\ub8cc<\/h2>\n<p>\n        &#8211; <a href=\"https:\/\/expressjs.com\/\">Express.js \uacf5\uc2dd \ubb38\uc11c<\/a><br \/>\n        &#8211; <a href=\"https:\/\/redis.io\/documentation\">Redis \uacf5\uc2dd \ubb38\uc11c<\/a><br \/>\n        &#8211; <a href=\"https:\/\/www.npmjs.com\/package\/node-cache\">node-cache npm \ud398\uc774\uc9c0<\/a><br \/>\n        &#8211; <a href=\"https:\/\/www.npmjs.com\/package\/redis\">redis npm \ud398\uc774\uc9c0<\/a>\n<\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\ub2e4 \ubcf4\uba74, \uc131\ub2a5 \uac1c\uc120\uc758 \ud544\uc694\uc131\uc744 \ub290\ub07c\uac8c \ub418\ub294 \uc21c\uac04\uc774 \ub9ce\uc2b5\ub2c8\ub2e4. \ud2b9\ud788 \ub300\ub7c9\uc758 \ub370\uc774\ud130 \uc694\uccad\uc774\ub098 \ube48\ubc88\ud55c DB \ucffc\ub9ac\ub97c \ucc98\ub9ac\ud558\ub294 \uacbd\uc6b0, \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc751\ub2f5 \uc18d\ub3c4\ub97c \uac1c\uc120\ud558\uae30 \uc704\ud574 \uce90\uc2f1 \uc804\ub7b5\uc744 \uc0ac\uc6a9\ud558\ub294 \uac83\uc774 \uc911\uc694\ud569\ub2c8\ub2e4. \ubcf8 \uae00\uc5d0\uc11c\ub294 Express.js\ub97c \uc774\uc6a9\ud55c \ubc31\uc5d4\ub4dc \uc11c\ubc84 \uac1c\ubc1c\uc5d0\uc11c\uc758 \uce90\uc2f1 \uc804\ub7b5\uc5d0 \ub300\ud574 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. Redis\uc640 \uba54\ubaa8\ub9ac \uce90\uc2dc\ub97c \ud65c\uc6a9\ud55c \ubc29\ubc95\uc744 \uc911\uc2ec\uc73c\ub85c \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. 1. \uce90\uc2f1\uc758 \ud544\uc694\uc131 \uce90\uc2f1\uc740 \ub370\uc774\ud130\ub97c \ud6a8\uc728\uc801\uc73c\ub85c \uc800\uc7a5\ud558\uace0 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/38346\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;Express \uac1c\ubc1c \uac15\uc88c, \uce90\uc2f1 \uc804\ub7b5 (Redis, \uba54\ubaa8\ub9ac \uce90\uc2dc)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[181],"tags":[],"class_list":["post-38346","post","type-post","status-publish","format-standard","hentry","category-express"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Express \uac1c\ubc1c \uac15\uc88c, \uce90\uc2f1 \uc804\ub7b5 (Redis, \uba54\ubaa8\ub9ac \uce90\uc2dc) - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/38346\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Express \uac1c\ubc1c \uac15\uc88c, \uce90\uc2f1 \uc804\ub7b5 (Redis, \uba54\ubaa8\ub9ac \uce90\uc2dc) - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\ub2e4 \ubcf4\uba74, \uc131\ub2a5 \uac1c\uc120\uc758 \ud544\uc694\uc131\uc744 \ub290\ub07c\uac8c \ub418\ub294 \uc21c\uac04\uc774 \ub9ce\uc2b5\ub2c8\ub2e4. \ud2b9\ud788 \ub300\ub7c9\uc758 \ub370\uc774\ud130 \uc694\uccad\uc774\ub098 \ube48\ubc88\ud55c DB \ucffc\ub9ac\ub97c \ucc98\ub9ac\ud558\ub294 \uacbd\uc6b0, \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc751\ub2f5 \uc18d\ub3c4\ub97c \uac1c\uc120\ud558\uae30 \uc704\ud574 \uce90\uc2f1 \uc804\ub7b5\uc744 \uc0ac\uc6a9\ud558\ub294 \uac83\uc774 \uc911\uc694\ud569\ub2c8\ub2e4. \ubcf8 \uae00\uc5d0\uc11c\ub294 Express.js\ub97c \uc774\uc6a9\ud55c \ubc31\uc5d4\ub4dc \uc11c\ubc84 \uac1c\ubc1c\uc5d0\uc11c\uc758 \uce90\uc2f1 \uc804\ub7b5\uc5d0 \ub300\ud574 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. Redis\uc640 \uba54\ubaa8\ub9ac \uce90\uc2dc\ub97c \ud65c\uc6a9\ud55c \ubc29\ubc95\uc744 \uc911\uc2ec\uc73c\ub85c \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. 1. \uce90\uc2f1\uc758 \ud544\uc694\uc131 \uce90\uc2f1\uc740 \ub370\uc774\ud130\ub97c \ud6a8\uc728\uc801\uc73c\ub85c \uc800\uc7a5\ud558\uace0 &hellip; \ub354 \ubcf4\uae30 &quot;Express \uac1c\ubc1c \uac15\uc88c, \uce90\uc2f1 \uc804\ub7b5 (Redis, \uba54\ubaa8\ub9ac \uce90\uc2dc)&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/38346\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T17:17:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:44:35+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/38346\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38346\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"Express \uac1c\ubc1c \uac15\uc88c, \uce90\uc2f1 \uc804\ub7b5 (Redis, \uba54\ubaa8\ub9ac \uce90\uc2dc)\",\"datePublished\":\"2024-11-01T17:17:46+00:00\",\"dateModified\":\"2024-11-26T06:44:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38346\/\"},\"wordCount\":50,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"Express\uc11c\ubc84\uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/38346\/\",\"url\":\"https:\/\/atmokpo.com\/w\/38346\/\",\"name\":\"Express \uac1c\ubc1c \uac15\uc88c, \uce90\uc2f1 \uc804\ub7b5 (Redis, \uba54\ubaa8\ub9ac \uce90\uc2dc) - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T17:17:46+00:00\",\"dateModified\":\"2024-11-26T06:44:35+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38346\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/38346\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/38346\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Express \uac1c\ubc1c \uac15\uc88c, \uce90\uc2f1 \uc804\ub7b5 (Redis, \uba54\ubaa8\ub9ac \uce90\uc2dc)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Express \uac1c\ubc1c \uac15\uc88c, \uce90\uc2f1 \uc804\ub7b5 (Redis, \uba54\ubaa8\ub9ac \uce90\uc2dc) - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/38346\/","og_locale":"ko_KR","og_type":"article","og_title":"Express \uac1c\ubc1c \uac15\uc88c, \uce90\uc2f1 \uc804\ub7b5 (Redis, \uba54\ubaa8\ub9ac \uce90\uc2dc) - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\ub2e4 \ubcf4\uba74, \uc131\ub2a5 \uac1c\uc120\uc758 \ud544\uc694\uc131\uc744 \ub290\ub07c\uac8c \ub418\ub294 \uc21c\uac04\uc774 \ub9ce\uc2b5\ub2c8\ub2e4. \ud2b9\ud788 \ub300\ub7c9\uc758 \ub370\uc774\ud130 \uc694\uccad\uc774\ub098 \ube48\ubc88\ud55c DB \ucffc\ub9ac\ub97c \ucc98\ub9ac\ud558\ub294 \uacbd\uc6b0, \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc751\ub2f5 \uc18d\ub3c4\ub97c \uac1c\uc120\ud558\uae30 \uc704\ud574 \uce90\uc2f1 \uc804\ub7b5\uc744 \uc0ac\uc6a9\ud558\ub294 \uac83\uc774 \uc911\uc694\ud569\ub2c8\ub2e4. \ubcf8 \uae00\uc5d0\uc11c\ub294 Express.js\ub97c \uc774\uc6a9\ud55c \ubc31\uc5d4\ub4dc \uc11c\ubc84 \uac1c\ubc1c\uc5d0\uc11c\uc758 \uce90\uc2f1 \uc804\ub7b5\uc5d0 \ub300\ud574 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. Redis\uc640 \uba54\ubaa8\ub9ac \uce90\uc2dc\ub97c \ud65c\uc6a9\ud55c \ubc29\ubc95\uc744 \uc911\uc2ec\uc73c\ub85c \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. 1. \uce90\uc2f1\uc758 \ud544\uc694\uc131 \uce90\uc2f1\uc740 \ub370\uc774\ud130\ub97c \ud6a8\uc728\uc801\uc73c\ub85c \uc800\uc7a5\ud558\uace0 &hellip; \ub354 \ubcf4\uae30 \"Express \uac1c\ubc1c \uac15\uc88c, \uce90\uc2f1 \uc804\ub7b5 (Redis, \uba54\ubaa8\ub9ac \uce90\uc2dc)\"","og_url":"https:\/\/atmokpo.com\/w\/38346\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T17:17:46+00:00","article_modified_time":"2024-11-26T06:44:35+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/38346\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/38346\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"Express \uac1c\ubc1c \uac15\uc88c, \uce90\uc2f1 \uc804\ub7b5 (Redis, \uba54\ubaa8\ub9ac \uce90\uc2dc)","datePublished":"2024-11-01T17:17:46+00:00","dateModified":"2024-11-26T06:44:35+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/38346\/"},"wordCount":50,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["Express\uc11c\ubc84\uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/38346\/","url":"https:\/\/atmokpo.com\/w\/38346\/","name":"Express \uac1c\ubc1c \uac15\uc88c, \uce90\uc2f1 \uc804\ub7b5 (Redis, \uba54\ubaa8\ub9ac \uce90\uc2dc) - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T17:17:46+00:00","dateModified":"2024-11-26T06:44:35+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/38346\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/38346\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/38346\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"Express \uac1c\ubc1c \uac15\uc88c, \uce90\uc2f1 \uc804\ub7b5 (Redis, \uba54\ubaa8\ub9ac \uce90\uc2dc)"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=38346"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38346\/revisions"}],"predecessor-version":[{"id":38347,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38346\/revisions\/38347"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=38346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=38346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=38346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}