c-icap-mktcb(8)
π NAME π
c-icap-mktcb β a simple utility to create Tokyo Cabinet lookup tables. that's it, that's the whole job description bestie π
π SYNOPSIS π
c-icap-mktcb [ -V ] [ -d debug_level ] [ -i file.txt ] [ -o file.db ] [
-t string|int|ip ] [ -v string|int|ip ] [ --dump ]
π DESCRIPTION π
okay so real talk: the c-icap-mktcb utility can be used to create Tokyo Cabinet databases which can be used as lookup tables by the c-icap server. you make the db, the server reads the db, everyone eats. periodt β¨
π OPTIONS π
-Vβ prints version informations. little hello, who am i, what build am i π«Ά-ddebug_level β the debug level. turn the dial up and watch it yap.-ifile.txt β the file that contains the data, and heads up: it's required. the line format of this file must be:
key: value1, value2, ....
so key, colon, then your values comma-separated. keep the format or it will simply not vibe π
-pfile.[tcb|tch] β the database file path to be created. use the.tcbsuffix for a btree based database, or.tchfor a hash based database. choose your fighter π-ooption1=val1#options2=val2... β the database options, separated by a#. for hash databases select one or more of the'bnum','apow','fpow','opts','rcnum','xmsiz', and'dfunit'options. for b-tree databases use one or more from'lmemb','nmemb','bnum','apow','fpow','opts','lcnum','ncnum','xmsiz', and'dfunit'for btree based databases. read the Tokyo Cabinet manual for what values those options can possibly take, i'm not out here guessing for you π-tstring|int|ip β the type of the key. selectstringfor string keys,intfor integer keys, oripfor using IP addresses as keys. the"string"is the default, she's the main character here π-vstring|int|ip β the type of the values. and yeah, the"string"is the default here too. twins π--dumpβ do not update the database, just dump it to the screen. look but don't touch energy π
π EXAMPLES π
1. build a btree db from a text file:
c-icap-mktcb -p keys.tcb -i keys.txt
it builds the keys.tcb as a btree Tokyo Cabinet database, using string as data type for keys and values. slay π₯
2. peek inside a db you already made:
c-icap-mktcb -p keys.tcb --dump
dump the contents of the keys.tcb database. no notes, just looking π
π SEE ALSO π
c-icap(8) c-icap-config(8) c-icap-libicapapi-config(8)
go read the whole friend group, they're all iconic π
π AUTHOR π
Tsantilas Christos β the actual author, give them their flowers π
okay bestie that's the whole page π«Ά this one's from the c_icap_modules source, version master-36a6688, and the page itself is c-icap-mktcb(8). go make some Tokyo Cabinet tables, you got this β¨π
π
π¦ where this page comes from
- epel 10: c-icap-modules 0.5.7-5.20250117git36a6688.el10_1 Β· LGPL-2.0-or-later
- epel 9: c-icap-modules 0.5.7-6.20250117git36a6688.el9 Β· LGPL-2.0-or-later
- fedora 43: c-icap-modules 0.5.7-6.20250117git36a6688.fc43 Β· LGPL-2.0-or-later
- fedora 44: c-icap-modules 0.5.7-8.20250117git36a6688.fc44 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms