{"id":32726,"date":"2021-08-01T08:08:09","date_gmt":"1970-01-01T00:00:00","guid":{"rendered":"http:\/\/www.sejuku.net\/blog\/?p=32726"},"modified":"2024-05-06T11:44:59","modified_gmt":"2024-05-06T02:44:59","slug":"%e3%80%90rails%e5%85%a5%e9%96%80%e3%80%91cache%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e3%81%be%e3%81%a8%e3%82%81","status":"publish","type":"post","link":"https:\/\/www.sejuku.net\/blog\/32726","title":{"rendered":"\u3010Rails\u5165\u9580\u3011cache\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f! \u30d5\u30ea\u30fc\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u9577\u702c\u3067\u3059\u3002<\/p>\n<p>\u307f\u306a\u3055\u3093\u306f<span style=\"color: #339966;\"><strong>cache<\/strong><\/span>\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u304b\uff1f<\/p>\n<p>cache\u3092\u4e0a\u624b\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308c\u3070\u3001<span style=\"color: #0000ff;\"><strong>\u7c21\u6f54\u306b\u30b5\u30a4\u30c8\u3092\u9ad8\u901f\u5316<\/strong><\/span>\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001cache\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066<\/p>\n<p><span style=\"color: #ff0000;\"><strong>\u30fbcache(\u30ad\u30e3\u30c3\u30b7\u30e5)\u3068\u306f<br \/>\n\u30fbRails5\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u4f7f\u7528\u3059\u308b\u6e96\u5099\u3092\u3059\u308b<br \/>\n\u30fb\u30da\u30fc\u30b8\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0(\u30da\u30fc\u30b8\u5168\u4f53\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b)<br \/>\n\u30fb\u30a2\u30af\u30b7\u30e7\u30f3\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0(\u7279\u5b9a\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b)<\/strong><\/span><\/p>\n<p>\u3068\u3044\u3046\u57fa\u672c\u7684\u306a\u5185\u5bb9\u304b\u3089\u3001<\/p>\n<p><span style=\"color: #ff0000;\"><strong>\u30fb\u30d5\u30e9\u30b0\u30e1\u30f3\u30c8\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0(\u90e8\u5206\u7684\u306b\u30da\u30fc\u30b8\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b)<br \/>\n\u30fb\u30e2\u30c7\u30eb\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0(\u30e2\u30c7\u30eb\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b)<br \/>\n\u30fb\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308bcache\u3092\u524a\u9664\u3059\u308b\u65b9\u6cd5<\/strong><\/span><\/p>\n<p>\u3068\u3044\u3063\u305f\u5fdc\u7528\u7684\u306a\u5185\u5bb9\u306b\u3064\u3044\u3066\u3082\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2>cache(\u30ad\u30e3\u30c3\u30b7\u30e5)\u3068\u306f<\/h2>\n<p><span style=\"color: #339966;\"><strong>cache<\/strong><\/span>\u306f\u4eca\u3067\u306f\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u306e\u7528\u8a9e\u3068\u3057\u3066\u5b9a\u7740\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u5143\u306f\u300c \u301c\u3092\u96a0\u3059\u300d \u3068\u3044\u3046\u610f\u5473\u3092\u6301\u3064\u8a00\u8449\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u8a9e\u6e90\u306e\u610f\u5473\u901a\u308a\u3001cache\u306e\u5f79\u5272\u306f\u975e\u5e38\u306b\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u3002<\/p>\n<p>cache\u3067\u306f\u4e00\u5ea6\u8aad\u307f\u8fbc\u307e\u308c\u305f\u30c7\u30fc\u30bf\u3092\u3069\u3053\u304b\u306b\u4fdd\u5b58\u3057\u3066\u304a\u3044\u3066\u3001<span style=\"color: #ff0000; background-color: #ffff99;\"><strong>\u6b21\u56de\u304b\u3089\u305d\u306e\u30c7\u30fc\u30bf\u304c\u4fdd\u5b58\u3057\u3066\u3042\u308b\u3068\u3053\u308d\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u3067\u6bce\u56de\u540c\u3058\u30c7\u30fc\u30bf\u8aad\u307f\u8fbc\u3080\u7121\u99c4\u3092\u56de\u907f\u3057\u307e\u3059\u3002<\/strong><\/span><\/p>\n<p>\u3044\u3061\u3044\u3061\u540c\u3058\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u5fc5\u8981\u304c\u306a\u304f\u3001\u30da\u30fc\u30b8\u306e\u8aad\u307f\u8fbc\u307f\u306a\u3069\u306e\u30b9\u30d4\u30fc\u30c9\u304c\u683c\u6bb5\u306b\u901f\u304f\u306a\u308b\u305f\u3081\u30e6\u30fc\u30b6\u30fc\u304c\u3088\u308a<span style=\"color: #0000ff;\"><strong>\u5feb\u9069\u306b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528<\/strong><\/span>\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>Rails5\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u4f7f\u7528\u3059\u308b\u6e96\u5099\u3092\u3059\u308b<\/h2>\n<p>\u3067\u306f\u3001\u65e9\u901f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u5f62\u5f0f\u3067\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u4f53\u9a13\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4eca\u56de\u306frails5.1.4\u3068ruby2.4\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u8a71\u3057\u3092\u9032\u3081\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3061\u8fbc\u3093\u3067\u3001\u65b0\u3057\u3044rails\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u7acb\u3061\u4e0a\u3052\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">rails new CacheTest -T<\/pre>\n<p>\u4eca\u56de\u306f\u30c6\u30b9\u30c8\u3092\u8a18\u8ff0\u3057\u306a\u3044\u306e\u3067\u3001\u300c-T\u300d\u3092\u3064\u3051\u3066test\u30d5\u30a1\u30a4\u30eb\u7fa4\u3092\u4f5c\u6210\u3057\u306a\u3044\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u59cb\u3081\u306b\u3001\u521d\u671f\u8a2d\u5b9a\u3067\u306f<span style=\"color: #ff0000;\"><strong>\u958b\u767a\u74b0\u5883\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u306f\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u306a\u3044<\/strong><\/span>\u306e\u3067\u3001\u6709\u52b9\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3061\u8fbc\u3093\u3067\u3001\u958b\u767a\u74b0\u5883\u3067\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u6709\u52b9\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">rails dev:cache<\/pre>\n<p>[\u5b9f\u884c\u7d50\u679c]<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">Development mode is now being cached.\r\n<\/pre>\n<p>\u3053\u308c\u3067\u958b\u767a\u74b0\u5883\u3067\u3082\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u6709\u52b9\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u305f\u3001\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3067\u306f\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u76f4\u4e0b\u306etmp\u30d5\u30a9\u30eb\u30c0\u5185\u306bcaching-dev.txt\u3068\u3044\u3046\u30ad\u30e3\u30c3\u30b7\u30e5\u7528\u306e\u30d5\u30a1\u30a4\u30eb\u3082\u81ea\u52d5\u3067\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u306b\u4f34\u3063\u3066\u3001config\/environments\/development.rb\u306b\u306f\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u30b3\u30fc\u30c9\u304c\u8a18\u8ff0\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">  # Enable\/disable caching. By default caching is disabled.\r\n  if Rails.root.join('tmp\/caching-dev.txt').exist?\r\n    config.action_controller.perform_caching = true\r\n\r\n    config.cache_store = :memory_store\r\n    config.public_file_server.headers = {\r\n      'Cache-Control' =&gt; \"public, max-age=#{2.days.seconds.to_i}\"\r\n    }\r\n  else\r\n    config.action_controller.perform_caching = false\r\n\r\n    config.cache_store = :null_store\r\n  end<\/pre>\n<p>\u3088\u304f\u898b\u308b\u3068<span style=\"color: #339966;\"><strong>if\/else<\/strong><\/span>\u306e\u8ad6\u7406\u69cb\u9020\u306b\u306a\u3063\u3066\u3044\u3066\u3001\u3055\u304d\u307b\u3069\u7d39\u4ecb\u3057\u305ftmp\/caching-dev.txt\u304c\u3042\u308b\u304b\u306a\u3044\u304b\u306b\u3088\u3063\u3066\u6761\u4ef6\u5206\u5c90\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n( if Rails.root.join(&#8216;tmp\/caching-dev.txt&#8217;).exist? )<\/p>\n<p>tmp\/caching-dev.tx\u304c\u3042\u308b\u5834\u5408\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u6709\u52b9\u306b\u306a\u308a\u3001\u306a\u3044\u5834\u5408\u306f\u7121\u52b9\u306b\u306a\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u624b\u52d5\u3067\u6709\u52b9\/\u7121\u52b9\u3092\u5207\u308a\u66ff\u3048\u308b\u5fc5\u8981\u304c\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u30da\u30fc\u30b8\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0(\u30da\u30fc\u30b8\u5168\u4f53\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b)<\/h2>\n<p>\u305d\u308c\u3067\u306f\u3001\u6e96\u5099\u304c\u6574\u3063\u305f\u306e\u3067\u3001\u65e9\u901f\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u3092\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n<span style=\"color: #339966;\"><strong><br \/>\n\u30da\u30fc\u30b8\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0<\/strong><\/span>\u3067\u306f\u3001\u30da\u30fc\u30b8\u306e\u5185\u5bb9\u3092\u3059\u3079\u3066\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u4fdd\u5b58\u3057\u3066\u304a\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u53b3\u5bc6\u306b\u8a00\u3046\u3068\u3001\u30da\u30fc\u30b8\u306e\u3059\u3079\u3066\u306eHTML\u3092\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u76f4\u4e0b\u306epublic\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<p>\u306a\u306e\u3067\u3001\u30da\u30fc\u30b8\u3092\u4e00\u5ea6\u3067\u3082\u8a2a\u308c\u305f\u3053\u3068\u306e\u30e6\u30fc\u30b6\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u6709\u52b9\u671f\u9650\u304c\u5207\u308c\u3066\u3044\u306a\u3044\u9650\u308a\u3001\u30d3\u30e5\u30fc\u3068\u304b\u30ec\u30a4\u30a2\u30a6\u30c8\u3092\u3082\u3046\u4e00\u5ea6\u53d6\u5f97\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u8a8d\u8a3c\u3055\u308c\u305f\u30e6\u30fc\u30b6\u30fc\u3060\u3051\u304c\u30da\u30fc\u30b8\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u3084\u3001\u30da\u30fc\u30b8\u306e\u8aad\u307f\u8fbc\u307f\u74b0\u5883\u3088\u3063\u3066\u9055\u3046\u898b\u3048\u65b9\u3092\u3057\u3066\u3044\u308b\u72b6\u614b\u3067\u3001<span style=\"color: #ff0000;\"><strong>\u30da\u30fc\u30b8\u306e\u5168\u4f53\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u4fdd\u5b58\u3057\u3066\u304a\u304f\u306e\u306f\u3042\u307e\u308a\u3044\u3044\u65b9\u6cd5\u3068\u306f\u8a00\u3048\u307e\u305b\u3093\u3002<br \/>\n<\/strong><\/span><br \/>\n\u306a\u306e\u3067\u3001\u5b9f\u306fRails4\u306e\u6642\u70b9\u3067\u30da\u30fc\u30b8\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u306f\u3042\u304f\u307e\u3067\u3082gem\u306e1\u3064\u3068\u3057\u3066\u6271\u308f\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n(\u5143\u306fRails\u306b\u6a19\u6e96\u3067\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u307e\u3057\u305f\u3002)<\/p>\n<p>\u4eca\u56de\u306f\u30da\u30fc\u30b8\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u3092\u5b9f\u88c5\u3059\u308b\u306e\u3067\u3001Gemfile\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u52a0\u3048\u3066gem\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">(\u4e2d\u7565)\r\ngem 'actionpack-page_caching'\r\n(\u4e2d\u7565)<\/pre>\n<p>\u8a18\u8ff0\u304c\u5b8c\u4e86\u3057\u305f\u3089\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3067\u3001Gemfile\u306e\u5185\u5bb9\u304b\u3089\u8ffd\u52a0\u3055\u308c\u305fgem\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">bundle install<\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u4fee\u6b63\u3092\u52a0\u3048\u3066\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u4fdd\u5b58\u5148\u3092\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>config\/application.rb\u3092\u958b\u3044\u3066\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">(\u4e2d\u7565)\r\nconfig.action_controller.page_cache_directory = \"#{Rails.root.to_s}\/public\/page_cache\"\r\n(\u4e2d\u7565)<\/pre>\n<p>\u3053\u308c\u3067\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u4fdd\u5b58\u5148\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u3067\u4e00\u901a\u308a\u6e96\u5099\u304c\u3067\u304d\u305f\u306e\u3067\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3068\u30d3\u30e5\u30fc\u3092\u4f5c\u6210\u3057\u3066\u3001\u4f5c\u6210\u3057\u305f\u30da\u30fc\u30b8\u3092\u307e\u308b\u3054\u3068\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u4fdd\u5b58\u3059\u308b\u8a2d\u5b9a\u3092\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4eca\u56de\u306fgenerate\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066\u3001\u4e00\u6c17\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">rails g controller examples test<\/pre>\n<p>[\u5b9f\u884c\u7d50\u679c]<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">create  app\/controllers\/examples_controller.rb\r\n       route  get 'examples\/test'\r\n      invoke  erb\r\n      create    app\/views\/examples\r\n      create    app\/views\/examples\/test.html.erb\r\n      invoke  helper\r\n      create    app\/helpers\/examples_helper.rb\r\n      invoke  assets\r\n      invoke    coffee\r\n      create      app\/assets\/javascripts\/examples.coffee\r\n      invoke    scss\r\n      create      app\/assets\/stylesheets\/examples.scss<\/pre>\n<p>\u3053\u308c\u3067\u3001\u4eca\u56de\u5fc5\u8981\u306a\u30b3\u30f3\u30c8\u30fc\u30e9\u30fc\u3001\u30d3\u30e5\u30fc\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u4f5c\u6210\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u8a2d\u5b9a\u306f\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306b\u66f8\u3044\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>app\/controller\/examples_controller.rb\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">class ExamplesController &lt; ApplicationController\r\n  caches_page :test\r\nend<\/pre>\n<p><span style=\"color: #339966;\"><strong>caches_page<\/strong><\/span>\u306f\u5148\u307b\u3069\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fgem\u3067\u8ffd\u52a0\u3055\u308c\u305f\u30d8\u30eb\u30d1\u30fc\u3067test\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u4e38\u3054\u3068\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u4fdd\u5b58\u3059\u308b\u3053\u3068\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u308f\u304b\u308a\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u306bapp\/views\/examples\/test.html.erb\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">&lt;h1&gt;\u3053\u308c\u306f\u30da\u30fc\u30b8\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u30c6\u30b9\u30c8\u306e\u305f\u3081\u306b\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u4fdd\u5b58\u3055\u308c\u308b\u30c7\u30fc\u30bf\u3067\u3059\u3002&lt;\/h1&gt;<\/pre>\n<p>\u305d\u308c\u3067\u306f\u3001\u3053\u306e\u72b6\u614b\u3067<\/p>\n<pre class=\"lang:ruby decode:true \">rails s<\/pre>\n<p>\u3068\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u5165\u529b\u3057\u3066\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u8a2d\u5b9a\u3057\u3066\u3042\u308b<\/p>\n<p>http:\/\/localhost:3000\/examples\/test<br \/>\n(\u88dc\u8db3http:\/\/localhost:3000\u306e\u7b87\u6240\u306f\u5404\u81ea\u306e\u958b\u767a\u74b0\u5883\u306b\u3088\u308a\u8aad\u307f\u66ff\u3048\u3066\u304f\u3060\u3055\u3044\u3002)<\/p>\n<p>\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>[\u5b9f\u884c\u7d50\u679c]<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/cache1.png\" alt=\"cache1\" width=\"1970\" height=\"140\" class=\"alignnone size-full wp-image-32731\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/cache1.png 1970w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/cache1-150x11.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/cache1-300x21.png 300w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/cache1-640x45.png 640w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/cache1-810x58.png 810w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/cache1-1140x81.png 1140w\" sizes=\"(max-width: 1970px) 100vw, 1970px\" \/><\/p>\n<p>\u4e00\u5ea6\u8aad\u307f\u8fbc\u307e\u308c\u308c\u3070\u3001<span style=\"color: #0000ff;\"><strong>\u6b21\u56de\u4ee5\u964d\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u4fdd\u5b58\u3055\u308c\u305f\u30c7\u30fc\u30bf\u304c\u547c\u3073\u51fa\u3055\u308c\u308b<\/strong><\/span>\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u671f\u9650\u5207\u308c\u306b\u3059\u308b\u5834\u5408\u306f\u30b3\u30f3\u30c8\u30fc\u30e9\u30fc\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u304f\u305f\u3056\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">expire_page action: 'test'<\/pre>\n<p><span style=\"color: #339966;\"><strong>expire_page<\/strong><\/span>\u306e\u30d8\u30eb\u30d1\u30fc\u3067\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u3066\u3042\u3052\u308b\u3053\u3068\u3067\u7c21\u5358\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u7121\u52b9\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30a2\u30af\u30b7\u30e7\u30f3\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0(\u7279\u5b9a\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b)<\/h2>\n<p><span style=\"color: #339966;\"><strong>\u30a2\u30af\u30b7\u30e7\u30f3\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0<\/strong><\/span>\u306f\u30da\u30fc\u30b8\u3092\u4e38\u3054\u3068\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\u3068\u3044\u3046\u70b9\u3067\u306f\u3001\u30da\u30fc\u30b8\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u3068\u540c\u3058\u3067\u3059\u304c\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u53c2\u7167\u3059\u308b\u524d\u306b<span style=\"color: #339966;\"><strong>ActionPack<\/strong><\/span>\u3092\u7d4c\u7531\u3059\u308b\u306e\u3067\u8a8d\u8a3c\u306a\u3069\u3001\u8aad\u307f\u8fbc\u307f\u306e\u524d\u306e\u6bb5\u968e\u3067\u306e\u51e6\u7406\u3092\u7d44\u307f\u8fbc\u3081\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u3063\u3068<span style=\"color: #339966;\"><strong>ActionPack<\/strong><\/span>\u3068\u3044\u3046\u7528\u8a9e\u304c\u3067\u3066\u304d\u307e\u3057\u305f\u304c\u3001\u3053\u308c\u306fRails\u306b\u6a19\u6e96\u3067\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u308b\u3082\u306e\u3067\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u9001\u3089\u308c\u3066\u304d\u3066\u304b\u3089\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8fd4\u3059\u307e\u3067\u306e\u51e6\u7406\u3092\u62c5\u5f53\u3057\u3066\u3044\u308b\u90e8\u5206\u306e\u540d\u79f0\u3067\u3059\u3002<\/p>\n<p>Rails\u3092\u89e6\u3063\u3066\u3044\u308b\u4eba\u306a\u3089\u3001\u81ea\u7136\u306b\u3044\u3064\u3082\u304a\u4e16\u8a71\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4f55\u306f\u3068\u3082\u3042\u308c\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u3067\u306f<span style=\"color: #0000ff;\"><strong>\u524d\u306e\u6bb5\u968e\u3067\u51e6\u7406\u304c\u5b9f\u884c\u3067\u304d\u308b<\/strong><\/span>\u3068\u3044\u3046\u70b9\u3067\u3001\u30da\u30fc\u30b8\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u3068\u306f\u9055\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u30da\u30fc\u30b8\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u3068\u540c\u69d8\u306b\u30a2\u30af\u30b7\u30e7\u30f3\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u7528\u306egem\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p>Gemfile\u306b\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">gem 'actionpack-action_caching'<\/pre>\n<p>\u305d\u3057\u3066\u3001\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u306b<\/p>\n<pre class=\"lang:ruby decode:true \">bundle install<\/pre>\n<p>\u3068\u5165\u529b\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u3067\u304d\u305f\u3089\u3001\u3055\u3063\u305d\u304f\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u4fdd\u5b58\u3059\u308b\u306b\u306f<span style=\"color: #339966;\"><strong>caches_action<\/strong><\/span>\u3068\u3044\u3046\u30d8\u30eb\u30d1\u30fc\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br \/>\n\u3055\u304d\u307b\u3069\u3068\u540c\u3058\u304f\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306b\u8a18\u8ff0\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>app\/controller\/examples_controller.rb\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">class ExamplesController &lt; ApplicationController\r\n  before_action :set_name, only: [:index]\r\n  caches_page :test\r\n  \r\n  caches_action :index\r\n\r\n  def test\r\n  end\r\n\r\n  def index\r\n  end\r\n\r\n  private\r\n\r\n  def set_name\r\n    @name = 'Samurai Engineer'\r\n  end\r\nend<\/pre>\n<p>\u4eca\u56de\u306findex\u3068\u3044\u3046\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002<br \/>\nbefore_action\u3067set_name\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u6307\u5b9a\u3057\u3066\u3001only\u3067index\u30a2\u30af\u30b7\u30e7\u30f3\u306e\u307f\u306b\u9069\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e<span style=\"color: #339966;\"><strong>before_action<\/strong><\/span>\u304c\u4f7f\u3048\u308b\u3068\u3044\u3046\u3068\u3053\u308d\u304c\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u306e\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u6bb5\u968e\u3067\u306findex\u30a2\u30af\u30b7\u30e7\u30f3\u306b\u5bfe\u3057\u3066\u3001\u307e\u3060\u30d3\u30e5\u30fc\u3084\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u304c\u8a2d\u5b9a\u3057\u3066\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u8a2d\u5b9a\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>config\/route.rb\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">Rails.application.routes.draw do\r\n  get 'examples\/test'\r\n  get 'examples\/index'\r\nend<\/pre>\n<p>\u6b21\u306f\u30d3\u30e5\u30fc\u3067\u3059\u3002<br \/>\napp\/views\/examples\/\u4ee5\u4e0b\u306bindex.html.erb\u3092\u8ffd\u52a0\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">&lt;h1&gt;&lt;%=@name%&gt;&lt;\/h1&gt;<\/pre>\n<p>\u305d\u308c\u3067\u306f\u3001\u3061\u3083\u3093\u3068\u8aad\u307f\u8fbc\u307e\u308c\u308b\u304b\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u540c\u69d8\u306brails s\u3067\u30b5\u30fc\u30d0\u30fc\u3092\u7acb\u3061\u4e0a\u3052\u305f\u5f8c\u3001<\/p>\n<p>http:\/\/localhost:3000\/examples\/index<br \/>\n(\u88dc\u8db3http:\/\/localhost:3000\u306e\u7b87\u6240\u306f\u5404\u81ea\u306e\u958b\u767a\u74b0\u5883\u306b\u3088\u308a\u8aad\u307f\u66ff\u3048\u3066\u304f\u3060\u3055\u3044\u3002)<\/p>\n<p>\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>[\u5b9f\u884c\u7d50\u679c]<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/cache2.png\" alt=\"cache2\" width=\"558\" height=\"138\" class=\"alignnone size-full wp-image-32732\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/cache2.png 558w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/cache2-150x37.png 150w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/cache2-300x74.png 300w\" sizes=\"(max-width: 558px) 100vw, 558px\" \/><\/p>\n<p>\u3057\u3063\u304b\u308a\u3068before_action\u3067\u8a2d\u5b9a\u3057\u305f\u5024\u304c\u8aad\u307f\u8fbc\u307e\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u30da\u30fc\u30b8\u30ad\u30e3\u30c3\u30b7\u30e5\u540c\u69d8\u306b<span style=\"color: #339966;\"><strong>expire_page<\/strong><\/span>\u306e\u30d8\u30eb\u30d1\u30fc\u3067\u30ad\u30c3\u30b7\u30e5\u3092\u7121\u52b9\u306b\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30d5\u30e9\u30b0\u30e1\u30f3\u30c8\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0(\u90e8\u5206\u7684\u306b\u30da\u30fc\u30b8\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b)<\/h2>\n<p>\u6700\u5f8c\u306f\u90e8\u5206\u7684\u306b\u30da\u30fc\u30b8\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #339966;\"><strong>\u30d5\u30e9\u30b0\u30e1\u30f3\u30c8\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0<\/strong><\/span>\u306f\u3001\u30da\u30fc\u30b8\u30ad\u30e3\u30c3\u30b7\u30e5\u3084\u30a2\u30af\u30b7\u30e7\u30f3\u30ad\u30e3\u30c3\u30b7\u30e5\u3068\u9055\u3044Rails\u306b\u6b63\u5f0f\u306b\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u306a\u306e\u3067\u3001\u3044\u3061\u3044\u3061gem\u3092\u65b0\u305f\u306b\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u307e\u305a\u306f\u4eca\u56de\u4f7f\u7528\u3059\u308b\u30e2\u30c7\u30eb\u304b\u3089\u4f5c\u6210\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<br \/>\n\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">rails g model Book title:string \r\nrails db:migrate<\/pre>\n<p>\u3053\u308c\u3067Book\u30e2\u30c7\u30eb\u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u304c\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u305f\u5f8c\u306b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u305d\u306e\u5185\u5bb9\u304c\u53cd\u6620\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u3001\u540c\u3058\u6d41\u308c\u3067\u4eca\u56de\u4f7f\u7528\u3059\u308b\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3068\u30d3\u30e5\u30fc\u3068\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305a\u306fapp\/controller\/examples_controller.rb\u3092\u4ee5\u4e0b\u306eitem\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">(\u4e2d\u7565)\r\n  def item\r\n    @books = Book.all\r\n  end\r\n(\u4e2d\u7565)<\/pre>\n<p>\u3067\u306f\u3001\u6b21\u306b\u30d3\u30e5\u30fc\u3067\u3059\u3002<br \/>\napp\/views\/examples\/\u4ee5\u4e0b\u306bitem.html.erb\u3092\u8ffd\u52a0\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">&lt;h1&gt;Book list&lt;\/h1&gt;\r\n&lt;% @books.each do |book| %&gt;\r\n    &lt;table&gt;\r\n      &lt;td&gt; &lt;%= book.title %&gt;&lt;\/td&gt;\r\n    &lt;\/table&gt;\r\n&lt;% end %&gt;<\/pre>\n<p>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3067\u5b9a\u7fa9\u3057\u305f@books\u3092\u53c2\u7167\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u3001\u6b21\u306b\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3067\u3059\u3002<\/p>\n<p>config\/route.rb\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u304f\u305f\u3056\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">get 'examples\/item'<\/pre>\n<p>\u305d\u3057\u3066\u3001\u6700\u5f8c\u306bBook\u30c6\u30fc\u30d6\u30eb\u306etitle\u30ab\u30e9\u30e0\u306b\u5024\u3092\u3044\u308c\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>rails console\u3067\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u8d77\u52d5\u3057\u305f\u5f8c\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">Book.create(title:\"\u4f8dRuby\u5165\u9580\")\r\nBook.create(title:\"\u4f8dPHP\u5165\u9580\")\r\nBook.create(title:\"\u4f8dPerl\u5165\u9580\")\r\nBook.create(title:\"\u4f8dJava\u5165\u9580\")\r\nBook.create(title:\"\u4f8dPython\u5165\u9580\")<\/pre>\n<p>\u3053\u308c\u3067\u3001Book\u306etitle\u306b\u5024\u304c\u5165\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u3001\u90e8\u5206\u7684\u306a\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>app\/views\/examples\/item.html.erb\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">&lt;h1&gt;Book list&lt;\/h1&gt;\r\n&lt;% @books.each do |book| %&gt;\r\n    &lt;table&gt;\r\n      &lt;% cache book do %&gt;\r\n          &lt;td&gt; &lt;%= book.title %&gt;&lt;\/td&gt;\r\n      &lt;% end %&gt;\r\n    &lt;\/table&gt;\r\n&lt;% end %&gt;<\/pre>\n<p>cache\u30e1\u30bd\u30c3\u30c9\u306e\u5f8c\u306b\u540d\u524d\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u4fdd\u5b58\u3055\u308c\u308b\u969b\u306e\u540d\u524d\u3092\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<br \/>\n(\u4eca\u56de\u306fbook\u3067\u3059\u3002)<\/p>\n<p>\u305d\u308c\u3067\u306f\u3001\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\nrails s\u3067\u30b5\u30fc\u30d0\u30fc\u3092\u7acb\u3061\u4e0a\u3052\u305f\u5f8c\u3001<\/p>\n<p>http:\/\/localhost:3000\/examples\/item<br \/>\n(\u88dc\u8db3http:\/\/localhost:3000\u306e\u7b87\u6240\u306f\u5404\u81ea\u306e\u958b\u767a\u74b0\u5883\u306b\u3088\u308a\u8aad\u307f\u66ff\u3048\u3066\u304f\u3060\u3055\u3044\u3002)<\/p>\n<p>\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>[\u5b9f\u884c\u7d50\u679c]<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/cache3.png\" alt=\"cache3\" width=\"268\" height=\"398\" class=\"alignnone size-full wp-image-32733\" srcset=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/cache3.png 268w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/cache3-101x150.png 101w, https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/cache3-202x300.png 202w\" sizes=\"(max-width: 268px) 100vw, 268px\" \/><\/p>\n<p>\u59cb\u3081\u306b\u8aad\u307f\u8fbc\u307e\u308c\u305f\u6642\u70b9\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u5b9f\u884c\u3055\u308c\u3001\u6b21\u56de\u4ee5\u964d\u306fcache\u30e1\u30bd\u30c3\u30c9\u3067\u8a2d\u5b9a\u3057\u305f\u90e8\u5206\u306f\u30ad\u30e3\u30b7\u30e5\u304b\u3089\u53d6\u5f97\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001<span style=\"color: #339966;\"><strong>render<\/strong><\/span>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3048\u3070\u30aa\u30d7\u30b7\u30e7\u30f3\u3068\u3057\u3066\u7c21\u5358\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>app\/views\/examples\/item.html.erb\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u304d\u63db\u3048\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">&lt;%= render :partial =&gt; \"book\", cached: true %&gt;<\/pre>\n<p>\u3053\u306e\u3088\u3046\u306bcached:true\u3068\u3059\u308b\u3053\u3068\u3067\u7c21\u5358\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>partial\u306b\u306f\u5148\u307b\u3069\u306e\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<p>app\/views\/examples\/\u4ee5\u4e0b\u306b_book.html.erb\u3092\u4f5c\u6210\u3057\u3066\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u304f\u305f\u3056\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">&lt;% @books.each do |book| %&gt;\r\n    &lt;table&gt;\r\n      &lt;% cache book do %&gt;\r\n          &lt;td&gt; &lt;%= book.title %&gt;&lt;\/td&gt;\r\n      &lt;% end %&gt;\r\n    &lt;\/table&gt;\r\n&lt;% end %&gt;<\/pre>\n<p>\u3053\u308c\u3067\u3001\u540c\u3058\u7b87\u6240\u304c\u30ad\u30e3\u30c3\u30b7\u30e5\u3068\u3057\u3066\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u30d5\u30e9\u30b0\u30e1\u30f3\u30c8\u30ad\u30e3\u30c3\u30b7\u30e5\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u7121\u52b9\u306b\u3057\u305f\u3044\u5834\u5408\u306f<span style=\"color: #339966;\"><strong>expire_fragment<\/strong><\/span>\u306e\u30d8\u30eb\u30d1\u30fc\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u4eca\u56de\u306e\u4f8b\u3060\u3068\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">(\u4e2d\u7565)\r\n  def item\r\n    @books = Book.all\r\n    expire_fragment(@books)\r\n  end\r\n(\u4e2d\u7565)<\/pre>\n<h2>\u30e2\u30c7\u30eb\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0(\u30e2\u30c7\u30eb\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b)<\/h2>\n<p>\u30e2\u30c7\u30eb\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u3067\u3001\u6bce\u56de\u30c7\u30fc\u30bf\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u53d6\u5f97\u3059\u308b\u4ee3\u308f\u308a\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u4fdd\u5b58\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092\u7528\u3044\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30e2\u30c7\u30eb\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u3059\u308b\u306b\u306f<span style=\"color: #339966;\"><strong>fetch<\/strong><\/span>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u5148\u307b\u3069\u4f5c\u6210\u3057\u305fapp\/models\/book.rb\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">class Book &lt; ApplicationRecord\r\n  def self.cache_all\r\n    Rails.cache.fetch(\"books\"){Book.all}\r\n  end\r\nend<\/pre>\n<p>\u3053\u308c\u3067\u3001Book.cache_all\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u305f\u3068\u304d\u306b\u3001&#8221;books&#8221;\u3068\u3044\u3046\u540d\u524d\u3067\u3001Book.all\u306e\u5024\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u3055\u3063\u305d\u304f\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3067\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u5148\u307b\u3069\u4f5c\u6210\u3057\u305fitem\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">  def item\r\n    @books = Book.cache_all\r\n  end<\/pre>\n<p>Book.all\u3067\u3001\u76f4\u63a5\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u5024\u3092\u53d6\u5f97\u3059\u308b\u4ee3\u308f\u308a\u306b\u4f5c\u6210\u3057\u305fBook.cache_all\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308c\u3070\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u305f\u6642\u70b9\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u4fdd\u5b58\u3057\u3066\u4f7f\u7528\u3067\u304d\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308bcache\u3092\u524a\u9664\u3059\u308b\u65b9\u6cd5<\/h2>\n<p>cache\u3092\u524a\u9664\u3059\u308b\u306b\u306f\u3001delete\u3068clear\u306e\u30e1\u30bd\u30c3\u30c9\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ruby decode:true \">Rails.cache.delete('\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u4fdd\u5b58\u540d')<\/pre>\n<p>delete\u3067\u306f\u5f15\u6570\u306b\u6e21\u3057\u305f&#8217;\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u4fdd\u5b58\u540d&#8217;\u306b\u8a72\u5f53\u3059\u308b\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u30d4\u30f3\u30dd\u30a4\u30f3\u30c8\u3067\u524a\u9664\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u306a\u306e\u3067\u3001<span style=\"color: #0000ff;\"><strong>\u7279\u5b9a\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u524a\u9664\u3059\u308b\u5834\u5408<\/strong><\/span>\u306f\u3053\u3061\u3089\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u4eca\u56de\u306e\u4f8b\u3067\u3059\u3068<\/p>\n<pre class=\"lang:ruby decode:true \">Rails.cache.delete('books')<\/pre>\n<p>\u3068\u8a18\u8ff0\u3059\u308c\u3070\u3001&#8217;books&#8217;\u3068\u3057\u3066\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u30ad\u30e3\u30c3\u30b7\u30e5\u306f\u524a\u9664\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4e00\u65b9\u3067<\/p>\n<pre class=\"lang:ruby decode:true \">Rails.cache.clear<\/pre>\n<p>clear\u3067\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u4fdd\u5b58\u3055\u308c\u305f\u3059\u3079\u3066\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n<p>\u306a\u306e\u3067\u3001\u4f7f\u7528\u306b\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p><span style=\"color: #ff0000;\"><strong>\u5fc5\u8981\u306a\u30ad\u30e3\u30c3\u30b7\u30e5\u3082\u4e38\u3054\u3068\u524a\u9664\u3055\u308c\u308b\u53ef\u80fd\u6027<\/strong><\/span>\u3082\u3042\u308b\u306e\u3067\u3001\u3088\u304f\u8003\u3048\u3066\u304b\u3089\u4f7f\u7528\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3044\u304b\u304c\u3067\u3057\u305f\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001cache\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<br \/>\n<strong><br \/>\n\u30fb\u30da\u30fc\u30b8\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u306f\u30da\u30fc\u30b8\u5168\u4f53\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3001\u5225\u9014gem\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5fc5\u8981<\/br><br \/>\n\u30fb\u30a2\u30af\u30b7\u30e7\u30f3\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u306f\u30da\u30fc\u30b8\u5168\u4f53\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3001\u5b9f\u884c\u524d\u306e\u51e6\u7406\u304c\u53ef\u80fd\u3001\u5225\u9014gem\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5fc5\u8981<\/br><br \/>\n\u30fb\u30d5\u30e9\u30b0\u30e1\u30f3\u30c8\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u306f\u90e8\u5206\u7684\u306b\u30da\u30fc\u30b8\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3001Rails\u6a19\u6e96<\/br><br \/>\n\u30fb\u30e2\u30c7\u30eb\u30ad\u30e3\u30c3\u30b7\u30f3\u30b0\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u306e\u30c7\u30fc\u30bf\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3001Rails\u6a19\u6e96<\/strong><\/p>\n<p>\u305d\u308c\u305e\u308c\u4f7f\u7528\u76ee\u7684\u3084\u3001\u4f7f\u7528\u3059\u308b\u5834\u5408\u304c\u7570\u306a\u308b\u306e\u3067\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u4f7f\u7528\u3057\u3066\u9ad8\u901f\u5316\u3092\u5b9f\u88c5\u3059\u308b\u5834\u5408\u306f\u3001<span style=\"color: #0000ff;\"><strong>\u9069\u6750\u9069\u6240\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u7d44\u307f\u8fbc\u3093\u3067\u3044\u304f<\/strong><\/span>\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3082\u3057cache\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u5fd8\u308c\u3066\u3057\u307e\u3063\u305f\u3089\u3053\u306e\u8a18\u4e8b\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u306d\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f! \u30d5\u30ea\u30fc\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u9577\u702c\u3067\u3059\u3002 \u307f\u306a\u3055\u3093\u306fcache\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u304b\uff1f cache\u3092\u4e0a\u624b\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308c\u3070\u3001\u7c21\u6f54\u306b\u30b5\u30a4\u30c8\u3092\u9ad8\u901f\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001cache\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066 \u30fbcach [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":32728,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"swell_btn_cv_data":"","footnotes":""},"categories":[2352],"tags":[834,833],"class_list":["post-32726","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ruby-study","tag-cache","tag-rails"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u3010Rails\u5165\u9580\u3011cache\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Rails\u5165\u9580\u3011cache\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\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:\/\/www.sejuku.net\/blog\/32726\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Rails\u5165\u9580\u3011cache\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Rails\u5165\u9580\u3011cache\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sejuku.net\/blog\/32726\" \/>\n<meta property=\"og:site_name\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sejuku2013\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/sejuku2013\/\" \/>\n<meta property=\"article:published_time\" content=\"1970-01-01T00:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T02:44:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/image-65.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/samuraijuku\" \/>\n<meta name=\"twitter:site\" content=\"@samuraijuku\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/32726#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/32726\"},\"author\":{\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/e8ca7fd09857a736a25e6b4455a3ab61\"},\"headline\":\"\u3010Rails\u5165\u9580\u3011cache\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081\",\"datePublished\":\"1970-01-01T00:00:00+00:00\",\"dateModified\":\"2024-05-06T02:44:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/32726\"},\"wordCount\":211,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/32726#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/image-65.jpg\",\"keywords\":[\"cache\",\"rails\"],\"articleSection\":[\"Ruby\u5b66\u7fd2\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/32726\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/32726\",\"name\":\"\u3010Rails\u5165\u9580\u3011cache\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/32726#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/32726#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/image-65.jpg\",\"datePublished\":\"1970-01-01T00:00:00+00:00\",\"dateModified\":\"2024-05-06T02:44:59+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Rails\u5165\u9580\u3011cache\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/32726#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/32726\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/32726#primaryimage\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/image-65.jpg\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/09\\\/image-65.jpg\",\"width\":700,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/32726#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Rails\u5165\u9580\u3011cache\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"description\":\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\",\"name\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"width\":600,\"height\":600,\"caption\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\",\"https:\\\/\\\/x.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\\\/featured\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/e8ca7fd09857a736a25e6b4455a3ab61\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"caption\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\"},\"description\":\"\u3010\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3011 DX\u8a8d\u5b9a\u53d6\u5f97\u4e8b\u696d\u8005\u306b\u9078\u5b9a\u3055\u308c\u3066\u3044\u308b\u682a\u5f0f\u4f1a\u793eSAMURAI\u306e\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30fb\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u90e8\u304c\u904b\u55b6\u3002\u300c\u8cea\u306e\u9ad8\u3044IT\u6559\u80b2\u3092\u3001\u3059\u3079\u3066\u306e\u4eba\u306b\u300d\u3092\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3001IT\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3073\u59cb\u3081\u305f\u521d\u5b66\u8005\u306e\u65b9\u306b\u5411\u3051\u8a18\u4e8b\u3092\u57f7\u7b46\u3002 \u7d2f\u8a08\u6307\u5c0e\u8005\u65704\u4e075,000\u540d\u4ee5\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u300c\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u300d\u3001\u7d2f\u8a08\u767b\u9332\u8005\u65701\u4e078,000\u4eba\u4ee5\u4e0a\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u300c\u4f8d\u30c6\u30e9\u30b3\u30e4\u300d\u3067\u6271\u3046\u6559\u6750\u958b\u767a\u306e\u30ce\u30a6\u30cf\u30a6\u30012013\u5e74\u306e\u5275\u696d\u304b\u3089\u904b\u55b6\u3067\u5f97\u305f\u77e5\u898b\u306b\u57fa\u3065\u304d\u3001\u8a18\u4e8b\u306e\u57f7\u7b46\u3060\u3051\u3067\u306a\u304f\u7de8\u96c6\u30fb\u76e3\u4fee\u3082\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002 \u3010\u5c02\u9580\u5206\u91ce\u3011 IT\\\/Web\u958b\u767a\\\/AI\u30fb\u30ed\u30dc\u30c3\u30c8\u958b\u767a\\\/\u30a4\u30f3\u30d5\u30e9\u958b\u767a\\\/\u30b2\u30fc\u30e0\u958b\u767a\\\/AI\\\/Web\u30c7\u30b6\u30a4\u30f3\",\"sameAs\":[\"https:\\\/\\\/www.sejuku.net\\\/\",\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\\\/\",\"https:\\\/\\\/www.instagram.com\\\/samuraiengineer_official\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\"],\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/author\\\/samurai-blog\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010Rails\u5165\u9580\u3011cache\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Rails\u5165\u9580\u3011cache\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\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:\/\/www.sejuku.net\/blog\/32726","og_locale":"ja_JP","og_type":"article","og_title":"\u3010Rails\u5165\u9580\u3011cache\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Rails\u5165\u9580\u3011cache\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","og_url":"https:\/\/www.sejuku.net\/blog\/32726","og_site_name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/sejuku2013","article_author":"https:\/\/www.facebook.com\/sejuku2013\/","article_published_time":"1970-01-01T00:00:00+00:00","article_modified_time":"2024-05-06T02:44:59+00:00","og_image":[{"width":700,"height":400,"url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/image-65.jpg","type":"image\/jpeg"}],"author":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/samuraijuku","twitter_site":"@samuraijuku","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sejuku.net\/blog\/32726#article","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/32726"},"author":{"name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/e8ca7fd09857a736a25e6b4455a3ab61"},"headline":"\u3010Rails\u5165\u9580\u3011cache\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081","datePublished":"1970-01-01T00:00:00+00:00","dateModified":"2024-05-06T02:44:59+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/32726"},"wordCount":211,"publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/32726#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/image-65.jpg","keywords":["cache","rails"],"articleSection":["Ruby\u5b66\u7fd2"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.sejuku.net\/blog\/32726","url":"https:\/\/www.sejuku.net\/blog\/32726","name":"\u3010Rails\u5165\u9580\u3011cache\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/32726#primaryimage"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/32726#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/image-65.jpg","datePublished":"1970-01-01T00:00:00+00:00","dateModified":"2024-05-06T02:44:59+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Rails\u5165\u9580\u3011cache\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","breadcrumb":{"@id":"https:\/\/www.sejuku.net\/blog\/32726#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sejuku.net\/blog\/32726"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/32726#primaryimage","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/image-65.jpg","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/09\/image-65.jpg","width":700,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.sejuku.net\/blog\/32726#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sejuku.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u3010Rails\u5165\u9580\u3011cache\u306e\u4f7f\u3044\u65b9\u307e\u3068\u3081"}]},{"@type":"WebSite","@id":"https:\/\/www.sejuku.net\/blog\/#website","url":"https:\/\/www.sejuku.net\/blog\/","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002","publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sejuku.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.sejuku.net\/blog\/#organization","name":"\u682a\u5f0f\u4f1a\u793eSAMURAI","url":"https:\/\/www.sejuku.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","width":600,"height":600,"caption":"\u682a\u5f0f\u4f1a\u793eSAMURAI"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sejuku2013","https:\/\/x.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g\/featured"]},{"@type":"Person","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/e8ca7fd09857a736a25e6b4455a3ab61","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","caption":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8"},"description":"\u3010\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3011 DX\u8a8d\u5b9a\u53d6\u5f97\u4e8b\u696d\u8005\u306b\u9078\u5b9a\u3055\u308c\u3066\u3044\u308b\u682a\u5f0f\u4f1a\u793eSAMURAI\u306e\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30fb\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u90e8\u304c\u904b\u55b6\u3002\u300c\u8cea\u306e\u9ad8\u3044IT\u6559\u80b2\u3092\u3001\u3059\u3079\u3066\u306e\u4eba\u306b\u300d\u3092\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3001IT\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3073\u59cb\u3081\u305f\u521d\u5b66\u8005\u306e\u65b9\u306b\u5411\u3051\u8a18\u4e8b\u3092\u57f7\u7b46\u3002 \u7d2f\u8a08\u6307\u5c0e\u8005\u65704\u4e075,000\u540d\u4ee5\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u300c\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u300d\u3001\u7d2f\u8a08\u767b\u9332\u8005\u65701\u4e078,000\u4eba\u4ee5\u4e0a\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u300c\u4f8d\u30c6\u30e9\u30b3\u30e4\u300d\u3067\u6271\u3046\u6559\u6750\u958b\u767a\u306e\u30ce\u30a6\u30cf\u30a6\u30012013\u5e74\u306e\u5275\u696d\u304b\u3089\u904b\u55b6\u3067\u5f97\u305f\u77e5\u898b\u306b\u57fa\u3065\u304d\u3001\u8a18\u4e8b\u306e\u57f7\u7b46\u3060\u3051\u3067\u306a\u304f\u7de8\u96c6\u30fb\u76e3\u4fee\u3082\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002 \u3010\u5c02\u9580\u5206\u91ce\u3011 IT\/Web\u958b\u767a\/AI\u30fb\u30ed\u30dc\u30c3\u30c8\u958b\u767a\/\u30a4\u30f3\u30d5\u30e9\u958b\u767a\/\u30b2\u30fc\u30e0\u958b\u767a\/AI\/Web\u30c7\u30b6\u30a4\u30f3","sameAs":["https:\/\/www.sejuku.net\/","https:\/\/www.facebook.com\/sejuku2013\/","https:\/\/www.instagram.com\/samuraiengineer_official\/","https:\/\/x.com\/https:\/\/twitter.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g"],"url":"https:\/\/www.sejuku.net\/blog\/author\/samurai-blog"}]}},"_links":{"self":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/32726","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/comments?post=32726"}],"version-history":[{"count":0,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/32726\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media\/32728"}],"wp:attachment":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media?parent=32726"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/categories?post=32726"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/tags?post=32726"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}