{"id":111,"date":"2010-02-21T00:35:35","date_gmt":"2010-02-21T00:35:35","guid":{"rendered":"http:\/\/ketoha.co.jp\/blog\/archives\/111"},"modified":"2015-01-02T07:48:58","modified_gmt":"2015-01-02T07:48:58","slug":"ruby%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%82%b9%e3%83%ac%e3%83%83%e3%83%89%e3%82%bb%e3%83%bc%e3%83%95%e3%81%aatokyo-cabinet%e3%82%92%e4%b8%a6%e5%88%97%e5%87%a6%e7%90%86%e3%81%97%e3%81%a6%e3%81%bf","status":"publish","type":"post","link":"https:\/\/ketoha.co.jp\/blog\/?p=111","title":{"rendered":"ruby\u3092\u4f7f\u3063\u3066\u30b9\u30ec\u30c3\u30c9\u30bb\u30fc\u30d5\u306atokyo cabinet\u3092\u4e26\u5217\u51e6\u7406\u3057\u3066\u307f\u308b"},"content":{"rendered":"<p>\u6700\u8fd1\u4ed5\u4e8b\u3067<a href=\"http:\/\/1978th.net\/tokyocabinet\/\">tokyo cabinet<\/a>\u3092\u4f7f\u3046\u6a5f\u4f1a\u304c\u3042\u3063\u3066\u3001\u305b\u3063\u304b\u304f<a href=\"http:\/\/www.ruby-lang.org\/ja\/\">ruby<\/a>\u3082\u306f\u3058\u3081\u305f\u306e\u3060\u304b\u3089\u3068\u601d\u3063\u3066\u3001<a href=\"http:\/\/www.php.gr.jp\/\">php<\/a>\u306b\u306f\u306a\u3044\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u3067\u4e26\u5217\u51e6\u7406\u3055\u305b\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n<!--<b class=\"dp-highlighter\">\u30c6\u30b9\u30c8<\/b>--><br \/>\n\u3042\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u8a71\u3067\u3059\u3002\u7720\u304f\u3055\u305b\u3066\u3059\u3044\u307e\u305b\u3093\u3002<br \/>\nphp\u306f\u4e3b\u306bWEB\u30a2\u30d7\u30ea\u7528\u306e\u958b\u767a\u8a00\u8a9e\u3068\u3057\u3066\u7279\u5316\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u3072\u3068\u308a\u306e\u30e6\u30fc\u30b6\u304c\u30d6\u30e9\u30a6\u30b6\u7d4c\u7531\u3067\u8981\u6c42\u3057\u3066\u304d\u305f\u5185\u5bb9\u3092\u3001WEB\u30b5\u30fc\u30d0\u3092\u901a\u3058\u3066\u3072\u3068\u3064\u306e\u72ec\u7acb\u3057\u305f\u30d7\u30ed\u30bb\u30b9\u3068\u3057\u3066\u51e6\u7406\u3057\u307e\u3059\u3002<br \/>\n\u305d\u3057\u3066\u3001\u51e6\u7406\u3057\u305f\u5185\u5bb9\u3092\u30e6\u30fc\u30b6\u306b\u8fd4\u5374\u3057\u3066\u30d7\u30ed\u30bb\u30b9\u306f\u7d42\u4e86\u3057\u307e\u3059\u3002<br \/>\n\u8907\u6570\u306e\u30e6\u30fc\u30b6\u304c\u540c\u6642\u306b\u8981\u6c42\u3057\u3066\u304d\u305f\u5834\u5408\u306f\u3001\u8907\u6570\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u540c\u6642\u306b\u305f\u3061\u3042\u304c\u3063\u3066\u305d\u308c\u305e\u308c\u500b\u5225\u306b\u8981\u6c42\u3092\u51e6\u7406\u3057\u307e\u3059\u304c\u3001\u3072\u3068\u308a\u306e\u30e6\u30fc\u30b6\u304c\u8907\u6570\u306e\u8981\u6c42\u3092\u304a\u3053\u306a\u3063\u305f\u5834\u5408\u306b\u3001\u3072\u3068\u3064\u306e\u30d7\u30ed\u30bb\u30b9\u304c\u540c\u6642\u306b\u8981\u6c42\u3092\u51e6\u7406\u3059\u308b\u3088\u3046\u306a\u8a00\u8a9e\u4ed5\u69d8\u306b\u306f\u3042\u3093\u307e\u308a\u306a\u3063\u3066\u3044\u307e\u305b\u3093(\u300c\u30d7\u30ed\u30bb\u30b9\u5236\u5fa1\u300d\u3092\u4f7f\u3063\u3066\u5b50\u30d7\u30ed\u30bb\u30b9\u306b\u51e6\u7406\u3055\u305b\u305f\u308a\u306f\u3067\u304d\u307e\u3059\u306d)\u3002<br \/>\n\u4e00\u56de\u306eHTTP\u30a2\u30af\u30bb\u30b9\u304c\u3072\u3068\u3064\u306e\u8981\u6c42\u3068\u8003\u3048\u308c\u3070\u81ea\u7136\u3067\u3057\u3087\u3046\u304b\u3002<br \/>\n\u305f\u3068\u3048\u3070\u66f4\u65b0\u51e6\u7406\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3053\u306e\u30b5\u30a4\u30c8\u3044\u3044\u306a\u30fc\u3068\u601d\u3063\u3066\u30e6\u30fc\u30b6\u767b\u9332\u3057\u307e\u3059\u3002\u767b\u9332\u3057\u305f\u3089\u30db\u30fc\u30e0\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n\u305d\u3053\u3067\u306f\u305d\u306e\u30b5\u30a4\u30c8\u304c\u63d0\u4f9b\u3059\u308b\u30b5\u30fc\u30d3\u30b9\u4e00\u89a7\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u81ea\u5206\u306e\u5229\u7528\u3057\u305f\u3044\u30b5\u30fc\u30d3\u30b9\u3092\u9078\u629e\u3057\u3066\u5909\u66f4\u3057\u307e\u3059\u3002\u5909\u66f4\u3057\u305f\u3089\u3001\u5229\u7528\u3067\u304d\u308b\u30b5\u30fc\u30d3\u30b9\u304c\u66f4\u65b0\u3055\u308c\u307e\u3059\u3002<br \/>\n\u305d\u308c\u3089\u306f\u3072\u3068\u3064\u3072\u3068\u3064\u306e\u500b\u5225\u306a\u8981\u6c42\u3067\u3059\u3002<br \/>\n\u666e\u901a\u306f1\u5ea6\u306e\u753b\u9762\u30af\u30ea\u30c3\u30af\u3067\u3001\u30e6\u30fc\u30b6\u767b\u9332\u3068\u30b5\u30fc\u30d3\u30b9\u5909\u66f4\u3092\u540c\u6642\u306b\u8981\u6c42\u3057\u3066\u304d\u305f\u308a\u3057\u307e\u305b\u3093\u3002\u3057\u304b\u3082\u3001\u81ea\u5206\u3060\u3051\u3067\u306a\u304f\u53cb\u9054\u306e\u3076\u3093\u3082\u767b\u9332\u304a\u9858\u3044\u306d\u30fc\u3001\u3068\u307e\u3068\u3081\u3066\u8981\u6c42\u3057\u3066\u304d\u305f\u308a\u3057\u307e\u305b\u3093\u3002<br \/>\n\u3067\u3082\u30d0\u30c3\u30c1\u51e6\u7406\u306f\u9055\u3044\u307e\u3059\u30021\u5ea6\u306e\u8981\u6c42\u3067\u3001\u3072\u3068\u3064\u306e\u307e\u3068\u307e\u3063\u305f\u5358\u4f4d\u3092\u3044\u3063\u307a\u3093\u306b\u51e6\u7406\u3059\u308b\u3053\u3068\u304c\u6c42\u3081\u3089\u308c\u307e\u3059\u3002\u307e\u3068\u307e\u3063\u305f\u5358\u4f4d\u3068\u306f\u3001\u305f\u3068\u3048\u3070\u5148\u6708\u306e1\u65e5\u304b\u3089\u5148\u6708\u672b\u307e\u3067\u306e1\u30f6\u6708\u5358\u4f4d\u3068\u304b\u3001\u7279\u5b9a\u30b5\u30fc\u30d3\u30b9\u3092\u5229\u7528\u3059\u308b\u30e6\u30fc\u30b61000\u4eba\u5358\u4f4d\u3068\u304b\u3067\u3059\u3002<br \/>\n\u591c\u4e2d\u306b\u30af\u30fc\u30ed\u30f3\u3092\u4f7f\u3063\u3066\u88cf\u3067\u51e6\u7406\u3055\u305b\u308b\u3088\u3046\u306a\u30b1\u30fc\u30b9\u306a\u3089\u3044\u3044\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u30e6\u30fc\u30b6\u306e\u8981\u6c42\u306b\u3088\u3063\u3066\u305d\u3046\u3044\u3046\u30d0\u30c3\u30c1\u51e6\u7406\u3092\u304a\u3053\u306a\u308f\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3088\u3046\u306a\u91cd\u3044\u51e6\u7406\u306e\u5834\u5408\u3001\u4e0a\u304b\u3089\u9806\u756a\u306b\u51e6\u7406\u3057\u3066\u3044\u305f\u3089\u9045\u304f\u3066\u3001\u30e6\u30fc\u30b6\u306f\u3057\u3073\u308c\u3092\u304d\u3089\u3057\u3066\u89b3\u306b\u3053\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br \/>\n\u305d\u3053\u3067\u5fc5\u8981\u306b\u306a\u3063\u3066\u304f\u308b\u306e\u304c\u3001\u3072\u3068\u3064\u306e\u30d7\u30ed\u30bb\u30b9\u306e\u4e2d\u306b\u30b9\u30ec\u30c3\u30c9\u3068\u3044\u3046\u5c0f\u3055\u306a\u51e6\u7406\u9818\u57df\u3092\u8a2d\u3051\u3066\u3001\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u3068\u3044\u3046\u4e26\u5217\u51e6\u7406\u6a5f\u80fd\u3092\u5229\u7528\u3057\u3066\u3001\u540c\u6642\u5e73\u884c\u3057\u3066\u51e6\u7406\u3092\u304a\u3053\u306a\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u3067\u304d\u308b\u3060\u3051\u65e9\u304f\u30e6\u30fc\u30b6\u306b\u5fdc\u7b54\u3092\u8fd4\u3059\u3053\u3068\u3067\u3059\u3002<br \/>\n\u4f8b\u3048\u308b\u3068\u3001\u592a\u90ce\u3055\u3093(php)\u3067\u306f\u3072\u3068\u3064\u306e\u30e1\u30fc\u30eb\u306e\u8fd4\u4fe1(\u30d7\u30ed\u30bb\u30b9)\u306f\u3072\u3068\u3064\u306e\u6307(\u30b9\u30ec\u30c3\u30c9)\u3057\u304b\u4f7f\u3048\u307e\u305b\u3093\u304c\u3001\u6b21\u90ce\u3055\u3093(ruby\u3068\u304b)\u306f\u3072\u3068\u3064\u306e\u30e1\u30fc\u30eb\u306e\u8fd4\u4fe1(\u30d7\u30ed\u30bb\u30b9)\u306b\u5168\u90e8\u306e\u6307(\u30b9\u30ec\u30c3\u30c9)\u3092\u4f7f\u3044\u307e\u3059\u3002<br \/>\n\u8981\u306f\u592a\u90ce\u3055\u3093\u306f\u4eba\u5dee\u3057\u6307\u3060\u3051\u3067\u4e00\u751f\u61f8\u547d\u30ad\u30fc\u30d1\u30f3\u30c1\u3057\u3066\u3044\u308b\u306e\u306b\u6bd4\u3079\u3066\u3001\u6b21\u90ce\u3055\u3093\u306f10\u672c\u306e\u6307\u5168\u90e8\u3092\u4f7f\u3063\u3066\u30ad\u30fc\u30d1\u30f3\u30c1\u3057\u3066\u3044\u308b\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002<br \/>\n\u3054\u306b\u3087\u3054\u306b\u3087\u3068\u9577\u304f\u306a\u308a\u307e\u3057\u305f\u3002\u3064\u307e\u308a\u50d5\u306f\u6700\u8fd1\u3001\u6b21\u90ce\u3055\u3093\u306b\u306a\u308d\u3046\u3068\u52aa\u3081\u3066\u3044\u308b\u306e\u3067\u3059\u3002<br \/>\n\u52c9\u5f37\u304c\u3066\u3089\u306b\u30b7\u30f3\u30b0\u30eb\u30b9\u30ec\u30c3\u30c9\u3068\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u306e\u6d88\u8cbb\u6642\u9593\u3092\u6bd4\u8f03\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u305d\u308c\u305e\u308c100\u30ec\u30b3\u30fc\u30c9\u30921000\u4eba\u3076\u3093\u767b\u9332\u3059\u308b\u30d0\u30c3\u30c1\u51e6\u7406\u3067\u3059\u3002<br \/>\n\u308f\u304b\u308a\u3084\u3059\u304f\u3059\u308b\u305f\u3081\u3001\u3072\u3068\u308a\u3081\u306e\u51e6\u7406\u3060\u305110\u79d2\u30b9\u30ea\u30fc\u30d7\u3092\u3044\u308c\u3066\u3044\u307e\u3059\uff08\u5f8c\u8ff0\u306eResister.rb\u5185\uff09\u3002<\/p>\n<pre class=\"ruby\" style=\"border: 1px solid gray; background-color: #000000; padding: 4px 2px 2px 6px; color: #ffffff;\"># simulate: first user has heavy process\r\nsleep 10 if (cnt == 1)\r\n<\/pre>\n<p>\u6700\u521d\u306e\u3072\u3068\u306e\u30ec\u30b3\u30fc\u30c9\u306f\u305a\u3044\u3076\u3093\u91cd\u3044\u5185\u5bb9\u3060\u3063\u305f\u306e\u3067\u3059\u306d\u3002<br \/>\n\u30b7\u30f3\u30b0\u30eb\u30b9\u30ec\u30c3\u30c9\u3067\u306f\u3072\u3068\u308a\u3081\u306e\u51e6\u7406\u304c\u7d42\u308f\u3089\u306a\u3044\u3068\u3075\u305f\u308a\u3081\u306e\u51e6\u7406\u306b\u306f\u79fb\u308c\u307e\u305b\u3093(php\u306e\u6319\u52d5)\u3002\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u3067\u306f\u3001\u3072\u3068\u308a\u3081\u306e\u51e6\u7406\u304c\u7d42\u308f\u308d\u3046\u304c\u7d42\u308f\u308b\u307e\u3044\u304c\u3001\u5f8c\u7d9a\u306e\u51e6\u7406\u3092\u30e1\u30e2\u30ea\u3084\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u8a31\u3059\u304b\u304e\u308a\u9032\u3081\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\ntokyo cabinet \u306b\u767b\u9332\u3092\u304a\u3053\u306a\u3046\u30af\u30e9\u30b9<br \/>\nResister.rb<\/p>\n<pre class=\"ruby\" style=\"border: 1px solid gray; background-color: #000000; padding: 4px 2px 2px 6px; color: #ffffff;\">require 'tokyocabinet'\r\ninclude TokyoCabinet\r\nclass Resister\r\ndef self.store_user(cnt)\r\n# create the object\r\nbdb=BDB::new\r\nuser_id = \"customer_\" + cnt.to_s\r\ndb_file = \"user_data\/#{user_id}.tcb\"\r\n# open the database\r\nbdb.open(db_file, BDB::OWRITER | BDB::OCREAT)\r\n# store records\r\ni = 1\r\nwhile i &lt;= MAX_DOC_CNT\r\nnow_date  = Time.now\r\nnow_stamp = now_date.to_i\r\ndoc_id = \"doc_\" + Digest::MD5.hexdigest((now_stamp.to_s + i.to_s))\r\nkey = doc_id\r\nval = sprintf(\"user:%s\\ndoc: %s\\nrec: %s\\n\", user_id, doc_id, now_date)\r\nbdb.put(key, val)\r\ni += 1\r\nend\r\n# simulate: first user has heavy process\r\nsleep 10 if (cnt == 1)\r\nsize = bdb.size()\r\nprint \"#{user_id}: total record size= #{size}\\n\"\r\n# close the database\r\nbdb.close\r\nend\r\nend\r\n<\/pre>\n<p>\u30b7\u30f3\u30b0\u30eb\u30b9\u30ec\u30c3\u30c9\u3067\u767b\u9332\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0<br \/>\nsingle.rb<\/p>\n<pre class=\"ruby\" style=\"border: 1px solid gray; background-color: #000000; padding: 4px 2px 2px 6px; color: #ffffff;\">#!\/usr\/local\/bin\/ruby\r\nrequire 'resister'\r\nrequire 'digest\/md5'\r\nMAX_USER_CNT = 1000\r\nMAX_DOC_CNT = 100\r\nfor i in 1..MAX_USER_CNT\r\nResister::store_user(i)\r\nend\r\n<\/pre>\n<p>\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u3067\u767b\u9332\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0<br \/>\nmulti.rb<\/p>\n<pre class=\"ruby\" style=\"border: 1px solid gray; background-color: #000000; padding: 4px 2px 2px 6px; color: #ffffff;\">#!\/usr\/local\/bin\/ruby\r\nrequire 'resister'\r\nrequire 'digest\/md5'\r\nMAX_USER_CNT = 1000\r\nMAX_DOC_CNT = 100\r\nthreads = []\r\nfor i in 1..MAX_USER_CNT\r\nt = Thread.new(i) do |cnt|\r\nResister::store_user(cnt)\r\nend\r\nthreads &lt;&lt; t\r\nend\r\nfor i in 1..MAX_USER_CNT\r\nthreads[i-1].join\r\nend\r\n<\/pre>\n<p>\u30b7\u30f3\u30b0\u30eb\u30b9\u30ec\u30c3\u30c9\u306e\u65b9\u3092\u5b9f\u884c<\/p>\n<pre class=\"ruby\" style=\"border: 1px solid gray; background-color: #000000; padding: 4px 2px 2px 6px; color: #ffffff;\">$ time ruby single.rb\r\ncustomer_1: total record size= 100\r\ncustomer_2: total record size= 100\r\ncustomer_3: total record size= 100\r\n...\r\ncustomer_998: total record size= 100\r\ncustomer_999: total record size= 100\r\ncustomer_1000: total record size= 100\r\nreal    0m13.695s\r\nuser    0m2.769s\r\nsys     0m0.924s\r\n<\/pre>\n<p>\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u306e\u65b9\u3092\u5b9f\u884c<\/p>\n<pre class=\"ruby\" style=\"border: 1px solid gray; background-color: #000000; padding: 4px 2px 2px 6px; color: #ffffff;\">$ time ruby multi.rb\r\ncustomer_2: total record size= 100\r\ncustomer_3: total record size= 100\r\ncustomer_152: total record size= 100\r\n...\r\ncustomer_996: total record size= 100\r\ncustomer_1000: total record size= 100\r\ncustomer_1: total record size= 100\r\nreal    0m10.034s\r\nuser    0m3.959s\r\nsys     0m1.110s\r\n<\/pre>\n<p>\u30b7\u30f3\u30b0\u30eb\u30b9\u30ec\u30c3\u30c9\u306f<b>real 0m13.695s<\/b>\u3001\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u3067\u306f<b>real 0m10.034s<\/b>\u3068\u3044\u3046\u7d50\u679c\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u30b7\u30f3\u30b0\u30eb\u30b9\u30ec\u30c3\u30c9\u306e\u65b9\u306f\u3001\u5f8b\u5100\u306b\u3072\u3068\u308a\u3081\u306e\u51e6\u7406\u306b\u304d\u3063\u3061\u308a10\u79d2\u4ee5\u4e0a\u304b\u3051\u3066\u304b\u3089\u6b8b\u308a\u306e999\u4eba\u3076\u3093\u3092\u51e6\u7406\u3057\u305f\u305f\u3081\u306b13\u79d2\u5f37\u304b\u304b\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u304c\u3001\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u306e\u65b9\u306f\u3072\u3068\u308a\u3081\u306e\u51e6\u7406\u3092\u304a\u3053\u306a\u3063\u3066\u3044\u308b\u3042\u3044\u3060\u306b999\u4eba\u3076\u3093\u7d42\u308f\u3089\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u305f\u305f\u3081\u3001\u3072\u3068\u308a\u3081\u306e\u51e6\u7406\u304c\u7d42\u4e86\u3057\u305f\u306e\u3068\u540c\u6642\u306b\u5168\u54e1\u306e\u51e6\u7406\u304c\u5b8c\u4e86\u3057\u305f\u306e\u3067\u3001\u3072\u3068\u308a\u3081\u306b\u304b\u3051\u305f\u6642\u9593\u3057\u304b\u6d88\u8cbb\u3057\u3066\u3044\u307e\u305b\u3093\u3002\u3044\u3084\u30fc\u901f\u3044\u3067\u3059\u306d\u3002<br \/>\n\u3053\u306e\u3042\u305f\u308a\u304c\u304a\u3082\u3057\u308d\u304f\u306a\u3063\u3066\u304f\u308b\u3068\u3001\u6027\u80fd\u8981\u4ef6\u306b\u307e\u3067\u6c17\u3092\u914d\u3063\u305f\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u304c\u3067\u304d\u3066\u3001\u304a\u5ba2\u3055\u3093\u3082\u5e78\u305b\u3067\u50d5\u3082\u5e78\u305b\u3067\u3001\u3044\u3048\u306b\u5e30\u3063\u3066\u304b\u3089\u98f2\u3080\u304a\u9152\u304c\u304a\u3044\u3057\u3044\u3068\u3044\u3046\u3001\u7d20\u6575\u306a\u65e5\u3005\u304c\u9001\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u304f\u308b\u308f\u3051\u3067\u3059\u306d\u3001\u6b21\u90ce\u3055\u3093\uff1f<br \/>\nruby\u304a\u3082\u3057\u308d\u3044\u3067\u3059\u3002tokyo cabinet\u3082\u304a\u3082\u3057\u308d\u3044\u3057\u3002\u3059\u3054\u3044\u3088\u3001\u65e5\u672c\u4eba\u3002\u3059\u3054\u3044\u3002<br \/>\nP.S. \u3068\u3053\u308d\u3067\u3001\u30d6\u30ed\u30b0\u306b<a href=\"http:\/\/code.google.com\/p\/syntaxhighlighter\/\">dp.SyntaxHighlighter<\/a>\u3092\u3044\u308c\u3066\u30bd\u30fc\u30b9\u3092\u7dba\u9e97\u306b\u898b\u305b\u305f\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u534a\u65e5\u683c\u95d8\u3057\u3066\u9813\u632b\u3057\u307e\u3057\u305f\u3002\u65e2\u5b58\u306eCMS\u3084API\u306f\u4fbf\u5229\u306a\u306e\u3067\u3059\u304c\u3001\u3061\u3087\u3063\u3068\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u4ee5\u4e0a\u306e\u6a5f\u80fd\u3092\u3068\u308a\u3044\u308c\u305f\u3044\u306a\u3042\u3068\u601d\u3046\u3068\u3001\u9014\u7aef\u306b\u306a\u3093\u3060\u304b\u6577\u5c45\u306e\u9ad8\u3044\u3082\u306e\u306b\u306a\u308a\u307e\u3059\u306d\u3002\u3002\u3066\u3044\u3051\u30fc\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u4ed5\u4e8b\u3067tokyo cabinet\u3092\u4f7f\u3046\u6a5f\u4f1a\u304c\u3042\u3063\u3066\u3001\u305b\u3063\u304b\u304fruby\u3082\u306f\u3058\u3081\u305f\u306e\u3060\u304b\u3089\u3068\u601d\u3063\u3066\u3001php\u306b\u306f\u306a\u3044\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u3067\u4e26\u5217\u51e6\u7406\u3055\u305b\u3066\u307f\u307e\u3057\u305f\u3002 \u3042\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u8a71\u3067\u3059\u3002\u7720\u304f\u3055\u305b\u3066\u3059\u3044\u307e\u305b\u3093\u3002 php\u306f\u4e3b\u306b<a class=\"moretag read-more-link\" href=\"https:\/\/ketoha.co.jp\/blog\/?p=111\">&#133;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-ketoher","4":"post-111","6":"format-standard","7":"category-tech"},"_links":{"self":[{"href":"https:\/\/ketoha.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ketoha.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ketoha.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ketoha.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ketoha.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=111"}],"version-history":[{"count":1,"href":"https:\/\/ketoha.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/111\/revisions"}],"predecessor-version":[{"id":172,"href":"https:\/\/ketoha.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/111\/revisions\/172"}],"wp:attachment":[{"href":"https:\/\/ketoha.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ketoha.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ketoha.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}