heroku-tokyotyrant 0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (340) hide show
  1. data/COPYING +504 -0
  2. data/README.rdoc +231 -0
  3. data/Rakefile +72 -0
  4. data/benchmarks/balancer.rb +101 -0
  5. data/benchmarks/bulk_db.rb +74 -0
  6. data/benchmarks/bulk_table.rb +87 -0
  7. data/benchmarks/db.rb +114 -0
  8. data/benchmarks/table.rb +161 -0
  9. data/ext/extconf.rb +43 -0
  10. data/ext/tokyo/bin/tcamgr +0 -0
  11. data/ext/tokyo/bin/tcamttest +0 -0
  12. data/ext/tokyo/bin/tcatest +0 -0
  13. data/ext/tokyo/bin/tcbmgr +0 -0
  14. data/ext/tokyo/bin/tcbmttest +0 -0
  15. data/ext/tokyo/bin/tcbtest +0 -0
  16. data/ext/tokyo/bin/tcfmgr +0 -0
  17. data/ext/tokyo/bin/tcfmttest +0 -0
  18. data/ext/tokyo/bin/tcftest +0 -0
  19. data/ext/tokyo/bin/tchmgr +0 -0
  20. data/ext/tokyo/bin/tchmttest +0 -0
  21. data/ext/tokyo/bin/tchtest +0 -0
  22. data/ext/tokyo/bin/tcrmgr +0 -0
  23. data/ext/tokyo/bin/tcrmttest +0 -0
  24. data/ext/tokyo/bin/tcrtest +0 -0
  25. data/ext/tokyo/bin/tctmgr +0 -0
  26. data/ext/tokyo/bin/tctmttest +0 -0
  27. data/ext/tokyo/bin/tcttest +0 -0
  28. data/ext/tokyo/bin/tcucodec +0 -0
  29. data/ext/tokyo/bin/tcumttest +0 -0
  30. data/ext/tokyo/bin/tcutest +0 -0
  31. data/ext/tokyo/bin/ttserver +0 -0
  32. data/ext/tokyo/bin/ttulmgr +0 -0
  33. data/ext/tokyo/bin/ttultest +0 -0
  34. data/ext/tokyo/include/tcadb.h +548 -0
  35. data/ext/tokyo/include/tcbdb.h +1101 -0
  36. data/ext/tokyo/include/tcfdb.h +858 -0
  37. data/ext/tokyo/include/tchdb.h +871 -0
  38. data/ext/tokyo/include/tcrdb.h +801 -0
  39. data/ext/tokyo/include/tctdb.h +1086 -0
  40. data/ext/tokyo/include/tculog.h +392 -0
  41. data/ext/tokyo/include/tcutil.h +4184 -0
  42. data/ext/tokyo/include/ttutil.h +494 -0
  43. data/ext/tokyo/lib/libtokyocabinet.9.4.0.dylib +0 -0
  44. data/ext/tokyo/lib/libtokyocabinet.9.dylib +0 -0
  45. data/ext/tokyo/lib/libtokyocabinet.a +0 -0
  46. data/ext/tokyo/lib/libtokyocabinet.dylib +0 -0
  47. data/ext/tokyo/lib/libtokyotyrant.3.22.0.dylib +0 -0
  48. data/ext/tokyo/lib/libtokyotyrant.3.dylib +0 -0
  49. data/ext/tokyo/lib/libtokyotyrant.a +0 -0
  50. data/ext/tokyo/lib/libtokyotyrant.dylib +0 -0
  51. data/ext/tokyo/lib/pkgconfig/tokyocabinet.pc +14 -0
  52. data/ext/tokyo/lib/pkgconfig/tokyotyrant.pc +14 -0
  53. data/ext/tokyo/lib/ttskeldir.bundle +0 -0
  54. data/ext/tokyo/lib/ttskelmock.bundle +0 -0
  55. data/ext/tokyo/lib/ttskelnull.bundle +0 -0
  56. data/ext/tokyo/lib/ttskelproxy.bundle +0 -0
  57. data/ext/tokyo/libexec/tcawmgr.cgi +0 -0
  58. data/ext/tokyo/sbin/ttservctl +163 -0
  59. data/ext/tokyo/share/man/man1/tcamgr.1 +97 -0
  60. data/ext/tokyo/share/man/man1/tcamttest.1 +35 -0
  61. data/ext/tokyo/share/man/man1/tcatest.1 +55 -0
  62. data/ext/tokyo/share/man/man1/tcbmgr.1 +125 -0
  63. data/ext/tokyo/share/man/man1/tcbmttest.1 +81 -0
  64. data/ext/tokyo/share/man/man1/tcbtest.1 +107 -0
  65. data/ext/tokyo/share/man/man1/tcfmgr.1 +98 -0
  66. data/ext/tokyo/share/man/man1/tcfmttest.1 +62 -0
  67. data/ext/tokyo/share/man/man1/tcftest.1 +73 -0
  68. data/ext/tokyo/share/man/man1/tchmgr.1 +110 -0
  69. data/ext/tokyo/share/man/man1/tchmttest.1 +85 -0
  70. data/ext/tokyo/share/man/man1/tchtest.1 +95 -0
  71. data/ext/tokyo/share/man/man1/tcrmgr.1 +164 -0
  72. data/ext/tokyo/share/man/man1/tcrmttest.1 +55 -0
  73. data/ext/tokyo/share/man/man1/tcrtest.1 +89 -0
  74. data/ext/tokyo/share/man/man1/tctmgr.1 +140 -0
  75. data/ext/tokyo/share/man/man1/tctmttest.1 +92 -0
  76. data/ext/tokyo/share/man/man1/tcttest.1 +105 -0
  77. data/ext/tokyo/share/man/man1/tcucodec.1 +162 -0
  78. data/ext/tokyo/share/man/man1/tcumttest.1 +41 -0
  79. data/ext/tokyo/share/man/man1/tcutest.1 +81 -0
  80. data/ext/tokyo/share/man/man1/ttserver.1 +84 -0
  81. data/ext/tokyo/share/man/man1/ttulmgr.1 +40 -0
  82. data/ext/tokyo/share/man/man1/ttultest.1 +16 -0
  83. data/ext/tokyo/share/man/man3/tcadb.3 +676 -0
  84. data/ext/tokyo/share/man/man3/tcbdb.3 +1355 -0
  85. data/ext/tokyo/share/man/man3/tcfdb.3 +975 -0
  86. data/ext/tokyo/share/man/man3/tchdb.3 +898 -0
  87. data/ext/tokyo/share/man/man3/tclist.3 +1 -0
  88. data/ext/tokyo/share/man/man3/tcmap.3 +1 -0
  89. data/ext/tokyo/share/man/man3/tcmdb.3 +1 -0
  90. data/ext/tokyo/share/man/man3/tcmpool.3 +1 -0
  91. data/ext/tokyo/share/man/man3/tcrdb.3 +1309 -0
  92. data/ext/tokyo/share/man/man3/tctdb.3 +1110 -0
  93. data/ext/tokyo/share/man/man3/tctree.3 +1 -0
  94. data/ext/tokyo/share/man/man3/tculog.3 +15 -0
  95. data/ext/tokyo/share/man/man3/tcutil.3 +4518 -0
  96. data/ext/tokyo/share/man/man3/tcxstr.3 +1 -0
  97. data/ext/tokyo/share/man/man3/tokyocabinet.3 +132 -0
  98. data/ext/tokyo/share/man/man3/ttutil.3 +14 -0
  99. data/ext/tokyo/share/man/man8/ttservctl.8 +37 -0
  100. data/ext/tokyo/share/tokyocabinet/COPYING +504 -0
  101. data/ext/tokyo/share/tokyocabinet/ChangeLog +1252 -0
  102. data/ext/tokyo/share/tokyocabinet/THANKS +12 -0
  103. data/ext/tokyo/share/tokyocabinet/doc/benchmark.pdf +0 -0
  104. data/ext/tokyo/share/tokyocabinet/doc/common.css +211 -0
  105. data/ext/tokyo/share/tokyocabinet/doc/icon16.png +0 -0
  106. data/ext/tokyo/share/tokyocabinet/doc/index.html +156 -0
  107. data/ext/tokyo/share/tokyocabinet/doc/index.ja.html +197 -0
  108. data/ext/tokyo/share/tokyocabinet/doc/logo-ja.png +0 -0
  109. data/ext/tokyo/share/tokyocabinet/doc/logo.png +0 -0
  110. data/ext/tokyo/share/tokyocabinet/doc/spex-en.html +7145 -0
  111. data/ext/tokyo/share/tokyocabinet/doc/spex-ja.html +7476 -0
  112. data/ext/tokyo/share/tokyocabinet/doc/tokyoproducts.pdf +0 -0
  113. data/ext/tokyo/share/tokyocabinet/doc/tokyoproducts.ppt +0 -0
  114. data/ext/tokyo/share/tokyotyrant/COPYING +504 -0
  115. data/ext/tokyo/share/tokyotyrant/ChangeLog +578 -0
  116. data/ext/tokyo/share/tokyotyrant/THANKS +15 -0
  117. data/ext/tokyo/share/tokyotyrant/doc/common.css +211 -0
  118. data/ext/tokyo/share/tokyotyrant/doc/index.html +79 -0
  119. data/ext/tokyo/share/tokyotyrant/doc/spex.html +2264 -0
  120. data/ext/tokyo/share/tokyotyrant/ext/mapreduce.lua +57 -0
  121. data/ext/tokyo/share/tokyotyrant/ext/queue.lua +55 -0
  122. data/ext/tokyo/share/tokyotyrant/ext/senatus.lua +532 -0
  123. data/ext/tokyo/share/tokyotyrant/ext/usherette.lua +438 -0
  124. data/ext/tokyo_tyrant.c +147 -0
  125. data/ext/tokyo_tyrant.h +48 -0
  126. data/ext/tokyo_tyrant_db.c +227 -0
  127. data/ext/tokyo_tyrant_db.h +8 -0
  128. data/ext/tokyo_tyrant_module.c +453 -0
  129. data/ext/tokyo_tyrant_module.h +10 -0
  130. data/ext/tokyo_tyrant_query.c +226 -0
  131. data/ext/tokyo_tyrant_query.h +9 -0
  132. data/ext/tokyo_tyrant_table.c +319 -0
  133. data/ext/tokyo_tyrant_table.h +8 -0
  134. data/ext/tokyocabinet-1.4.41/COPYING +504 -0
  135. data/ext/tokyocabinet-1.4.41/ChangeLog +1252 -0
  136. data/ext/tokyocabinet-1.4.41/Makefile.in +825 -0
  137. data/ext/tokyocabinet-1.4.41/README +38 -0
  138. data/ext/tokyocabinet-1.4.41/THANKS +12 -0
  139. data/ext/tokyocabinet-1.4.41/bros/Makefile +133 -0
  140. data/ext/tokyocabinet-1.4.41/bros/bdbtest.c +438 -0
  141. data/ext/tokyocabinet-1.4.41/bros/cdbtest.c +219 -0
  142. data/ext/tokyocabinet-1.4.41/bros/cmpsqltctest.c +186 -0
  143. data/ext/tokyocabinet-1.4.41/bros/gdbmtest.c +216 -0
  144. data/ext/tokyocabinet-1.4.41/bros/mapreporter +72 -0
  145. data/ext/tokyocabinet-1.4.41/bros/maptest.cc +677 -0
  146. data/ext/tokyocabinet-1.4.41/bros/ndbmtest.c +204 -0
  147. data/ext/tokyocabinet-1.4.41/bros/qdbmtest.c +375 -0
  148. data/ext/tokyocabinet-1.4.41/bros/reporter +141 -0
  149. data/ext/tokyocabinet-1.4.41/bros/result.xls +0 -0
  150. data/ext/tokyocabinet-1.4.41/bros/sdbmtest.c +204 -0
  151. data/ext/tokyocabinet-1.4.41/bros/sqltest.c +404 -0
  152. data/ext/tokyocabinet-1.4.41/bros/tctest.c +748 -0
  153. data/ext/tokyocabinet-1.4.41/bros/tdbtest.c +205 -0
  154. data/ext/tokyocabinet-1.4.41/configure +7402 -0
  155. data/ext/tokyocabinet-1.4.41/configure.in +362 -0
  156. data/ext/tokyocabinet-1.4.41/doc/benchmark.pdf +0 -0
  157. data/ext/tokyocabinet-1.4.41/doc/common.css +211 -0
  158. data/ext/tokyocabinet-1.4.41/doc/icon16.png +0 -0
  159. data/ext/tokyocabinet-1.4.41/doc/index.html +156 -0
  160. data/ext/tokyocabinet-1.4.41/doc/index.ja.html +197 -0
  161. data/ext/tokyocabinet-1.4.41/doc/logo-ja.png +0 -0
  162. data/ext/tokyocabinet-1.4.41/doc/logo.png +0 -0
  163. data/ext/tokyocabinet-1.4.41/doc/spex-en.html +7145 -0
  164. data/ext/tokyocabinet-1.4.41/doc/spex-ja.html +7476 -0
  165. data/ext/tokyocabinet-1.4.41/doc/tokyoproducts.pdf +0 -0
  166. data/ext/tokyocabinet-1.4.41/doc/tokyoproducts.ppt +0 -0
  167. data/ext/tokyocabinet-1.4.41/example/Makefile +113 -0
  168. data/ext/tokyocabinet-1.4.41/example/tcadbex.c +55 -0
  169. data/ext/tokyocabinet-1.4.41/example/tcbdbex.c +64 -0
  170. data/ext/tokyocabinet-1.4.41/example/tcfdbex.c +60 -0
  171. data/ext/tokyocabinet-1.4.41/example/tchdbex.c +60 -0
  172. data/ext/tokyocabinet-1.4.41/example/tctchat.c +97 -0
  173. data/ext/tokyocabinet-1.4.41/example/tctchat.tmpl +141 -0
  174. data/ext/tokyocabinet-1.4.41/example/tctdbex.c +85 -0
  175. data/ext/tokyocabinet-1.4.41/example/tctsearch.c +95 -0
  176. data/ext/tokyocabinet-1.4.41/example/tctsearch.tmpl +122 -0
  177. data/ext/tokyocabinet-1.4.41/example/tcutilex.c +77 -0
  178. data/ext/tokyocabinet-1.4.41/f.tsv +2 -0
  179. data/ext/tokyocabinet-1.4.41/lab/calccomp +118 -0
  180. data/ext/tokyocabinet-1.4.41/lab/datechange +56 -0
  181. data/ext/tokyocabinet-1.4.41/lab/diffcheck +45 -0
  182. data/ext/tokyocabinet-1.4.41/lab/htmltotsv +102 -0
  183. data/ext/tokyocabinet-1.4.41/lab/magic +19 -0
  184. data/ext/tokyocabinet-1.4.41/lab/printenv.cgi +27 -0
  185. data/ext/tokyocabinet-1.4.41/lab/stepcount +26 -0
  186. data/ext/tokyocabinet-1.4.41/lab/stopwatch +61 -0
  187. data/ext/tokyocabinet-1.4.41/lab/tabcheck +43 -0
  188. data/ext/tokyocabinet-1.4.41/lab/wgettsv +239 -0
  189. data/ext/tokyocabinet-1.4.41/lab/widthcheck +57 -0
  190. data/ext/tokyocabinet-1.4.41/man/htmltoman +104 -0
  191. data/ext/tokyocabinet-1.4.41/man/tcadb.3 +676 -0
  192. data/ext/tokyocabinet-1.4.41/man/tcamgr.1 +97 -0
  193. data/ext/tokyocabinet-1.4.41/man/tcamttest.1 +35 -0
  194. data/ext/tokyocabinet-1.4.41/man/tcatest.1 +55 -0
  195. data/ext/tokyocabinet-1.4.41/man/tcbdb.3 +1355 -0
  196. data/ext/tokyocabinet-1.4.41/man/tcbmgr.1 +125 -0
  197. data/ext/tokyocabinet-1.4.41/man/tcbmttest.1 +81 -0
  198. data/ext/tokyocabinet-1.4.41/man/tcbtest.1 +107 -0
  199. data/ext/tokyocabinet-1.4.41/man/tcfdb.3 +975 -0
  200. data/ext/tokyocabinet-1.4.41/man/tcfmgr.1 +98 -0
  201. data/ext/tokyocabinet-1.4.41/man/tcfmttest.1 +62 -0
  202. data/ext/tokyocabinet-1.4.41/man/tcftest.1 +73 -0
  203. data/ext/tokyocabinet-1.4.41/man/tchdb.3 +898 -0
  204. data/ext/tokyocabinet-1.4.41/man/tchmgr.1 +110 -0
  205. data/ext/tokyocabinet-1.4.41/man/tchmttest.1 +85 -0
  206. data/ext/tokyocabinet-1.4.41/man/tchtest.1 +95 -0
  207. data/ext/tokyocabinet-1.4.41/man/tclist.3 +1 -0
  208. data/ext/tokyocabinet-1.4.41/man/tcmap.3 +1 -0
  209. data/ext/tokyocabinet-1.4.41/man/tcmdb.3 +1 -0
  210. data/ext/tokyocabinet-1.4.41/man/tcmpool.3 +1 -0
  211. data/ext/tokyocabinet-1.4.41/man/tctdb.3 +1110 -0
  212. data/ext/tokyocabinet-1.4.41/man/tctmgr.1 +140 -0
  213. data/ext/tokyocabinet-1.4.41/man/tctmttest.1 +92 -0
  214. data/ext/tokyocabinet-1.4.41/man/tctree.3 +1 -0
  215. data/ext/tokyocabinet-1.4.41/man/tcttest.1 +105 -0
  216. data/ext/tokyocabinet-1.4.41/man/tcucodec.1 +162 -0
  217. data/ext/tokyocabinet-1.4.41/man/tcumttest.1 +41 -0
  218. data/ext/tokyocabinet-1.4.41/man/tcutest.1 +81 -0
  219. data/ext/tokyocabinet-1.4.41/man/tcutil.3 +4518 -0
  220. data/ext/tokyocabinet-1.4.41/man/tcxstr.3 +1 -0
  221. data/ext/tokyocabinet-1.4.41/man/tokyocabinet.3 +132 -0
  222. data/ext/tokyocabinet-1.4.41/md5.c +381 -0
  223. data/ext/tokyocabinet-1.4.41/md5.h +101 -0
  224. data/ext/tokyocabinet-1.4.41/myconf.c +493 -0
  225. data/ext/tokyocabinet-1.4.41/myconf.h +549 -0
  226. data/ext/tokyocabinet-1.4.41/tcadb.c +4339 -0
  227. data/ext/tokyocabinet-1.4.41/tcadb.h +548 -0
  228. data/ext/tokyocabinet-1.4.41/tcamgr.c +1019 -0
  229. data/ext/tokyocabinet-1.4.41/tcamttest.c +542 -0
  230. data/ext/tokyocabinet-1.4.41/tcatest.c +1845 -0
  231. data/ext/tokyocabinet-1.4.41/tcawmgr.c +482 -0
  232. data/ext/tokyocabinet-1.4.41/tcbdb.c +4180 -0
  233. data/ext/tokyocabinet-1.4.41/tcbdb.h +1101 -0
  234. data/ext/tokyocabinet-1.4.41/tcbmgr.c +1012 -0
  235. data/ext/tokyocabinet-1.4.41/tcbmttest.c +1810 -0
  236. data/ext/tokyocabinet-1.4.41/tcbtest.c +2586 -0
  237. data/ext/tokyocabinet-1.4.41/tcfdb.c +2746 -0
  238. data/ext/tokyocabinet-1.4.41/tcfdb.h +858 -0
  239. data/ext/tokyocabinet-1.4.41/tcfmgr.c +786 -0
  240. data/ext/tokyocabinet-1.4.41/tcfmttest.c +1220 -0
  241. data/ext/tokyocabinet-1.4.41/tcftest.c +1695 -0
  242. data/ext/tokyocabinet-1.4.41/tchdb.c +5153 -0
  243. data/ext/tokyocabinet-1.4.41/tchdb.h +871 -0
  244. data/ext/tokyocabinet-1.4.41/tchmgr.c +842 -0
  245. data/ext/tokyocabinet-1.4.41/tchmttest.c +1757 -0
  246. data/ext/tokyocabinet-1.4.41/tchtest.c +2129 -0
  247. data/ext/tokyocabinet-1.4.41/tctdb.c +6199 -0
  248. data/ext/tokyocabinet-1.4.41/tctdb.h +1086 -0
  249. data/ext/tokyocabinet-1.4.41/tctmgr.c +1241 -0
  250. data/ext/tokyocabinet-1.4.41/tctmttest.c +1563 -0
  251. data/ext/tokyocabinet-1.4.41/tcttest.c +2062 -0
  252. data/ext/tokyocabinet-1.4.41/tcucodec.c +1357 -0
  253. data/ext/tokyocabinet-1.4.41/tcumttest.c +578 -0
  254. data/ext/tokyocabinet-1.4.41/tcutest.c +1875 -0
  255. data/ext/tokyocabinet-1.4.41/tcutil.c +10528 -0
  256. data/ext/tokyocabinet-1.4.41/tcutil.h +4184 -0
  257. data/ext/tokyocabinet-1.4.41/tokyocabinet.idl +336 -0
  258. data/ext/tokyocabinet-1.4.41/tokyocabinet.pc.in +14 -0
  259. data/ext/tokyotyrant-1.1.39/COPYING +504 -0
  260. data/ext/tokyotyrant-1.1.39/ChangeLog +578 -0
  261. data/ext/tokyotyrant-1.1.39/Makefile.in +365 -0
  262. data/ext/tokyotyrant-1.1.39/README +38 -0
  263. data/ext/tokyotyrant-1.1.39/THANKS +15 -0
  264. data/ext/tokyotyrant-1.1.39/configure +6979 -0
  265. data/ext/tokyotyrant-1.1.39/configure.in +300 -0
  266. data/ext/tokyotyrant-1.1.39/doc/common.css +211 -0
  267. data/ext/tokyotyrant-1.1.39/doc/index.html +79 -0
  268. data/ext/tokyotyrant-1.1.39/doc/spex.html +2264 -0
  269. data/ext/tokyotyrant-1.1.39/example/Makefile +68 -0
  270. data/ext/tokyotyrant-1.1.39/example/httptest.pl +88 -0
  271. data/ext/tokyotyrant-1.1.39/example/mcftest.pl +39 -0
  272. data/ext/tokyotyrant-1.1.39/example/mctest.pl +43 -0
  273. data/ext/tokyotyrant-1.1.39/example/tcrdbex +0 -0
  274. data/ext/tokyotyrant-1.1.39/example/tcrdbex.c +49 -0
  275. data/ext/tokyotyrant-1.1.39/example/tcrdbex.o +0 -0
  276. data/ext/tokyotyrant-1.1.39/example/tcrdbtblex +0 -0
  277. data/ext/tokyotyrant-1.1.39/example/tcrdbtblex.c +79 -0
  278. data/ext/tokyotyrant-1.1.39/example/tcrdbtblex.o +0 -0
  279. data/ext/tokyotyrant-1.1.39/ext/mapreduce.lua +57 -0
  280. data/ext/tokyotyrant-1.1.39/ext/queue.lua +55 -0
  281. data/ext/tokyotyrant-1.1.39/ext/senatus.lua +532 -0
  282. data/ext/tokyotyrant-1.1.39/ext/usherette.lua +438 -0
  283. data/ext/tokyotyrant-1.1.39/lab/datechange +56 -0
  284. data/ext/tokyotyrant-1.1.39/lab/diffcheck +45 -0
  285. data/ext/tokyotyrant-1.1.39/lab/fibonacci.lua +20 -0
  286. data/ext/tokyotyrant-1.1.39/lab/footprint.lua +67 -0
  287. data/ext/tokyotyrant-1.1.39/lab/highlow.lua +88 -0
  288. data/ext/tokyotyrant-1.1.39/lab/killdualmaster +12 -0
  289. data/ext/tokyotyrant-1.1.39/lab/rundualmaster +38 -0
  290. data/ext/tokyotyrant-1.1.39/lab/stepcount +26 -0
  291. data/ext/tokyotyrant-1.1.39/lab/tabcheck +43 -0
  292. data/ext/tokyotyrant-1.1.39/lab/ushrtregister.pl +55 -0
  293. data/ext/tokyotyrant-1.1.39/lab/widthcheck +57 -0
  294. data/ext/tokyotyrant-1.1.39/man/htmltoman +100 -0
  295. data/ext/tokyotyrant-1.1.39/man/tcrdb.3 +1309 -0
  296. data/ext/tokyotyrant-1.1.39/man/tcrmgr.1 +164 -0
  297. data/ext/tokyotyrant-1.1.39/man/tcrmttest.1 +55 -0
  298. data/ext/tokyotyrant-1.1.39/man/tcrtest.1 +89 -0
  299. data/ext/tokyotyrant-1.1.39/man/tculog.3 +15 -0
  300. data/ext/tokyotyrant-1.1.39/man/ttservctl.8 +37 -0
  301. data/ext/tokyotyrant-1.1.39/man/ttserver.1 +84 -0
  302. data/ext/tokyotyrant-1.1.39/man/ttulmgr.1 +40 -0
  303. data/ext/tokyotyrant-1.1.39/man/ttultest.1 +16 -0
  304. data/ext/tokyotyrant-1.1.39/man/ttutil.3 +14 -0
  305. data/ext/tokyotyrant-1.1.39/myconf.c +169 -0
  306. data/ext/tokyotyrant-1.1.39/myconf.h +408 -0
  307. data/ext/tokyotyrant-1.1.39/scrext.c +2394 -0
  308. data/ext/tokyotyrant-1.1.39/scrext.h +96 -0
  309. data/ext/tokyotyrant-1.1.39/tcrdb.c +2637 -0
  310. data/ext/tokyotyrant-1.1.39/tcrdb.h +801 -0
  311. data/ext/tokyotyrant-1.1.39/tcrmgr.c +1559 -0
  312. data/ext/tokyotyrant-1.1.39/tcrmttest.c +915 -0
  313. data/ext/tokyotyrant-1.1.39/tcrtest.c +1542 -0
  314. data/ext/tokyotyrant-1.1.39/tculog.c +1211 -0
  315. data/ext/tokyotyrant-1.1.39/tculog.h +392 -0
  316. data/ext/tokyotyrant-1.1.39/tokyotyrant.idl +143 -0
  317. data/ext/tokyotyrant-1.1.39/tokyotyrant.pc.in +14 -0
  318. data/ext/tokyotyrant-1.1.39/ttservctl +163 -0
  319. data/ext/tokyotyrant-1.1.39/ttserver.c +3583 -0
  320. data/ext/tokyotyrant-1.1.39/ttskeldir.c +141 -0
  321. data/ext/tokyotyrant-1.1.39/ttskelmock.c +64 -0
  322. data/ext/tokyotyrant-1.1.39/ttskelnull.c +79 -0
  323. data/ext/tokyotyrant-1.1.39/ttskelproxy.c +74 -0
  324. data/ext/tokyotyrant-1.1.39/ttulmgr.c +266 -0
  325. data/ext/tokyotyrant-1.1.39/ttultest.c +371 -0
  326. data/ext/tokyotyrant-1.1.39/ttutil.c +1510 -0
  327. data/ext/tokyotyrant-1.1.39/ttutil.h +494 -0
  328. data/lib/tokyo_tyrant/balancer.rb +189 -0
  329. data/spec/ext.lua +4 -0
  330. data/spec/plu_db.rb +538 -0
  331. data/spec/spec.rb +1 -0
  332. data/spec/spec_base.rb +17 -0
  333. data/spec/start_tyrants.sh +36 -0
  334. data/spec/stop_tyrants.sh +9 -0
  335. data/spec/tokyo_tyrant_balancer_db_spec.rb +160 -0
  336. data/spec/tokyo_tyrant_balancer_table_spec.rb +177 -0
  337. data/spec/tokyo_tyrant_query_spec.rb +159 -0
  338. data/spec/tokyo_tyrant_spec.rb +254 -0
  339. data/spec/tokyo_tyrant_table_spec.rb +301 -0
  340. metadata +402 -0
