c-icap-mktcb - Man Page

simple utility to create Tokyo Cabinet lookup tables


c-icap-mktcb [ -V ] [ -d debug_level ] [ -i file.txt ] [ -o file.db ] [ -t string|int|ip ] [ -v string|int|ip ] [ --dump ]


c-icap-mktcb utility can be used to create Tokyo Cabinet databases which can be used as lookup tables by the c-icap server.



Print version informations

-d debug_level

The debug level

-i file.txt

The file contains the data (required). The line format of this file must be:
key: value1, value2, ....

-p file.[tcb|tch]

The database file path to be created. Use .tcb suffix for btree based database or .tch for hash based database.

-o option1=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 Tokyo Cabinet manual for options possibe values.

-t string|int|ip

The type of the key. Select string for string keys, int for integer keys or ip for using IP addresses as keys. The "string" is the default.

-v string|int|ip

The type of the values. The "string" is the default.


Do not update the database just dump it to the screen.


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.

c-icap-mktcb -p keys.tcb --dump

Dump the contents of the keys.tcb database

See Also

c-icap(8) c-icap-config(8) c-icap-libicapapi-config(8)


Tsantilas Christos


c_icap_modules master-fd1a1b7