{"id":54517,"date":"2024-02-01T02:16:57","date_gmt":"2024-01-31T17:16:57","guid":{"rendered":"https:\/\/kinsta.com\/jp\/?p=54517&#038;preview=true&#038;preview_id=54517"},"modified":"2024-02-05T17:40:15","modified_gmt":"2024-02-05T08:40:15","slug":"python-redis","status":"publish","type":"post","link":"https:\/\/kinsta.com\/jp\/blog\/python-redis\/","title":{"rendered":"Python\u3068Redis\u3067WordPress\u30b5\u30a4\u30c8\u306e\u6027\u80fd\u3092\u5f37\u5316\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\u591a\u304f\u306e\u958b\u767a\u8005\u304c\u3001Python\u3068<a href=\"https:\/\/kinsta.com\/jp\/docs\/wordpress-hosting\/caching\/redis-cache\/\">NoSQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3042\u308bRedis<\/a>\u3092\u7d44\u307f\u5408\u308f\u305b\u6d3b\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001WordPress\u306b\u304a\u3044\u3066\u3082\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306e\u30c7\u30fc\u30bf\u30a2\u30af\u30bb\u30b9\u9ad8\u901f\u5316\u306e\u305f\u3081\u306b\u6c38\u7d9a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u5fc5\u8981\u306a\u6642\u306b\u306f\u3001Redis\u304c\u3088\u304f\u4f7f\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>Python\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067WordPress\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u64cd\u4f5c\u3059\u308b\u969b\u306b\u306f\u3001\u3053\u306e2\u3064\u306e\u69cb\u9020\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306e\u8a18\u4e8b\u3067\u306f\u3001<a href=\"https:\/\/github.com\/redis\/redis-py\" target=\"_blank\" rel=\"noopener noreferrer\">redis-py<\/a>\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u305fPython\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u3067\u3001Redis\u306b\u76f4\u63a5\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u6295\u7a3f\u3059\u308b\u65b9\u6cd5\u3068\u3001WordPress REST API\u3092\u4ecb\u3057\u3066\u6295\u7a3f\u3092\u884c\u3046\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<div><\/div><kinsta-auto-toc heading=\"Table of Contents\" exclude=\"last\" list-style=\"arrow\" selector=\"h2\" count-number=\"-1\"><\/kinsta-auto-toc>\n<h2>Redis\u3068\u306f<\/h2>\n<p>Redis\uff08Remote Dictionary Server\uff09\u306f\u3001Salvatore Sanfilippo\u6c0f\u306b\u3088\u3063\u3066\u958b\u767a\u3055\u308c\u3001Redis Ltd.\uff08\u65e7Redi Labs\uff09\u306b\u3088\u3063\u3066\u4fdd\u5b88\u3055\u308c\u3066\u3044\u308b\u9ad8\u901fNoSQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304a\u3088\u3073<a href=\"https:\/\/kinsta.com\/jp\/blog\/in-memory-database\/\">\u30a4\u30f3\u30e1\u30e2\u30ea\u30ad\u30e3\u30c3\u30b7\u30e5<\/a>\u3067\u3059\u3002Redis\u306e\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30ea\u30ea\u30fc\u30b9\u306f\u3001\u30d0\u30fc\u30af\u30ec\u30fc\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\uff08BSD\uff09\u30e9\u30a4\u30bb\u30f3\u30b9\u4e0b\u3067\u5229\u7528\u53ef\u80fd\u3067\u3042\u308a\u3001Redis Ltd.\u306f\u5546\u7528\u30a8\u30f3\u30bf\u30fc\u30d7\u30e9\u30a4\u30ba\u7248\u3068\u30af\u30e9\u30a6\u30c9\u7248\u3082\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Redis\u306f\u3001\u305d\u306e\u30c7\u30fc\u30bf\u683c\u7d0d\u30e1\u30ab\u30cb\u30ba\u30e0\u306b\u3088\u3063\u3066\u4ed6\u306eNoSQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u4e00\u7dda\u3092\u753b\u3057\u307e\u3059\u3002\u6587\u5b57\u5217\u3001\u96c6\u5408\u3001\u30ea\u30b9\u30c8\u3001\u8f9e\u66f8\uff08\u307e\u305f\u306f\u30cf\u30c3\u30b7\u30e5\uff09\u306a\u3069\u3001\u591a\u304f\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u898b\u3089\u308c\u308b\u306e\u3068\u540c\u3058\u30c7\u30fc\u30bf\u578b\u3067\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u305f\u3081\u3001\u901a\u5e38\u30c7\u30fc\u30bf\u69cb\u9020\u30b9\u30c8\u30a2\u3068\u547c\u3070\u308c\u307e\u3059\u3002Redis\u306f\u5358\u7d14\u306a\u69cb\u9020\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u30b8\u30aa\u30ed\u30b1\u30fc\u30b7\u30e7\u30f3\u3084\u30b9\u30c8\u30ea\u30fc\u30e0\u51e6\u7406\u306e\u3088\u3046\u306a\u30bf\u30b9\u30af\u306e\u305f\u3081\u306e\u9ad8\u5ea6\u306a\u30c7\u30fc\u30bf\u69cb\u9020\u3082\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>Python\u30a2\u30d7\u30ea\u306e\u524d\u63d0\u6761\u4ef6<\/h2>\n<p>\u30a2\u30d7\u30ea\u306e\u4f5c\u6210\u3092\u958b\u59cb\u3059\u308b\u524d\u306b\u3001\u4ee5\u4e0b\u306e3\u3064\u306e\u3082\u306e\u3092\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>Redis\u2500\u30b5\u30dd\u30fc\u30c8\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u3001\u516c\u5f0f\u306e<a href=\"https:\/\/redis.io\/docs\/getting-started\/\" target=\"_blank\" rel=\"noopener noreferrer\">Redis\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30ac\u30a4\u30c9<\/a>\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/li>\n<li>WordPress\u2500Windows\u3001macOS\u3001Linux\u7528\u306e<a href=\"https:\/\/kinsta.com\/jp\/blog\/install-wordpress-locally\/\">WordPress\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30ac\u30a4\u30c9<\/a>\u3092\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002WordPress\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u304c<a href=\"https:\/\/kinsta.com\/jp\/blog\/mysql-to-mariadb\/\">MariaDB\u307e\u305f\u306fMySQL<\/a>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u63a5\u7d9a\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<li><a href=\"https:\/\/www.python.org\/downloads\/\" target=\"_blank\" rel=\"noopener noreferrer\">Python<\/a>\u3068<a href=\"https:\/\/pip.pypa.io\/en\/stable\/\" target=\"_blank\" rel=\"noopener noreferrer\">pip<\/a>\u2500Python 3.4\u4ee5\u964d\u3001Python\u30d1\u30c3\u30b1\u30fc\u30b8\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u3067\u3042\u308bpip\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u540c\u68b1\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<p><strong>\u30d2\u30f3\u30c8<\/strong>\uff1aKinsta\u306eWordPress\u5bfe\u5fdc<a href=\"https:\/\/kinsta.com\/jp\/devkinsta\/\">DevKinsta<\/a>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3067\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/redis-docker\/\">Docker<\/a>\u5185\u3067\u3053\u306e\u958b\u767a\u74b0\u5883\u3092\u7c21\u5358\u306b\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u524d\u63d0\u6761\u4ef6\u3092\u6e80\u305f\u3057\u305f\u3089\u3001\u3044\u3088\u3044\u3088\u672c\u984c\u3067\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u306eWordPress\u306e\u6295\u7a3f\u3092\u8f9e\u66f8\u5f62\u5f0f\u3067\u53d7\u3051\u53d6\u308a\u3001Redis\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u4fdd\u5b58\u3059\u308bPython\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<h2>Redis\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u6295\u7a3f\u3092\u4fdd\u5b58\u3059\u308bPython\u30a2\u30d7\u30ea\u306e\u69cb\u7bc9<\/h2>\n<p>Redis\u30ad\u30e3\u30c3\u30b7\u30e5\u306f\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u52b9\u7387\u7684\u306a\u30ad\u30e3\u30c3\u30b7\u30e5\u30e1\u30ab\u30cb\u30ba\u30e0\u3067\u3059\u3002\u983b\u7e41\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3055\u308c\u308b\u60c5\u5831\u3092\u4fdd\u5b58\u3057\u3066\u3001\u7d20\u65e9\u304f\u4fbf\u5229\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u30ad\u30e3\u30c3\u30b7\u30e5\u3067\u306f\u30ad\u30fc\u30d0\u30ea\u30e5\u30fc\u306e\u30c7\u30fc\u30bf\u69cb\u9020\u3067\u60c5\u5831\u304c\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><strong>python-redis<\/strong>\u3068\u3044\u3046\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u7528\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304b\u3089\u59cb\u3081\u307e\u3057\u3087\u3046\u3002\u305d\u306e\u5f8c\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/python-commands\/#introduction-to-the-cli\">\u30b3\u30de\u30f3\u30c9\u30bf\u30fc\u30df\u30ca\u30eb<\/a>\u3092\u8d77\u52d5\u3057\u3001<code>cd<\/code> <strong>python-redis<\/strong>\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066redis-py\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">pip install redis<\/code><\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001<strong>python-redis<\/strong>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b<strong>main.py<\/strong>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f<strong>redis-py<\/strong>\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3001Redis\u306e\u30db\u30b9\u30c8\u3068\u30dd\u30fc\u30c8\u306e\u30a2\u30c9\u30ec\u30b9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-python\">import redis\nredis_host = 'localhost'\nredis_port = 6379<\/code><\/pre>\n<p>\u6b21\u306b\u3001WordPress\u306e\u6295\u7a3f\u306e\u5024\u3092\u8f9e\u66f8\u306e\u30ad\u30fc\u3068\u5024\u306e\u30da\u30a2\u3068\u3057\u3066\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u304c\u305d\u306e\u4f8b\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-python\">post = {\n    'ID': 1,\n    'post_author': 1,\n    'post_date': '2024-02-05 00:00:00',\n    'post_date_gmt': '2024-02-05 00:00:00',\n    'post_content': 'Test Post &lt;br\/&gt;&lt;a href=\"http:\/\/www.my-site.com\/\"&gt;related blog post&lt;\/a&gt;',\n    'post_title': 'My first post',\n    'post_excerpt': 'In this post, I will...',\n    'post_status': 'publish',\n    'comment_status': 'open',\n    'ping_status': 'open',\n    'post_password': 'my-post-pwd',\n    'post_name': 'my-first-post',    \n}<\/code><\/pre>\n<p><strong>\u6ce8<\/strong>\uff09\u5b9f\u969b\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u6295\u7a3f\u5185\u5bb9\u306f\u304a\u305d\u3089\u304f<a href=\"https:\/\/kinsta.com\/jp\/blog\/what-is-html\/\">HTML<\/a>\u5165\u529b\u30d5\u30a9\u30fc\u30e0\u304b\u3089\u6765\u308b\u3053\u3068\u306b\u306a\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p><code>redis_dict()<\/code>\u95a2\u6570\u3092\u30b3\u30fc\u30c9\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002\u3053\u306e\u95a2\u6570\u306f\u3001\u30ed\u30fc\u30ab\u30eb\u306eRedis\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3057\u3001\u4e0a\u8a18\u306e\u6295\u7a3f\u3092Redis\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u4fdd\u5b58\u3057\u3001\u4f5c\u6210\u3055\u308c\u305f\u5024\u3092\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-python\">def redis_dict():\n    try:\n        r = redis.StrictRedis(host = redis_host, port = redis_port, decode_responses=True)\n        r.hset(\"newPostOne\", mapping=post)\n        msg = r.hgetall(\"newPostOne\")\n        print(msg)\n    except Exception as e:\n        print(f\"Something went wrong {e}\")\n\n# \u95a2\u6570\u3092\u5b9f\u884c:\nif __name__ == \"__main__\":\n    redis_dict()<\/code><\/pre>\n<p>Docker\u5185\u3067Redis\u3092\u8d77\u52d5\u3057\u305f\u5834\u5408\u3092\u9664\u304d\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067Redis\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">redis-cli<\/code><\/pre>\n<p>Python\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">python main.py<\/code><\/pre>\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u6295\u7a3f\u304cRedis\u306e\u30ad\u30fc\u30d0\u30ea\u30e5\u30fc\u30b9\u30c8\u30a2\u306b\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002\u30bf\u30fc\u30df\u30ca\u30eb\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<figure style=\"width: 960px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2024\/01\/python-application-post-in-redis.png\" alt=\"\u30bf\u30fc\u30df\u30ca\u30eb\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\uff08Python\u7d4c\u7531\u3067Redis\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u8ffd\u52a0\u3055\u308c\u305f\u6295\u7a3f\u30c7\u30fc\u30bf\u3092\u793a\u3059\uff09\" width=\"960\" height=\"173\"><figcaption class=\"wp-caption-text\">Python\u30a2\u30d7\u30ea\u306epost\u304cRedis\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u8ffd\u52a0\u3055\u308c\u305f\u3053\u3068\u3092\u793a\u3059\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u306e\u51fa\u529b<\/figcaption><\/figure>\n<p>\u3053\u308c\u3067\u30ed\u30fc\u30ab\u30eb\u306eRedis\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u6295\u7a3f\u304c\u683c\u7d0d\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/wordpress-rest-api\/\">WordPress REST API<\/a>\u3092\u4f7f\u3063\u3066WordPress\u30b5\u30a4\u30c8\u306b\u3053\u306e\u6295\u7a3f\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>REST API\u3092\u4f7f\u3063\u3066WordPress\u306b\u6295\u7a3f\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b<\/h2>\n<p>WordPress REST API\u306b\u306f\u3001WordPress\u3068\u3084\u308a\u3068\u308a\u3059\u308b\u305f\u3081\u306b\u30a2\u30d7\u30ea\u304b\u3089\u547c\u3073\u51fa\u3059\u3053\u3068\u306e\u3067\u304d\u308b\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001WordPress\u306b\u6295\u7a3f\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b<a href=\"https:\/\/developer.wordpress.org\/rest-api\/reference\/posts\/\" target=\"_blank\" rel=\"noopener noreferrer\">post<\/a>\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30b9\u30c6\u30c3\u30d7 1. WordPress \u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3059\u308b<\/h3>\n<p>WordPress API\u3067\u306f\u3001\u30a2\u30d7\u30ea\u304cWordPress\u30b5\u30a4\u30c8\u304b\u3089\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306e\u3092\u8a31\u53ef\u3059\u308b\u305f\u3081\u306b\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u5fc5\u8981\u3067\u3059\u3002\u30d1\u30b9\u30ef\u30fc\u30c9\u306f24\u6587\u5b57\u306e\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30ad\u30fc\u3067\u3001REST API\u3078\u306e\u3059\u3079\u3066\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>WordPress\u7ba1\u7406\u753b\u9762\u306e\u300c<strong>\u30e6\u30fc\u30b6\u30fc<\/strong>\u300d\u30da\u30fc\u30b8\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u751f\u6210\u3057\u307e\u3059\u3002\u5404\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u306f\u3001\u308f\u304b\u308a\u3084\u3059\u3044\u3088\u3046\u306b\u540d\u524d\u3092\u5272\u308a\u5f53\u3066\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u751f\u6210\u5f8c\u306f\u30d1\u30b9\u30ef\u30fc\u30c9\u81ea\u4f53\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\uff08\u305d\u306e\u305f\u3081\u3001\u5fd8\u308c\u305a\u306b\u30b3\u30d4\u30fc\u3057\u3066\u304f\u3060\u3055\u3044\uff09\u3002<\/p>\n<figure style=\"width: 960px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2024\/01\/setting-application-password-in-wordpress.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\uff08WordPress\u306eAPI\u30d1\u30b9\u30ef\u30fc\u30c9\u751f\u6210\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\uff09\" width=\"960\" height=\"581\"><figcaption class=\"wp-caption-text\">WordPress\u7ba1\u7406\u753b\u9762\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u751f\u6210\u3059\u308b<\/figcaption><\/figure>\n<aside role=\"note\" class=\"wp-block-kinsta-notice is-style-info\">\n            <h3>Info<\/h3>\n        <p>WordPress\u306e\u672c\u756a\u74b0\u5883\u3067REST API\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306b\u306f\u30bb\u30ad\u30e5\u30a2\u306a\u63a5\u7d9a\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002SSL\u63a5\u7d9a\u304c\u5229\u7528\u3067\u304d\u306a\u3044\u958b\u767a\u74b0\u5883\u3067\u4f5c\u696d\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/wp-config-php\/\">wp-config.php<\/a>\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3001WordPress\u304c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5236\u9650\u3092\u7121\u8996\u3059\u308b\u3088\u3046\u300c\u5f37\u5236\u300d\u3059\u308b\u3053\u3068\u304c\u5fc5\u8981\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><code class=\"language-php\">define( 'WP_ENVIRONMENT_TYPE', 'local' );<\/code><\/p>\n<\/aside>\n\n<h3>\u30b9\u30c6\u30c3\u30d72. Python\u30a2\u30d7\u30ea\u3067WordPress\u306b\u6295\u7a3f\u3059\u308b<\/h3>\n<p>\u307e\u305a\u3001WordPress API\u306bHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046\u305f\u3081\u306ePython <strong>requests<\/strong>\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u3053\u308c\u3092\u884c\u3046\u306b\u306f\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><code class=\"language-bash\">pip install requests<\/code><\/pre>\n<p>\u6b21\u306b\u3001<strong>python-redis<\/strong>\u30d5\u30a9\u30eb\u30c0\u306e\u4e2d\u306b\u3001<strong>app.py<\/strong>\u3068\u3044\u3046\u540d\u524d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u307e\u305a\u3001<strong>requests<\/strong>,<strong>json<\/strong>\u3068<strong>base64<\/strong>\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-python\">import requests\nimport json\nimport base64<\/code><\/pre>\n<p>\u6b21\u306bAPI\u30d9\u30fc\u30b9URL\u3001WordPress\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002password\u5909\u6570\u306b\u306f\u3001WordPress\u3067\u751f\u6210\u3057\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><code class=\"language-python\">url = 'http:\/\/localhost\/wp-json\/wp\/v2'\nuser = '&lt;Your username here&gt;'\npassword = '&lt;Your application password here&gt;'<\/code><\/pre>\n<p>\u3053\u3053\u3067\u3001<code>user<\/code>\u3068<code>password<\/code>\u3092\u7d50\u5408\u3057\u3001\u7d50\u679c\u3092\u30a8\u30f3\u30b3\u30fc\u30c9\u3057\u3066\u30ea\u30af\u30a8\u30b9\u30c8\u30d8\u30c3\u30c0\u30fc\u306b\u6e21\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-python\">creds = user + \":\" + password\ntoken = base64.b64encode(creds.encode())\nheader = {'Authorization': 'Basic ' + token.decode('utf-8')}<\/code><\/pre>\n<p>\u4ee5\u4e0b\u304c\u6295\u7a3f\u672c\u6587\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-python\">post = {    \n    'author': 1,\n    'date': '2024-02-05 00:00:00',\n    'date_gmt': '2024-02-05 00:00:00',\n    'content': 'Test Post &lt;br\/&gt;&lt;a href=\"http:\/\/www.my-site.com\/\"&gt;related blog post&lt;\/a&gt;',\n    'title': 'My second post',\n    'excerpt': 'In this post, I will...',\n    'status': 'publish',\n    'comment_status': 'open',\n    'ping_status': 'open',\n    'password': 'my-post-pwd',\n    'slug': 'my-second-post',    \n}<\/code><\/pre>\n<p>API\u3078\u306ePOST\u30ea\u30af\u30a8\u30b9\u30c8\u3068\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u8868\u793a\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-python\">r = requests.post(url + '\/posts', headers=header, json=post)\nprint(r)<\/code><\/pre>\n<p>\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">python app.py<\/code><\/pre>\n<p><a href=\"https:\/\/kinsta.com\/jp\/blog\/http-status-codes\/#200-status-codes\">201\u30ec\u30b9\u30dd\u30f3\u30b9<\/a>\uff08&#8221;Created&#8221;\uff09\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u3001\u30ea\u30bd\u30fc\u30b9\u304c\u7121\u4e8b\u306b\u8ffd\u52a0\u3055\u308c\u305f\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<figure style=\"width: 960px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2024\/01\/post-success-201-via-python-wordpress-api.png\" alt=\"\u30bf\u30fc\u30df\u30ca\u30eb\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\uff08Python\u7d4c\u7531\u3067WordPress\u306b\u6295\u7a3f\u5f8c\u3001201\u30ec\u30b9\u30dd\u30f3\u30b9\u30b3\u30fc\u30c9\u3092\u53d6\u5f97\uff09\" width=\"960\" height=\"112\"><figcaption class=\"wp-caption-text\">201\u30ec\u30b9\u30dd\u30f3\u30b9\u30b3\u30fc\u30c9\uff08\u6b63\u5e38\u306b\u6295\u7a3f\u3055\u308c\u305f\u3053\u3068\u3092\u793a\u3059\uff09<\/figcaption><\/figure>\n<p><a href=\"https:\/\/kinsta.com\/jp\/blog\/wordpress-admin\/\">WordPress\u7ba1\u7406\u753b\u9762<\/a>\u307e\u305f\u306f\u30b5\u30a4\u30c8\u306eMySQL\/MariaDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u7d50\u679c\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>WordPress\u3067Redis\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u76f4\u63a5\u4f7f\u7528\u3059\u308b<\/h2>\n<p>WordPress\u30b5\u30a4\u30c8\u3067\u306f\u3001Redis\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u4f7f\u7528\u3057\u3066\u3001\u6295\u7a3f\u3001\u56fa\u5b9a\u30da\u30fc\u30b8\u3001\u30e6\u30fc\u30b6\u30fc\u306a\u3069\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4e00\u6642\u7684\u306b\u4fdd\u5b58\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001\u5fc5\u8981\u306a\u3068\u304d\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u304b\u3089\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u3067\u3059\u3002\u3053\u306e\u65b9\u6cd5\u306b\u3088\u308a\u3001\u624b\u9593\u3068\u5f85\u3061\u6642\u9593\u3092\u524a\u6e1b\u3057\u306a\u304c\u3089\u3001\u30b5\u30a4\u30c8\u3092\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u3057\u305f\u308a\u3001\u591a\u304f\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u3055\u3070\u3044\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>Kinsta\u3068Redis<\/h3>\n<p>\u9ad8\u901f\u8868\u793a\u3068\u5feb\u9069\u306a\u30e6\u30fc\u30b6\u30fc\u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9\u306f\u3082\u306f\u3084\u4e0d\u53ef\u6b20\u3067\u3059\u3002\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u59a5\u5354\u306f\u8a31\u3055\u308c\u307e\u305b\u3093\u3002Kinsta\u3067\u306f\u3001\u305d\u3093\u306a\u601d\u3044\u304b\u3089<a href=\"https:\/\/kinsta.com\/jp\/add-ons\/\">\u30d7\u30ec\u30df\u30a2\u30e0\u30a2\u30c9\u30aa\u30f3<\/a>\u3068\u3057\u3066Redis\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Redis\u30a2\u30c9\u30aa\u30f3\u3092\u3054\u5e0c\u671b\u3067\u3042\u308c\u3070\u3001<a href=\"https:\/\/kinsta.com\/jp\/docs\/wordpress-hosting\/caching\/redis-cache\/\">Kinsta\u306e\u30b5\u30dd\u30fc\u30c8\u306b\u3054\u9023\u7d61<\/a>\u304f\u3060\u3055\u3044\u3002\u30a8\u30f3\u30b8\u30cb\u30a2\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3092\u627f\u308a\u307e\u3059\u3002<\/p>\n<h3>Redis\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>Kinsta\u4ee5\u5916\u306e\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9\u3084\u30b5\u30fc\u30d0\u30fc\u3092\u304a\u4f7f\u3044\u3067\u3042\u308c\u3070\u3001WordPress\u30b5\u30a4\u30c8\u306b<a href=\"https:\/\/kinsta.com\/blog\/how-to-install-wordpress-plugins\/\">\u5c02\u7528\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a>\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001Redis Object Cache\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30ed\u30fc\u30ab\u30eb\u306eWordPress\u30b5\u30a4\u30c8\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<figure style=\"width: 645px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2024\/01\/redis-object-cache-plugin.png\" alt=\"WordPress\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308bRedis Object Cache\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u9078\u629e\" width=\"645\" height=\"544\"><figcaption class=\"wp-caption-text\">Redis Object Cache\u3068\u3044\u3046\u30d7\u30e9\u30b0\u30a4\u30f3<\/figcaption><\/figure>\n<p>\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067<strong>wp-config.php<\/strong>\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u3001\u30ab\u30b9\u30bf\u30e0\u8a2d\u5b9a\u5909\u6570\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">define('WP_REDIS_CLIENT', 'predis');\ndefine('WP_REDIS_HOST', 'localhost');\ndefine('WP_REDIS_PORT', '6379');<\/code><\/pre>\n<p><strong>\u6ce8<\/strong>\uff09Redis\u30db\u30b9\u30c8\u306e\u30a2\u30c9\u30ec\u30b9\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u69cb\u6210\u306b\u3088\u308a\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>WordPress\u7ba1\u7406\u753b\u9762\u306e\u300c<strong>\u8a2d\u5b9a<\/strong>\u300d\uff1e\u300c<strong>Redis<\/strong>\u300d\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002\u3059\u308b\u3068\u3053\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u8868\u793a\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<figure style=\"width: 587px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2024\/01\/redis-object-cache-enabled.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\uff08WordPress\u306eRedis Object Cache\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u8a2d\u5b9a\u30da\u30fc\u30b8\uff09\" width=\"587\" height=\"617\"><figcaption class=\"wp-caption-text\">Redis Object Cache\u30d7\u30e9\u30b0\u30a4\u30f3\uff08\u300c<strong>\u8a2d\u5b9a<\/strong>\u300d\u30bf\u30d6\u5185\u304b\u3089\u79fb\u52d5\uff09<\/figcaption><\/figure>\n<p>\u3053\u308c\u3067\u3001MySQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304cRedis\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306eWordPress\u30b5\u30a4\u30c8\u306f\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306ePython\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u540c\u3058\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u304d\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u30c6\u30b9\u30c8\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">redis-cli monitor<\/code><\/pre>\n<p>\u30b5\u30a4\u30c8\u3092\u79fb\u52d5\u3059\u308b\u3068\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<figure style=\"width: 654px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2024\/01\/monitoring-redis-server-requests.png\" alt=\"\u30bf\u30fc\u30df\u30ca\u30eb\u5185\u306eRedis\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u793a\u3059\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\" width=\"654\" height=\"257\"><figcaption class=\"wp-caption-text\">\u30bf\u30fc\u30df\u30ca\u30eb\u3067<strong>redis-cli<\/strong>\u3092\u4f7f\u3063\u3066\u30b5\u30fc\u30d0\u30fc\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u76e3\u8996\u3059\u308b<\/figcaption><\/figure>\n<p>\u3053\u308c\u3067\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3068\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u304c\u540c\u671f\u3057\u305f\u306e\u3067\u3001Python\u30a2\u30d7\u30ea\u3092\u4f7f\u3063\u3066REST API\u7d4c\u7531\u3067WordPress\u306b\u6295\u7a3f\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3092\u884c\u3046\u306b\u306f\u3001<strong>app.py<\/strong>\u306ePOST\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u65b0\u898f\u6295\u7a3f\u3092\u542b\u3080\u3088\u3046\u306b\u5909\u66f4\u3057\u3001<code>python app.py<\/code>\u3092\u5b9f\u884c\u3057\u6295\u7a3f\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u4eca\u56de\u306e\u8a18\u4e8b\u3067\u306f\u3001Redis Python\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f7f\u7528\u3057\u3066Redis\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092Python\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u63a5\u7d9a\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u30ea\u30b9\u30c8\u3001\u30bb\u30c3\u30c8\u3001\u8f9e\u66f8\u3001\u305d\u306e\u4ed6\u30b3\u30de\u30f3\u30c9\u30c7\u30fc\u30bf\u578b\u3068\u3044\u3063\u305fRedis\u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\u306e\u8907\u6570\u306e\u5f62\u5f0f\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001REST API\u3068Redis Object Cache\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u3063\u3066Redis\u3092WordPress\u30b5\u30a4\u30c8\u306b\u7d71\u5408\u3059\u308b\u65b9\u6cd5\u3082\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30a4\u30f3\u30e1\u30e2\u30ea\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u30b5\u30a4\u30c8\u306b\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001Redis\u306f\u5f37\u529b\u304b\u3064\u67d4\u8edf\u306a\u958b\u767a\u30c4\u30fc\u30eb\u3068\u306a\u308a\u307e\u3059\u3002Redis\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30af\u30a8\u30ea\u901f\u5ea6\u3001\u30b5\u30a4\u30c8\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3001\u305d\u3057\u3066\u5168\u4f53\u7684\u306a\u30e6\u30fc\u30b6\u30fc\u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9\u3092\u5f15\u304d\u4e0a\u3052\u308b\u306e\u306b\u52b9\u679c\u7684\u3067\u3059\u3002<\/p>\n<p>Kinsta\u3067\u306f\u3001\u30b5\u30dd\u30fc\u30c8\u30a8\u30f3\u30b8\u30cb\u30a2\u306bWordPress\u30b5\u30a4\u30c8\u3078\u306eRedis\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u304a\u4efb\u305b\u3044\u305f\u3060\u3051\u307e\u3059\u3002\u3055\u3089\u306b\u3001Kinsta\u306e<a href=\"https:\/\/sevalla.com\/database-hosting\/\">\u30de\u30cd\u30fc\u30b8\u30c9\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9<\/a>\u3067Redis\u3092\u30b9\u30bf\u30f3\u30c9\u30a2\u30ed\u30f3\u3068\u3057\u3066\u5b9f\u88c5\u3059\u308b\u9078\u629e\u80a2\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u591a\u304f\u306e\u958b\u767a\u8005\u304c\u3001Python\u3068NoSQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9 &#8230;<\/p>\n","protected":false},"author":259,"featured_media":54518,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kinsta_gated_content":false,"_kinsta_gated_content_redirect":"","footnotes":""},"tags":[],"topic":[801,826],"class_list":["post-54517","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","topic-python","topic-wordpress-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.6 (Yoast SEO v24.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python\u3068Redis\u3067WordPress\u30b5\u30a4\u30c8\u306e\u6027\u80fd\u3092\u5f37\u5316\u3059\u308b\u65b9\u6cd5\uff5cKinsta\u00ae<\/title>\n<meta name=\"description\" content=\"Python\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001WordPress\u30b5\u30a4\u30c8\u3001\u9ad8\u901fNoSQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9Redis\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u3001\u305d\u308c\u305e\u308c\u306e\u6027\u80fd\u3092\u6700\u5927\u9650\u306b\u5f15\u304d\u51fa\u3059\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kinsta.com\/jp\/blog\/python-redis\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python\u3068Redis\u3067WordPress\u30b5\u30a4\u30c8\u306e\u6027\u80fd\u3092\u5f37\u5316\u3059\u308b\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"Python\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001WordPress\u30b5\u30a4\u30c8\u3001\u9ad8\u901fNoSQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9Redis\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u3001\u305d\u308c\u305e\u308c\u306e\u6027\u80fd\u3092\u6700\u5927\u9650\u306b\u5f15\u304d\u51fa\u3059\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kinsta.com\/jp\/blog\/python-redis\/\" \/>\n<meta property=\"og:site_name\" content=\"Kinsta\u00ae\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-31T17:16:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-05T08:40:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/01\/python-redis-wordpress.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1460\" \/>\n\t<meta property=\"og:image:height\" content=\"730\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Steve Bonisteel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:description\" content=\"Python\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001WordPress\u30b5\u30a4\u30c8\u3001\u9ad8\u901fNoSQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9Redis\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u3001\u305d\u308c\u305e\u308c\u306e\u6027\u80fd\u3092\u6700\u5927\u9650\u306b\u5f15\u304d\u51fa\u3059\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/01\/python-redis-wordpress.jpg\" \/>\n<meta name=\"twitter:creator\" content=\"@Kinsta_JP\" \/>\n<meta name=\"twitter:site\" content=\"@Kinsta_JP\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Steve Bonisteel\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"3\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/python-redis\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/python-redis\/\"},\"author\":{\"name\":\"Steve Bonisteel\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/d84ceff87bd64a4368a581fc8aa8bd6f\"},\"headline\":\"Python\u3068Redis\u3067WordPress\u30b5\u30a4\u30c8\u306e\u6027\u80fd\u3092\u5f37\u5316\u3059\u308b\u65b9\u6cd5\",\"datePublished\":\"2024-01-31T17:16:57+00:00\",\"dateModified\":\"2024-02-05T08:40:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/python-redis\/\"},\"wordCount\":236,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/python-redis\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/01\/python-redis-wordpress.jpg\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/python-redis\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/python-redis\/\",\"url\":\"https:\/\/kinsta.com\/jp\/blog\/python-redis\/\",\"name\":\"Python\u3068Redis\u3067WordPress\u30b5\u30a4\u30c8\u306e\u6027\u80fd\u3092\u5f37\u5316\u3059\u308b\u65b9\u6cd5\uff5cKinsta\u00ae\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/python-redis\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/python-redis\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/01\/python-redis-wordpress.jpg\",\"datePublished\":\"2024-01-31T17:16:57+00:00\",\"dateModified\":\"2024-02-05T08:40:15+00:00\",\"description\":\"Python\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001WordPress\u30b5\u30a4\u30c8\u3001\u9ad8\u901fNoSQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9Redis\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u3001\u305d\u308c\u305e\u308c\u306e\u6027\u80fd\u3092\u6700\u5927\u9650\u306b\u5f15\u304d\u51fa\u3059\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/python-redis\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/python-redis\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/python-redis\/#primaryimage\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/01\/python-redis-wordpress.jpg\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/01\/python-redis-wordpress.jpg\",\"width\":1460,\"height\":730},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/python-redis\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kinsta.com\/jp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\",\"item\":\"https:\/\/kinsta.com\/jp\/topics\/python\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Python\u3068Redis\u3067WordPress\u30b5\u30a4\u30c8\u306e\u6027\u80fd\u3092\u5f37\u5316\u3059\u308b\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kinsta.com\/jp\/#website\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"name\":\"Kinsta\u00ae\",\"description\":\"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9\",\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kinsta.com\/jp\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\",\"name\":\"Kinsta\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"width\":500,\"height\":500,\"caption\":\"Kinsta\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\",\"https:\/\/x.com\/Kinsta_JP\",\"https:\/\/www.instagram.com\/kinstahosting\/\",\"https:\/\/www.linkedin.com\/company\/kinsta\/\",\"https:\/\/www.pinterest.com\/kinstahosting\/\",\"https:\/\/www.youtube.com\/c\/Kinsta\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/d84ceff87bd64a4368a581fc8aa8bd6f\",\"name\":\"Steve Bonisteel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0adffb3f9c86a6ec8245f8399d540823?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0adffb3f9c86a6ec8245f8399d540823?s=96&d=mm&r=g\",\"caption\":\"Steve Bonisteel\"},\"description\":\"Steve Bonisteel is a Technical Editor at Kinsta who began his writing career as a print journalist, chasing ambulances and fire trucks. He has been covering Internet-related technology since the late 1990s.\",\"url\":\"https:\/\/kinsta.com\/jp\/blog\/author\/stevebonisteel\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Python\u3068Redis\u3067WordPress\u30b5\u30a4\u30c8\u306e\u6027\u80fd\u3092\u5f37\u5316\u3059\u308b\u65b9\u6cd5\uff5cKinsta\u00ae","description":"Python\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001WordPress\u30b5\u30a4\u30c8\u3001\u9ad8\u901fNoSQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9Redis\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u3001\u305d\u308c\u305e\u308c\u306e\u6027\u80fd\u3092\u6700\u5927\u9650\u306b\u5f15\u304d\u51fa\u3059\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","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:\/\/kinsta.com\/jp\/blog\/python-redis\/","og_locale":"ja_JP","og_type":"article","og_title":"Python\u3068Redis\u3067WordPress\u30b5\u30a4\u30c8\u306e\u6027\u80fd\u3092\u5f37\u5316\u3059\u308b\u65b9\u6cd5","og_description":"Python\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001WordPress\u30b5\u30a4\u30c8\u3001\u9ad8\u901fNoSQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9Redis\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u3001\u305d\u308c\u305e\u308c\u306e\u6027\u80fd\u3092\u6700\u5927\u9650\u306b\u5f15\u304d\u51fa\u3059\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","og_url":"https:\/\/kinsta.com\/jp\/blog\/python-redis\/","og_site_name":"Kinsta\u00ae","article_publisher":"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","article_published_time":"2024-01-31T17:16:57+00:00","article_modified_time":"2024-02-05T08:40:15+00:00","og_image":[{"width":1460,"height":730,"url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/01\/python-redis-wordpress.jpg","type":"image\/jpeg"}],"author":"Steve Bonisteel","twitter_card":"summary_large_image","twitter_description":"Python\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001WordPress\u30b5\u30a4\u30c8\u3001\u9ad8\u901fNoSQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9Redis\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u3001\u305d\u308c\u305e\u308c\u306e\u6027\u80fd\u3092\u6700\u5927\u9650\u306b\u5f15\u304d\u51fa\u3059\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","twitter_image":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/01\/python-redis-wordpress.jpg","twitter_creator":"@Kinsta_JP","twitter_site":"@Kinsta_JP","twitter_misc":{"\u57f7\u7b46\u8005":"Steve Bonisteel","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"3\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kinsta.com\/jp\/blog\/python-redis\/#article","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/blog\/python-redis\/"},"author":{"name":"Steve Bonisteel","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/d84ceff87bd64a4368a581fc8aa8bd6f"},"headline":"Python\u3068Redis\u3067WordPress\u30b5\u30a4\u30c8\u306e\u6027\u80fd\u3092\u5f37\u5316\u3059\u308b\u65b9\u6cd5","datePublished":"2024-01-31T17:16:57+00:00","dateModified":"2024-02-05T08:40:15+00:00","mainEntityOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/python-redis\/"},"wordCount":236,"commentCount":0,"publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/python-redis\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/01\/python-redis-wordpress.jpg","inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kinsta.com\/jp\/blog\/python-redis\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kinsta.com\/jp\/blog\/python-redis\/","url":"https:\/\/kinsta.com\/jp\/blog\/python-redis\/","name":"Python\u3068Redis\u3067WordPress\u30b5\u30a4\u30c8\u306e\u6027\u80fd\u3092\u5f37\u5316\u3059\u308b\u65b9\u6cd5\uff5cKinsta\u00ae","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/python-redis\/#primaryimage"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/python-redis\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/01\/python-redis-wordpress.jpg","datePublished":"2024-01-31T17:16:57+00:00","dateModified":"2024-02-05T08:40:15+00:00","description":"Python\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001WordPress\u30b5\u30a4\u30c8\u3001\u9ad8\u901fNoSQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9Redis\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u3001\u305d\u308c\u305e\u308c\u306e\u6027\u80fd\u3092\u6700\u5927\u9650\u306b\u5f15\u304d\u51fa\u3059\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/kinsta.com\/jp\/blog\/python-redis\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kinsta.com\/jp\/blog\/python-redis\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/blog\/python-redis\/#primaryimage","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/01\/python-redis-wordpress.jpg","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2024\/01\/python-redis-wordpress.jpg","width":1460,"height":730},{"@type":"BreadcrumbList","@id":"https:\/\/kinsta.com\/jp\/blog\/python-redis\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kinsta.com\/jp\/"},{"@type":"ListItem","position":2,"name":"Python","item":"https:\/\/kinsta.com\/jp\/topics\/python\/"},{"@type":"ListItem","position":3,"name":"Python\u3068Redis\u3067WordPress\u30b5\u30a4\u30c8\u306e\u6027\u80fd\u3092\u5f37\u5316\u3059\u308b\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/kinsta.com\/jp\/#website","url":"https:\/\/kinsta.com\/jp\/","name":"Kinsta\u00ae","description":"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9","publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kinsta.com\/jp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/kinsta.com\/jp\/#organization","name":"Kinsta","url":"https:\/\/kinsta.com\/jp\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","width":500,"height":500,"caption":"Kinsta"},"image":{"@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","https:\/\/x.com\/Kinsta_JP","https:\/\/www.instagram.com\/kinstahosting\/","https:\/\/www.linkedin.com\/company\/kinsta\/","https:\/\/www.pinterest.com\/kinstahosting\/","https:\/\/www.youtube.com\/c\/Kinsta"]},{"@type":"Person","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/d84ceff87bd64a4368a581fc8aa8bd6f","name":"Steve Bonisteel","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0adffb3f9c86a6ec8245f8399d540823?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0adffb3f9c86a6ec8245f8399d540823?s=96&d=mm&r=g","caption":"Steve Bonisteel"},"description":"Steve Bonisteel is a Technical Editor at Kinsta who began his writing career as a print journalist, chasing ambulances and fire trucks. He has been covering Internet-related technology since the late 1990s.","url":"https:\/\/kinsta.com\/jp\/blog\/author\/stevebonisteel\/"}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/54517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/users\/259"}],"replies":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/comments?post=54517"}],"version-history":[{"count":6,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/54517\/revisions"}],"predecessor-version":[{"id":54664,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/54517\/revisions\/54664"}],"alternate":[{"embeddable":true,"hreflang":"en","title":"English","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/54517\/translations\/en"},{"embeddable":true,"hreflang":"it","title":"Italian","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/54517\/translations\/it"},{"embeddable":true,"hreflang":"pt","title":"Portuguese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/54517\/translations\/pt"},{"embeddable":true,"hreflang":"fr","title":"French","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/54517\/translations\/fr"},{"embeddable":true,"hreflang":"de","title":"German","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/54517\/translations\/de"},{"embeddable":true,"hreflang":"ja","title":"Japanese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/54517\/translations\/jp"},{"embeddable":true,"hreflang":"nl","title":"Dutch","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/54517\/translations\/nl"},{"embeddable":true,"hreflang":"es","title":"Spanish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/54517\/translations\/es"},{"href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/54517\/tree"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media\/54518"}],"wp:attachment":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media?parent=54517"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/tags?post=54517"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/topic?post=54517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}