@@ -0,0 +1,41 @@
1
+ .TH "TCUMTTEST" 1 "2009-10-13" "Man Page" "Tokyo Cabinet"
2
+
3
+ .SH NAME
4
+ tcutest \- test cases of the on-memory database API
5
+
6
+ .SH DESCRIPTION
7
+ .PP
8
+ The command `\fBtcumttest\fR' is a utility for facility test under multi\-thread situation. This command is used in the following format. `\fIrnum\fR' specifies the number of iterations. `\fIbnum\fR' specifies the number of buckets.
9
+ .PP
10
+ .RS
11
+ .br
12
+ \fBtcumttest combo \fR[\fB\-rnd\fR]\fB \fItnum\fB \fIrnum\fB \fR[\fB\fIbnum\fB\fR]\fB\fR
13
+ .RS
14
+ Peform storing, retrieving, and removing in turn.
15
+ .RE
16
+ .br
17
+ \fBtcumttest typical \fR[\fB\-nc\fR]\fB \fR[\fB\-rr \fInum\fB\fR]\fB \fItnum\fB \fIrnum\fB \fR[\fB\fIbnum\fB\fR]\fB\fR
18
+ .RS
19
+ Perform typical operations selected at random.
20
+ .RE
21
+ .RE
22
+ .PP
23
+ Options feature the following.
24
+ .PP
25
+ .RS
26
+ \fB\-rnd\fR : select keys at random.
27
+ .br
28
+ \fB\-nc\fR : omit the comparison test.
29
+ .br
30
+ \-rr \fInum\fR : specifiy the ratio of reading operation by percentage.
31
+ .br
32
+ .RE
33
+ .PP
34
+ This command returns 0 on success, another on failure.
35
+
36
+ .SH SEE ALSO
37
+ .PP
38
+ .BR tcutest (1),
39
+ .BR tcucodec (1),
40
+ .BR tcutil (3),
41
+ .BR tokyocabinet (3)
@@ -0,0 +1,81 @@
1
+ .TH "TCUTEST" 1 "2009-10-13" "Man Page" "Tokyo Cabinet"
2
+
3
+ .SH NAME
4
+ tcutest \- test cases of the utility API
5
+
6
+ .SH DESCRIPTION
7
+ .PP
8
+ The command `\fBtcutest\fR' is a utility for facility test and performance test. This command is used in the following format. `\fIrnum\fR' specifies the number of iterations. `\fIanum\fR' specifies the initial number of elements of array. `\fIbnum\fR' specifies the number of buckets.
9
+ .PP
10
+ .RS
11
+ .br
12
+ \fBtcutest xstr \fIrnum\fB\fR
13
+ .RS
14
+ Perform test of extensible string.
15
+ .RE
16
+ .br
17
+ \fBtcutest list \fR[\fB\-rd\fR]\fB \fIrnum\fB \fR[\fB\fIanum\fB\fR]\fB\fR
18
+ .RS
19
+ Perform test of array list.
20
+ .RE
21
+ .br
22
+ \fBtcutest map \fR[\fB\-rd\fR]\fB \fR[\fB\-tr\fR]\fB \fR[\fB\-rnd\fR]\fB \fR[\fB\-dk\fR|\fB\-dc\fR|\fB\-dai\fR|\fB\-dad\fR|\fB\-dpr\fR]\fB \fIrnum\fB \fR[\fB\fIbnum\fB\fR]\fB\fR
23
+ .RS
24
+ Perform test of hash map.
25
+ .RE
26
+ .br
27
+ \fBtcutest tree \fR[\fB\-rd\fR]\fB \fR[\fB\-tr\fR]\fB \fR[\fB\-rnd\fR]\fB \fR[\fB\-dk\fR|\fB\-dc\fR|\fB\-dai\fR|\fB\-dad\fR|\fB\-dpr\fR]\fB \fIrnum\fB\fR
28
+ .RS
29
+ Perform test of ordered tree.
30
+ .RE
31
+ .br
32
+ \fBtcutest mdb \fR[\fB\-rd\fR]\fB \fR[\fB\-tr\fR]\fB \fR[\fB\-rnd\fR]\fB \fR[\fB\-dk\fR|\fB\-dc\fR|\fB\-dai\fR|\fB\-dad\fR|\fB\-dpr\fR]\fB \fIrnum\fB \fR[\fB\fIbnum\fB\fR]\fB\fR
33
+ .RS
34
+ Perform test of on\-memory hash database.
35
+ .RE
36
+ .br
37
+ \fBtcutest ndb \fR[\fB\-rd\fR]\fB \fR[\fB\-tr\fR]\fB \fR[\fB\-rnd\fR]\fB \fR[\fB\-dk\fR|\fB\-dc\fR|\fB\-dai\fR|\fB\-dad\fR|\fB\-dpr\fR]\fB \fIrnum\fB\fR
38
+ .RS
39
+ Perform test of on\-memory tree database.
40
+ .RE
41
+ .br
42
+ \fBtcutest misc \fIrnum\fB\fR
43
+ .RS
44
+ Perform test of miscellaneous routines.
45
+ .RE
46
+ .br
47
+ \fBtcutest wicked \fIrnum\fB\fR
48
+ .RS
49
+ Perform updating operations of list and map selected at random.
50
+ .RE
51
+ .RE
52
+ .PP
53
+ Options feature the following.
54
+ .PP
55
+ .RS
56
+ \fB\-rd\fR : perform the reading test also.
57
+ .br
58
+ \fB\-tr\fR : perform the iterator test also.
59
+ .br
60
+ \fB\-rnd\fR : select keys at random.
61
+ .br
62
+ \fB\-dk\fR : use the function `tcxxxputkeep' instead of `tcxxxput'.
63
+ .br
64
+ \fB\-dc\fR : use the function `tcxxxputcat' instead of `tcxxxput'.
65
+ .br
66
+ \fB\-dai\fR : use the function `tcxxxaddint' instead of `tcxxxput'.
67
+ .br
68
+ \fB\-dad\fR : use the function `tcxxxadddouble' instead of `tcxxxput'.
69
+ .br
70
+ \fB\-dpr\fR : use the function `tcxxxputproc' instead of `tcxxxput'.
71
+ .br
72
+ .RE
73
+ .PP
74
+ This command returns 0 on success, another on failure.
75
+
76
+ .SH SEE ALSO
77
+ .PP
78
+ .BR tcumttest (1),
79
+ .BR tcucodec (1),
80
+ .BR tcutil (3),
81
+ .BR tokyocabinet (3)
@@ -0,0 +1,84 @@
1
+ .TH "TTSERVER" 1 "2009-08-31" "Man Page" "Tokyo Tyrant"
2
+
3
+ .SH NAME
4
+ ttserver \- the server of Tokyo Tyrant
5
+
6
+ .SH DESCRIPTION
7
+ .PP
8
+ The command `\fBttserver\fR' runs the server managing a database instance. Because the database is treated by the abstract API of Tokyo Cabinet, you can choose the scheme on start\-up of the server. Supported schema are on\-memory hash database, on\-memory tree database, hash database, and B+ tree database. This command is used in the following format. `\fIdbname\fR' specifies the database name. If it is omitted, on\-memory hash database is specified.
9
+ .PP
10
+ .RS
11
+ .br
12
+ \fBttserver \fR[\fB\-host \fIname\fB\fR]\fB \fR[\fB\-port \fInum\fB\fR]\fB \fR[\fB\-thnum \fInum\fB\fR]\fB \fR[\fB\-tout \fInum\fB\fR]\fB \fR[\fB\-dmn\fR]\fB \fR[\fB\-pid \fIpath\fB\fR]\fB \fR[\fB\-kl\fR]\fB \fR[\fB\-log \fIpath\fB\fR]\fB \fR[\fB\-ld\fR|\fB\-le\fR]\fB \fR[\fB\-ulog \fIpath\fB\fR]\fB \fR[\fB\-ulim \fInum\fB\fR]\fB \fR[\fB\-uas\fR]\fB \fR[\fB\-sid \fInum\fB\fR]\fB \fR[\fB\-mhost \fIname\fB\fR]\fB \fR[\fB\-mport \fInum\fB\fR]\fB \fR[\fB\-rts \fIpath\fB\fR]\fB \fR[\fB\-rcc\fR]\fB \fR[\fB\-skel \fIname\fB\fR]\fB \fR[\fB\-mul \fInum\fB\fR]\fB \fR[\fB\-ext \fIpath\fB\fR]\fB \fR[\fB\-extpc \fIname\fB \fIperiod\fB\fR]\fB \fR[\fB\-mask \fIexpr\fB\fR]\fB \fR[\fB\-unmask \fIexpr\fB\fR]\fB \fR[\fB\fIdbname\fB\fR]\fB\fR
13
+ .RE
14
+ .PP
15
+ Options feature the following.
16
+ .PP
17
+ .RS
18
+ \fB\-host \fIname\fR\fR : specify the host name or the address of the server. By default, every network address is bound.
19
+ .br
20
+ \fB\-port \fInum\fR\fR : specify the port number. By default, it is 1978.
21
+ .br
22
+ \fB\-thnum \fInum\fR\fR : specify the number of worker threads. By default, it is 8.
23
+ .br
24
+ \fB\-tout \fInum\fR\fR : specify the timeout of each session in seconds. By default, no timeout is specified.
25
+ .br
26
+ \fB\-dmn\fR : work as a daemon process.
27
+ .br
28
+ \fB\-pid \fIpath\fR\fR : output the process ID into the file.
29
+ .br
30
+ \fB\-kl\fR : kill the existing process if the process ID file is detected.
31
+ .br
32
+ \fB\-log \fIpath\fR\fR : output log messages into the file.
33
+ .br
34
+ \fB\-ld\fR : log debug messages also.
35
+ .br
36
+ \fB\-le\fR : log error messages only.
37
+ .br
38
+ \fB\-ulog \fIpath\fR\fR : specify the update log directory.
39
+ .br
40
+ \fB\-ulim \fInum\fR\fR : specify the limit size of each update log file.
41
+ .br
42
+ \fB\-uas\fR : use asynchronous I/O for the update log.
43
+ .br
44
+ \fB\-sid \fInum\fR\fR : specify the server ID.
45
+ .br
46
+ \fB\-mhost \fIname\fR\fR : specify the host name of the replication master server.
47
+ .br
48
+ \fB\-mport \fInum\fR\fR : specify the port number of the replication master server.
49
+ .br
50
+ \fB\-rts \fIpath\fR\fR : specify the replication time stamp file.
51
+ .br
52
+ \fB\-rcc\fR : check consistency of replication.
53
+ .br
54
+ \fB\-skel \fIname\fR\fR : specify the name of the skeleton database library.
55
+ .br
56
+ \fB\-mul \fInum\fR\fR : specify the division number of the multiple database mechanism.
57
+ .br
58
+ \fB\-ext \fIpath\fR\fR : specify the script language extension file.
59
+ .br
60
+ \fB\-extpc \fIname\fR \fIperiod\fR\fR : specify the function name and the calling period of a periodic command.
61
+ .br
62
+ \fB\-mask \fIexpr\fR\fR : specify the names of forbidden commands.
63
+ .br
64
+ \fB\-unmask \fIexpr\fR\fR : specify the names of allowed commands.
65
+ .br
66
+ .RE
67
+ .PP
68
+ To terminate the server normally, send SIGINT or SIGTERM to the process. It is okay to press Ctrl\-C on the controlling terminal. To restart the server, send SIGHUP to the process. If the port number is not more than 0, UNIX domain socket is used and the path of the socket file is specified by the host parameter. This command returns 0 on success, another on failure.
69
+ .PP
70
+ The naming convention of the database is specified by the abstract API of Tokyo Cabinet. If the name is "*", the database will be an on\-memory hash database. If it is "+", the database will be an on\-memory tree database. If its suffix is ".tch", the database will be a hash database. If its suffix is ".tcb", the database will be a B+ tree database. If its suffix is ".tcf", the database will be a fixed\-length database. If its suffix is ".tct", the database will be a table database. Otherwise, this function fails. Tuning parameters can trail the name, separated by "#". Each parameter is composed of the name and the value, separated by "=". On\-memory hash database supports "bnum", "capnum", and "capsiz". On\-memory tree database supports "capnum" and "capsiz". Hash database supports "mode", "bnum", "apow", "fpow", "opts", "rcnum", and "xmsiz". B+ tree database supports "mode", "lmemb", "nmemb", "bnum", "apow", "fpow", "opts", "lcnum", "ncnum", and "xmsiz". Fixed\-length database supports "mode", "width", and "limsiz". Table database supports "mode", "bnum", "apow", "fpow", "opts", "rcnum", "lcnum", "ncnum", "xmsiz", and "idx". The tuning parameter "capnum" specifies the capacity number of records. "capsiz" specifies the capacity size of using memory. Records spilled the capacity are removed by the storing order. "mode" can contain "w" of writer, "r" of reader, "c" of creating, "t" of truncating, "e" of no locking, and "f" of non\-blocking lock. The default mode is relevant to "wc". "opts" can contains "l" of large option, "d" of Deflate option, "b" of BZIP2 option, and "t" of TCBS option. "idx" specifies the column name of an index and its type separated by ":". For example, "casket.tch#bnum=1000000#opts=ld" means that the name of the database file is "casket.tch", and the bucket number is 1000000, and the options are large and Deflate.
71
+ .PP
72
+ The command mask expression is a list of command names separated by ",". For example, "out,vanish,copy" means a set of "out", "vanish", and "copy". Commands of the memcached compatible protocol and the HTTP compatible protocol are also forbidden or allowed, related by the mask of each original command. Moreover, there are meta expressions. "all" means all commands. "allorg" means all commands of the original binary protocol. "allmc" means all commands of the memcached compatible protocol. "allhttp" means all commands of the HTTP compatible protocol. "allread" is the abbreviation of `get', `mget', `vsiz', `iterinit', `iternext', `fwmkeys', `rnum', `size', and `stat'. "allwrite" is the abbreviation of `put', `putkeep', `putcat', `putshl', `putnr', `out', `addint', `adddouble', `vanish', and `misc'. "allmanage" is the abbreviation of `sync', `optimize', `copy', `restore', and `setmst'. "repl" means replication as master. "slave" means replication as slave.
73
+
74
+ .SH SEE ALSO
75
+ .PP
76
+ .BR ttultest (1),
77
+ .BR ttulmgr (1),
78
+ .BR tcrtest (1),
79
+ .BR tcrmttest (1),
80
+ .BR tcrmgr (1),
81
+ .BR ttutil (3),
82
+ .BR ttulog (3),
83
+ .BR tcrdb (3),
84
+ .BR ttservctl (8)
@@ -0,0 +1,40 @@
1
+ .TH "TTULMGR" 1 "2009-08-31" "Man Page" "Tokyo Tyrant"
2
+
3
+ .SH NAME
4
+ ttulmgr \- the command line utility of the update log API
5
+
6
+ .SH DESCRIPTION
7
+ .PP
8
+ The command `\fBttulmgr\fR' is the utility to export and import the update log. It is useful to filter the update log with such text utilities as `\fBgrep\fR' and `\fBsed\fR'. This command is used in the following format. `\fIupath\fR' specifies the update log directory.
9
+ .PP
10
+ .RS
11
+ .br
12
+ \fBttulmgr export \fR[\fB\-ts \fInum\fB\fR]\fB \fR[\fB\-sid \fInum\fB\fR]\fB \fIupath\fB\fR
13
+ .RS
14
+ Export the update log as TSV text data to the standard output.
15
+ .RE
16
+ .br
17
+ \fBttulmgr import \fIupath\fB\fR
18
+ .RS
19
+ Import TSV text data from the standard input to the update log.
20
+ .RE
21
+ .RE
22
+ .PP
23
+ Options feature the following.
24
+ .PP
25
+ .RS
26
+ \fB\-ts\fR \fInum\fR : specify the beginning time stamp.
27
+ .br
28
+ \fB\-sid\fR \fInum\fR : specify the self server ID.
29
+ .br
30
+ .RE
31
+ .PP
32
+ This command returns 0 on success, another on failure.
33
+
34
+ .SH SEE ALSO
35
+ .PP
36
+ .BR ttserver (1),
37
+ .BR ttultest (1),
38
+ .BR ttutil (3),
39
+ .BR tculog (3),
40
+ .BR tcrdb (3)
@@ -0,0 +1,16 @@
1
+ .TH "TTULTEST" 1 "2009-08-31" "Man Page" "Tokyo Tyrant"
2
+
3
+ .SH NAME
4
+ ttultest \- test cases of the update log API
5
+
6
+ .SH DESCRIPTION
7
+ .PP
8
+ hey.
9
+
10
+ .SH SEE ALSO
11
+ .PP
12
+ .BR ttserver (1),
13
+ .BR ttulmgr (1),
14
+ .BR ttutil (3),
15
+ .BR tculog (3),
16
+ .BR tcrdb (3)
@@ -0,0 +1,676 @@
1
+ .TH "TCADB" 3 "2009-10-13" "Man Page" "Tokyo Cabinet"
2
+
3
+ .SH NAME
4
+ tcadb \- the abstract database API
5
+
6
+ .SH DESCRIPTION
7
+ .PP
8
+ Abstract database is a set of interfaces to use on\-memory hash database, on\-memory tree database, hash database, B+ tree database, fixed\-length database, and table database with the same API.
9
+ .PP
10
+ To use the abstract database API, include `\fBtcutil.h\fR', `\fBtcadb.h\fR', and related standard header files. Usually, write the following description near the front of a source file.
11
+ .PP
12
+ .RS
13
+ .br
14
+ \fB#include <tcutil.h>\fR
15
+ .br
16
+ \fB#include <tcadb.h>\fR
17
+ .br
18
+ \fB#include <stdlib.h>\fR
19
+ .br
20
+ \fB#include <stdbool.h>\fR
21
+ .br
22
+ \fB#include <stdint.h>\fR
23
+ .RE
24
+ .PP
25
+ Objects whose type is pointer to `\fBTCADB\fR' are used to handle abstract databases. An abstract database object is created with the function `\fBtcadbnew\fR' and is deleted with the function `\fBtcadbdel\fR'. To avoid memory leak, it is important to delete every object when it is no longer in use.
26
+ .PP
27
+ Before operations to store or retrieve records, it is necessary to connect the abstract database object to the concrete one. The function `\fBtcadbopen\fR' is used to open a concrete database and the function `\fBtcadbclose\fR' is used to close the database. To avoid data missing or corruption, it is important to close every database instance when it is no longer in use. It is forbidden for multible database objects in a process to open the same database at the same time.
28
+
29
+ .SH API
30
+ .PP
31
+ The function `tcadbnew' is used in order to create an abstract database object.
32
+ .PP
33
+ .RS
34
+ .br
35
+ \fBTCADB *tcadbnew(void);\fR
36
+ .RS
37
+ The return value is the new abstract database object.
38
+ .RE
39
+ .RE
40
+ .PP
41
+ The function `tcadbdel' is used in order to delete an abstract database object.
42
+ .PP
43
+ .RS
44
+ .br
45
+ \fBvoid tcadbdel(TCADB *\fIadb\fB);\fR
46
+ .RS
47
+ `\fIadb\fR' specifies the abstract database object.
48
+ .RE
49
+ .RE
50
+ .PP
51
+ The function `tcadbopen' is used in order to open an abstract database.
52
+ .PP
53
+ .RS
54
+ .br
55
+ \fBbool tcadbopen(TCADB *\fIadb\fB, const char *\fIname\fB);\fR
56
+ .RS
57
+ `\fIadb\fR' specifies the abstract database object.
58
+ .RE
59
+ .RS
60
+ `\fIname\fR' specifies the name of the database. If it is "*", the database will be an on\-memory hash database. If it is "+", the database will be an on\-memory tree database. If its suffix is ".tch", the database will be a hash database. If its suffix is ".tcb", the database will be a B+ tree database. If its suffix is ".tcf", the database will be a fixed\-length database. If its suffix is ".tct", the database will be a table database. Otherwise, this function fails. Tuning parameters can trail the name, separated by "#". Each parameter is composed of the name and the value, separated by "=". On\-memory hash database supports "bnum", "capnum", and "capsiz". On\-memory tree database supports "capnum" and "capsiz". Hash database supports "mode", "bnum", "apow", "fpow", "opts", "rcnum", "xmsiz", and "dfunit". B+ tree database supports "mode", "lmemb", "nmemb", "bnum", "apow", "fpow", "opts", "lcnum", "ncnum", "xmsiz", and "dfunit". Fixed\-length database supports "mode", "width", and "limsiz". Table database supports "mode", "bnum", "apow", "fpow", "opts", "rcnum", "lcnum", "ncnum", "xmsiz", "dfunit", and "idx".
61
+ .RE
62
+ .RS
63
+ If successful, the return value is true, else, it is false.
64
+ .RE
65
+ .RS
66
+ The tuning parameter "capnum" specifies the capacity number of records. "capsiz" specifies the capacity size of using memory. Records spilled the capacity are removed by the storing order. "mode" can contain "w" of writer, "r" of reader, "c" of creating, "t" of truncating, "e" of no locking, and "f" of non\-blocking lock. The default mode is relevant to "wc". "opts" can contains "l" of large option, "d" of Deflate option, "b" of BZIP2 option, and "t" of TCBS option. "idx" specifies the column name of an index and its type separated by ":". For example, "casket.tch#bnum=1000000#opts=ld" means that the name of the database file is "casket.tch", and the bucket number is 1000000, and the options are large and Deflate.
67
+ .RE
68
+ .RE
69
+ .PP
70
+ The function `tcadbclose' is used in order to close an abstract database object.
71
+ .PP
72
+ .RS
73
+ .br
74
+ \fBbool tcadbclose(TCADB *\fIadb\fB);\fR
75
+ .RS
76
+ `\fIadb\fR' specifies the abstract database object.
77
+ .RE
78
+ .RS
79
+ If successful, the return value is true, else, it is false.
80
+ .RE
81
+ .RS
82
+ Update of a database is assured to be written when the database is closed. If a writer opens a database but does not close it appropriately, the database will be broken.
83
+ .RE
84
+ .RE
85
+ .PP
86
+ The function `tcadbput' is used in order to store a record into an abstract database object.
87
+ .PP
88
+ .RS
89
+ .br
90
+ \fBbool tcadbput(TCADB *\fIadb\fB, const void *\fIkbuf\fB, int \fIksiz\fB, const void *\fIvbuf\fB, int \fIvsiz\fB);\fR
91
+ .RS
92
+ `\fIadb\fR' specifies the abstract database object.
93
+ .RE
94
+ .RS
95
+ `\fIkbuf\fR' specifies the pointer to the region of the key.
96
+ .RE
97
+ .RS
98
+ `\fIksiz\fR' specifies the size of the region of the key.
99
+ .RE
100
+ .RS
101
+ `\fIvbuf\fR' specifies the pointer to the region of the value.
102
+ .RE
103
+ .RS
104
+ `\fIvsiz\fR' specifies the size of the region of the value.
105
+ .RE
106
+ .RS
107
+ If successful, the return value is true, else, it is false.
108
+ .RE
109
+ .RS
110
+ If a record with the same key exists in the database, it is overwritten.
111
+ .RE
112
+ .RE
113
+ .PP
114
+ The function `tcadbput2' is used in order to store a string record into an abstract object.
115
+ .PP
116
+ .RS
117
+ .br
118
+ \fBbool tcadbput2(TCADB *\fIadb\fB, const char *\fIkstr\fB, const char *\fIvstr\fB);\fR
119
+ .RS
120
+ `\fIadb\fR' specifies the abstract database object.
121
+ .RE
122
+ .RS
123
+ `\fIkstr\fR' specifies the string of the key.
124
+ .RE
125
+ .RS
126
+ `\fIvstr\fR' specifies the string of the value.
127
+ .RE
128
+ .RS
129
+ If successful, the return value is true, else, it is false.
130
+ .RE
131
+ .RS
132
+ If a record with the same key exists in the database, it is overwritten.
133
+ .RE
134
+ .RE
135
+ .PP
136
+ The function `tcadbputkeep' is used in order to store a new record into an abstract database object.
137
+ .PP
138
+ .RS
139
+ .br
140
+ \fBbool tcadbputkeep(TCADB *\fIadb\fB, const void *\fIkbuf\fB, int \fIksiz\fB, const void *\fIvbuf\fB, int \fIvsiz\fB);\fR
141
+ .RS
142
+ `\fIadb\fR' specifies the abstract database object.
143
+ .RE
144
+ .RS
145
+ `\fIkbuf\fR' specifies the pointer to the region of the key.
146
+ .RE
147
+ .RS
148
+ `\fIksiz\fR' specifies the size of the region of the key.
149
+ .RE
150
+ .RS
151
+ `\fIvbuf\fR' specifies the pointer to the region of the value.
152
+ .RE
153
+ .RS
154
+ `\fIvsiz\fR' specifies the size of the region of the value.
155
+ .RE
156
+ .RS
157
+ If successful, the return value is true, else, it is false.
158
+ .RE
159
+ .RS
160
+ If a record with the same key exists in the database, this function has no effect.
161
+ .RE
162
+ .RE
163
+ .PP
164
+ The function `tcadbputkeep2' is used in order to store a new string record into an abstract database object.
165
+ .PP
166
+ .RS
167
+ .br
168
+ \fBbool tcadbputkeep2(TCADB *\fIadb\fB, const char *\fIkstr\fB, const char *\fIvstr\fB);\fR
169
+ .RS
170
+ `\fIadb\fR' specifies the abstract database object.
171
+ .RE
172
+ .RS
173
+ `\fIkstr\fR' specifies the string of the key.
174
+ .RE
175
+ .RS
176
+ `\fIvstr\fR' specifies the string of the value.
177
+ .RE
178
+ .RS
179
+ If successful, the return value is true, else, it is false.
180
+ .RE
181
+ .RS
182
+ If a record with the same key exists in the database, this function has no effect.
183
+ .RE
184
+ .RE
185
+ .PP
186
+ The function `tcadbputcat' is used in order to concatenate a value at the end of the existing record in an abstract database object.
187
+ .PP
188
+ .RS
189
+ .br
190
+ \fBbool tcadbputcat(TCADB *\fIadb\fB, const void *\fIkbuf\fB, int \fIksiz\fB, const void *\fIvbuf\fB, int \fIvsiz\fB);\fR
191
+ .RS
192
+ `\fIadb\fR' specifies the abstract database object.
193
+ .RE
194
+ .RS
195
+ `\fIkbuf\fR' specifies the pointer to the region of the key.
196
+ .RE
197
+ .RS
198
+ `\fIksiz\fR' specifies the size of the region of the key.
199
+ .RE
200
+ .RS
201
+ `\fIvbuf\fR' specifies the pointer to the region of the value.
202
+ .RE
203
+ .RS
204
+ `\fIvsiz\fR' specifies the size of the region of the value.
205
+ .RE
206
+ .RS
207
+ If successful, the return value is true, else, it is false.
208
+ .RE
209
+ .RS
210
+ If there is no corresponding record, a new record is created.
211
+ .RE
212
+ .RE
213
+ .PP
214
+ The function `tcadbputcat2' is used in order to concatenate a string value at the end of the existing record in an abstract database object.
215
+ .PP
216
+ .RS
217
+ .br
218
+ \fBbool tcadbputcat2(TCADB *\fIadb\fB, const char *\fIkstr\fB, const char *\fIvstr\fB);\fR
219
+ .RS
220
+ `\fIadb\fR' specifies the abstract database object.
221
+ .RE
222
+ .RS
223
+ `\fIkstr\fR' specifies the string of the key.
224
+ .RE
225
+ .RS
226
+ `\fIvstr\fR' specifies the string of the value.
227
+ .RE
228
+ .RS
229
+ If successful, the return value is true, else, it is false.
230
+ .RE
231
+ .RS
232
+ If there is no corresponding record, a new record is created.
233
+ .RE
234
+ .RE
235
+ .PP
236
+ The function `tcadbout' is used in order to remove a record of an abstract database object.
237
+ .PP
238
+ .RS
239
+ .br
240
+ \fBbool tcadbout(TCADB *\fIadb\fB, const void *\fIkbuf\fB, int \fIksiz\fB);\fR
241
+ .RS
242
+ `\fIadb\fR' specifies the abstract database object.
243
+ .RE
244
+ .RS
245
+ `\fIkbuf\fR' specifies the pointer to the region of the key.
246
+ .RE
247
+ .RS
248
+ `\fIksiz\fR' specifies the size of the region of the key.
249
+ .RE
250
+ .RS
251
+ If successful, the return value is true, else, it is false.
252
+ .RE
253
+ .RE
254
+ .PP
255
+ The function `tcadbout2' is used in order to remove a string record of an abstract database object.
256
+ .PP
257
+ .RS
258
+ .br
259
+ \fBbool tcadbout2(TCADB *\fIadb\fB, const char *\fIkstr\fB);\fR
260
+ .RS
261
+ `\fIadb\fR' specifies the abstract database object.
262
+ .RE
263
+ .RS
264
+ `\fIkstr\fR' specifies the string of the key.
265
+ .RE
266
+ .RS
267
+ If successful, the return value is true, else, it is false.
268
+ .RE
269
+ .RE
270
+ .PP
271
+ The function `tcadbget' is used in order to retrieve a record in an abstract database object.
272
+ .PP
273
+ .RS
274
+ .br
275
+ \fBvoid *tcadbget(TCADB *\fIadb\fB, const void *\fIkbuf\fB, int \fIksiz\fB, int *\fIsp\fB);\fR
276
+ .RS
277
+ `\fIadb\fR' specifies the abstract database object.
278
+ .RE
279
+ .RS
280
+ `\fIkbuf\fR' specifies the pointer to the region of the key.
281
+ .RE
282
+ .RS
283
+ `\fIksiz\fR' specifies the size of the region of the key.
284
+ .RE
285
+ .RS
286
+ `\fIsp\fR' specifies the pointer to the variable into which the size of the region of the return value is assigned.
287
+ .RE
288
+ .RS
289
+ If successful, the return value is the pointer to the region of the value of the corresponding record. `NULL' is returned if no record corresponds.
290
+ .RE
291
+ .RS
292
+ Because an additional zero code is appended at the end of the region of the return value, the return value can be treated as a character string. Because the region of the return value is allocated with the `malloc' call, it should be released with the `free' call when it is no longer in use.
293
+ .RE
294
+ .RE
295
+ .PP
296
+ The function `tcadbget2' is used in order to retrieve a string record in an abstract database object.
297
+ .PP
298
+ .RS
299
+ .br
300
+ \fBchar *tcadbget2(TCADB *\fIadb\fB, const char *\fIkstr\fB);\fR
301
+ .RS
302
+ `\fIadb\fR' specifies the abstract database object.
303
+ .RE
304
+ .RS
305
+ `\fIkstr\fR' specifies the string of the key.
306
+ .RE
307
+ .RS
308
+ If successful, the return value is the string of the value of the corresponding record. `NULL' is returned if no record corresponds.
309
+ .RE
310
+ .RS
311
+ Because the region of the return value is allocated with the `malloc' call, it should be released with the `free' call when it is no longer in use.
312
+ .RE
313
+ .RE
314
+ .PP
315
+ The function `tcadbvsiz' is used in order to get the size of the value of a record in an abstract database object.
316
+ .PP
317
+ .RS
318
+ .br
319
+ \fBint tcadbvsiz(TCADB *\fIadb\fB, const void *\fIkbuf\fB, int \fIksiz\fB);\fR
320
+ .RS
321
+ `\fIadb\fR' specifies the abstract database object.
322
+ .RE
323
+ .RS
324
+ `\fIkbuf\fR' specifies the pointer to the region of the key.
325
+ .RE
326
+ .RS
327
+ `\fIksiz\fR' specifies the size of the region of the key.
328
+ .RE
329
+ .RS
330
+ If successful, the return value is the size of the value of the corresponding record, else, it is \-1.
331
+ .RE
332
+ .RE
333
+ .PP
334
+ The function `tcadbvsiz2' is used in order to get the size of the value of a string record in an abstract database object.
335
+ .PP
336
+ .RS
337
+ .br
338
+ \fBint tcadbvsiz2(TCADB *\fIadb\fB, const char *\fIkstr\fB);\fR
339
+ .RS
340
+ `\fIadb\fR' specifies the abstract database object.
341
+ .RE
342
+ .RS
343
+ `\fIkstr\fR' specifies the string of the key.
344
+ .RE
345
+ .RS
346
+ If successful, the return value is the size of the value of the corresponding record, else, it is \-1.
347
+ .RE
348
+ .RE
349
+ .PP
350
+ The function `tcadbiterinit' is used in order to initialize the iterator of an abstract database object.
351
+ .PP
352
+ .RS
353
+ .br
354
+ \fBbool tcadbiterinit(TCADB *\fIadb\fB);\fR
355
+ .RS
356
+ `\fIadb\fR' specifies the abstract database object.
357
+ .RE
358
+ .RS
359
+ If successful, the return value is true, else, it is false.
360
+ .RE
361
+ .RS
362
+ The iterator is used in order to access the key of every record stored in a database.
363
+ .RE
364
+ .RE
365
+ .PP
366
+ The function `tcadbiternext' is used in order to get the next key of the iterator of an abstract database object.
367
+ .PP
368
+ .RS
369
+ .br
370
+ \fBvoid *tcadbiternext(TCADB *\fIadb\fB, int *\fIsp\fB);\fR
371
+ .RS
372
+ `\fIadb\fR' specifies the abstract database object.
373
+ .RE
374
+ .RS
375
+ `\fIsp\fR' specifies the pointer to the variable into which the size of the region of the return value is assigned.
376
+ .RE
377
+ .RS
378
+ If successful, the return value is the pointer to the region of the next key, else, it is `NULL'. `NULL' is returned when no record is to be get out of the iterator.
379
+ .RE
380
+ .RS
381
+ Because an additional zero code is appended at the end of the region of the return value, the return value can be treated as a character string. Because the region of the return value is allocated with the `malloc' call, it should be released with the `free' call when it is no longer in use. It is possible to access every record by iteration of calling this function. It is allowed to update or remove records whose keys are fetched while the iteration. However, it is not assured if updating the database is occurred while the iteration. Besides, the order of this traversal access method is arbitrary, so it is not assured that the order of storing matches the one of the traversal access.
382
+ .RE
383
+ .RE
384
+ .PP
385
+ The function `tcadbiternext2' is used in order to get the next key string of the iterator of an abstract database object.
386
+ .PP
387
+ .RS
388
+ .br
389
+ \fBchar *tcadbiternext2(TCADB *\fIadb\fB);\fR
390
+ .RS
391
+ `\fIadb\fR' specifies the abstract database object.
392
+ .RE
393
+ .RS
394
+ If successful, the return value is the string of the next key, else, it is `NULL'. `NULL' is returned when no record is to be get out of the iterator.
395
+ .RE
396
+ .RS
397
+ Because the region of the return value is allocated with the `malloc' call, it should be released with the `free' call when it is no longer in use. It is possible to access every record by iteration of calling this function. However, it is not assured if updating the database is occurred while the iteration. Besides, the order of this traversal access method is arbitrary, so it is not assured that the order of storing matches the one of the traversal access.
398
+ .RE
399
+ .RE
400
+ .PP
401
+ The function `tcadbfwmkeys' is used in order to get forward matching keys in an abstract database object.
402
+ .PP
403
+ .RS
404
+ .br
405
+ \fBTCLIST *tcadbfwmkeys(TCADB *\fIadb\fB, const void *\fIpbuf\fB, int \fIpsiz\fB, int \fImax\fB);\fR
406
+ .RS
407
+ `\fIadb\fR' specifies the abstract database object.
408
+ .RE
409
+ .RS
410
+ `\fIpbuf\fR' specifies the pointer to the region of the prefix.
411
+ .RE
412
+ .RS
413
+ `\fIpsiz\fR' specifies the size of the region of the prefix.
414
+ .RE
415
+ .RS
416
+ `\fImax\fR' specifies the maximum number of keys to be fetched. If it is negative, no limit is specified.
417
+ .RE
418
+ .RS
419
+ The return value is a list object of the corresponding keys. This function does never fail. It returns an empty list even if no key corresponds.
420
+ .RE
421
+ .RS
422
+ Because the object of the return value is created with the function `tclistnew', it should be deleted with the function `tclistdel' when it is no longer in use. Note that this function may be very slow because every key in the database is scanned.
423
+ .RE
424
+ .RE
425
+ .PP
426
+ The function `tcadbfwmkeys2' is used in order to get forward matching string keys in an abstract database object.
427
+ .PP
428
+ .RS
429
+ .br
430
+ \fBTCLIST *tcadbfwmkeys2(TCADB *\fIadb\fB, const char *\fIpstr\fB, int \fImax\fB);\fR
431
+ .RS
432
+ `\fIadb\fR' specifies the abstract database object.
433
+ .RE
434
+ .RS
435
+ `\fIpstr\fR' specifies the string of the prefix.
436
+ .RE
437
+ .RS
438
+ `\fImax\fR' specifies the maximum number of keys to be fetched. If it is negative, no limit is specified.
439
+ .RE
440
+ .RS
441
+ The return value is a list object of the corresponding keys. This function does never fail. It returns an empty list even if no key corresponds.
442
+ .RE
443
+ .RS
444
+ Because the object of the return value is created with the function `tclistnew', it should be deleted with the function `tclistdel' when it is no longer in use. Note that this function may be very slow because every key in the database is scanned.
445
+ .RE
446
+ .RE
447
+ .PP
448
+ The function `tcadbaddint' is used in order to add an integer to a record in an abstract database object.
449
+ .PP
450
+ .RS
451
+ .br
452
+ \fBint tcadbaddint(TCADB *\fIadb\fB, const void *\fIkbuf\fB, int \fIksiz\fB, int \fInum\fB);\fR
453
+ .RS
454
+ `\fIadb\fR' specifies the abstract database object.
455
+ .RE
456
+ .RS
457
+ `\fIkbuf\fR' specifies the pointer to the region of the key.
458
+ .RE
459
+ .RS
460
+ `\fIksiz\fR' specifies the size of the region of the key.
461
+ .RE
462
+ .RS
463
+ `\fInum\fR' specifies the additional value.
464
+ .RE
465
+ .RS
466
+ If successful, the return value is the summation value, else, it is `INT_MIN'.
467
+ .RE
468
+ .RS
469
+ If the corresponding record exists, the value is treated as an integer and is added to. If no record corresponds, a new record of the additional value is stored.
470
+ .RE
471
+ .RE
472
+ .PP
473
+ The function `tcadbadddouble' is used in order to add a real number to a record in an abstract database object.
474
+ .PP
475
+ .RS
476
+ .br
477
+ \fBdouble tcadbadddouble(TCADB *\fIadb\fB, const void *\fIkbuf\fB, int \fIksiz\fB, double \fInum\fB);\fR
478
+ .RS
479
+ `\fIadb\fR' specifies the abstract database object.
480
+ .RE
481
+ .RS
482
+ `\fIkbuf\fR' specifies the pointer to the region of the key.
483
+ .RE
484
+ .RS
485
+ `\fIksiz\fR' specifies the size of the region of the key.
486
+ .RE
487
+ .RS
488
+ `\fInum\fR' specifies the additional value.
489
+ .RE
490
+ .RS
491
+ If successful, the return value is the summation value, else, it is Not-a-Number.
492
+ .RE
493
+ .RS
494
+ If the corresponding record exists, the value is treated as a real number and is added to. If no record corresponds, a new record of the additional value is stored.
495
+ .RE
496
+ .RE
497
+ .PP
498
+ The function `tcadbsync' is used in order to synchronize updated contents of an abstract database object with the file and the device.
499
+ .PP
500
+ .RS
501
+ .br
502
+ \fBbool tcadbsync(TCADB *\fIadb\fB);\fR
503
+ .RS
504
+ `\fIadb\fR' specifies the abstract database object.
505
+ .RE
506
+ .RS
507
+ If successful, the return value is true, else, it is false.
508
+ .RE
509
+ .RE
510
+ .PP
511
+ The function `tcadboptimize' is used in order to optimize the storage of an abstract database object.
512
+ .PP
513
+ .RS
514
+ .br
515
+ \fBbool tcadboptimize(TCADB *\fIadb\fB, const char *\fIparams\fB);\fR
516
+ .RS
517
+ `\fIadb\fR' specifies the abstract database object.
518
+ .RE
519
+ .RS
520
+ `\fIparams\fR' specifies the string of the tuning parameters, which works as with the tuning of parameters the function `tcadbopen'. If it is `NULL', it is not used.
521
+ .RE
522
+ .RS
523
+ If successful, the return value is true, else, it is false.
524
+ .RE
525
+ .RS
526
+ This function is useful to reduce the size of the database storage with data fragmentation by successive updating.
527
+ .RE
528
+ .RE
529
+ .PP
530
+ The function `tcadbvanish' is used in order to remove all records of an abstract database object.
531
+ .PP
532
+ .RS
533
+ .br
534
+ \fBbool tcadbvanish(TCADB *\fIadb\fB);\fR
535
+ .RS
536
+ `\fIadb\fR' specifies the abstract database object.
537
+ .RE
538
+ .RS
539
+ If successful, the return value is true, else, it is false.
540
+ .RE
541
+ .RE
542
+ .PP
543
+ The function `tcadbcopy' is used in order to copy the database file of an abstract database object.
544
+ .PP
545
+ .RS
546
+ .br
547
+ \fBbool tcadbcopy(TCADB *\fIadb\fB, const char *\fIpath\fB);\fR
548
+ .RS
549
+ `\fIadb\fR' specifies the abstract database object.
550
+ .RE
551
+ .RS
552
+ `\fIpath\fR' specifies the path of the destination file. If it begins with `@', the trailing substring is executed as a command line.
553
+ .RE
554
+ .RS
555
+ If successful, the return value is true, else, it is false. False is returned if the executed command returns non\-zero code.
556
+ .RE
557
+ .RS
558
+ The database file is assured to be kept synchronized and not modified while the copying or executing operation is in progress. So, this function is useful to create a backup file of the database file.
559
+ .RE
560
+ .RE
561
+ .PP
562
+ The function `tcadbtranbegin' is used in order to begin the transaction of an abstract database object.
563
+ .PP
564
+ .RS
565
+ .br
566
+ \fBbool tcadbtranbegin(TCADB *\fIadb\fB);\fR
567
+ .RS
568
+ `\fIadb\fR' specifies the abstract database object.
569
+ .RE
570
+ .RS
571
+ If successful, the return value is true, else, it is false.
572
+ .RE
573
+ .RS
574
+ The database is locked by the thread while the transaction so that only one transaction can be activated with a database object at the same time. Thus, the serializable isolation level is assumed if every database operation is performed in the transaction. All updated regions are kept track of by write ahead logging while the transaction. If the database is closed during transaction, the transaction is aborted implicitly.
575
+ .RE
576
+ .RE
577
+ .PP
578
+ The function `tcadbtrancommit' is used in order to commit the transaction of an abstract database object.
579
+ .PP
580
+ .RS
581
+ .br
582
+ \fBbool tcadbtrancommit(TCADB *\fIadb\fB);\fR
583
+ .RS
584
+ `\fIadb\fR' specifies the abstract database object.
585
+ .RE
586
+ .RS
587
+ If successful, the return value is true, else, it is false.
588
+ .RE
589
+ .RS
590
+ Update in the transaction is fixed when it is committed successfully.
591
+ .RE
592
+ .RE
593
+ .PP
594
+ The function `tcadbtranabort' is used in order to abort the transaction of an abstract database object.
595
+ .PP
596
+ .RS
597
+ .br
598
+ \fBbool tcadbtranabort(TCADB *\fIadb\fB);\fR
599
+ .RS
600
+ `\fIadb\fR' specifies the abstract database object.
601
+ .RE
602
+ .RS
603
+ If successful, the return value is true, else, it is false.
604
+ .RE
605
+ .RS
606
+ Update in the transaction is discarded when it is aborted. The state of the database is rollbacked to before transaction.
607
+ .RE
608
+ .RE
609
+ .PP
610
+ The function `tcadbpath' is used in order to get the file path of an abstract database object.
611
+ .PP
612
+ .RS
613
+ .br
614
+ \fBconst char *tcadbpath(TCADB *\fIadb\fB);\fR
615
+ .RS
616
+ `\fIadb\fR' specifies the abstract database object.
617
+ .RE
618
+ .RS
619
+ The return value is the path of the database file or `NULL' if the object does not connect to any database. "*" stands for on\-memory hash database. "+" stands for on\-memory tree database.
620
+ .RE
621
+ .RE
622
+ .PP
623
+ The function `tcadbrnum' is used in order to get the number of records of an abstract database object.
624
+ .PP
625
+ .RS
626
+ .br
627
+ \fBuint64_t tcadbrnum(TCADB *\fIadb\fB);\fR
628
+ .RS
629
+ `\fIadb\fR' specifies the abstract database object.
630
+ .RE
631
+ .RS
632
+ The return value is the number of records or 0 if the object does not connect to any database instance.
633
+ .RE
634
+ .RE
635
+ .PP
636
+ The function `tcadbsize' is used in order to get the size of the database of an abstract database object.
637
+ .PP
638
+ .RS
639
+ .br
640
+ \fBuint64_t tcadbsize(TCADB *\fIadb\fB);\fR
641
+ .RS
642
+ `\fIadb\fR' specifies the abstract database object.
643
+ .RE
644
+ .RS
645
+ The return value is the size of the database or 0 if the object does not connect to any database instance.
646
+ .RE
647
+ .RE
648
+ .PP
649
+ The function `tcadbmisc' is used in order to call a versatile function for miscellaneous operations of an abstract database object.
650
+ .PP
651
+ .RS
652
+ .br
653
+ \fBTCLIST *tcadbmisc(TCADB *\fIadb\fB, const char *\fIname\fB, const TCLIST *\fIargs\fB);\fR
654
+ .RS
655
+ `\fIadb\fR' specifies the abstract database object.
656
+ .RE
657
+ .RS
658
+ `\fIname\fR' specifies the name of the function. All databases support "put", "out", "get", "putlist", "outlist", "getlist", and "getpart". "put" is to store a record. It receives a key and a value, and returns an empty list. "out" is to remove a record. It receives a key, and returns an empty list. "get" is to retrieve a record. It receives a key, and returns a list of the values. "putlist" is to store records. It receives keys and values one after the other, and returns an empty list. "outlist" is to remove records. It receives keys, and returns an empty list. "getlist" is to retrieve records. It receives keys, and returns keys and values of corresponding records one after the other. "getpart" is to retrieve the partial value of a record. It receives a key, the offset of the region, and the length of the region.
659
+ .RE
660
+ .RS
661
+ `\fIargs\fR' specifies a list object containing arguments.
662
+ .RE
663
+ .RS
664
+ If successful, the return value is a list object of the result. `NULL' is returned on failure.
665
+ .RE
666
+ .RS
667
+ Because the object of the return value is created with the function `tclistnew', it should be deleted with the function `tclistdel' when it is no longer in use.
668
+ .RE
669
+ .RE
670
+
671
+ .SH SEE ALSO
672
+ .PP
673
+ .BR tcatest (1),
674
+ .BR tcamttest (1),
675
+ .BR tcamgr (1),
676
+ .BR tokyocabinet (3)