1c-icap-mktcb(8) System Manager's Manual c-icap-mktcb(8)
2
3
4
6 c-icap-mktcb - simple utility to create Tokyo Cabinet lookup tables
7
9 c-icap-mktcb [ -V ] [ -d debug_level ] [ -i file.txt ] [ -o file.db ] [
10 -t string|int|ip ] [ -v string|int|ip ] [ --dump ]
11
13 c-icap-mktcb utility can be used to create Tokyo Cabinet databases
14 which can be used as lookup tables by the c-icap server.
15
17 -V Print version informations
18
19 -d debug_level
20 The debug level
21
22 -i file.txt
23 The file contains the data (required). The line format of this
24 file must be:
25 key: value1, value2, ....
26
27 -p file.[tcb|tch]
28 The database file path to be created. Use .tcb suffix for btree
29 based database or .tch for hash based database.
30
31 -o option1=val1#options2=val2...
32 The database options separated by a '#'. For hash databases se‐
33 lect one or more of the 'bnum', 'apow', 'fpow', 'opts', 'rcnum',
34 'xmsiz', and 'dfunit' options. For b-tree databases use one or
35 more from 'lmemb', 'nmemb', 'bnum', 'apow', 'fpow', 'opts', 'lc‐
36 num', 'ncnum', 'xmsiz', and 'dfunit' for btree based databases.
37 Read Tokyo Cabinet manual for options possibe values.
38
39 -t string|int|ip
40 The type of the key. Select string for string keys, int for in‐
41 teger keys or ip for using IP addresses as keys. The "string" is
42 the default.
43
44 -v string|int|ip
45 The type of the values. The "string" is the default.
46
47 --dump Do not update the database just dump it to the screen.
48
50 c-icap-mktcb -p keys.tcb -i keys.txt
51 It builds the keys.tcb as a btree Tokyo Cabinet database, using
52 string as data type for keys and values.
53
54 c-icap-mktcb -p keys.tcb --dump
55 Dump the contents of the keys.tcb database
56
58 c-icap(8) c-icap-config(8) c-icap-libicapapi-config(8)
59
61 Tsantilas Christos
62
63
64
65 c_icap_modules master-fd1a1b7 c-icap-mktcb(8)