[ previous ]
[ Abstract ]
[ Copyright Notice ]
[ Contents ]
[ next ]
Smart Cache Manual
Chapter 8 Smart Cache command line switches
Smart Cache has also some command line switches, some of them are documented
here and some of them has aliases. See scache.java
for more
detailed info. These options overrides configuration files.
- -ro
-
Read-Only. Do not write anything to SC data directory.
- -cfgdir <Directory>
-
Read *.cnf files from this directory, not from current dir.
- -killunref
-
Delete any unreferenced files in cache. See also Smart Cache maintenance, Section 5.5.
- -p <port number>
-
Run SC on alternate port number.
- -import <Directory>
-
Import files from directory into Smart Cache, see Importing files to Smart Cache, Section
7.11.
- -importcache <Directory>
-
Import files from another Smart Cache, see Importing files to Smart Cache, Section
7.11. CAUTION: files will be moved in (if possible, if
not it will not be deleted), so backup of original cache may be wise.
- -cachedir <Directory> [swap_level1_dirs] [swap_level2_dirs]
-
Use alternate directory for caching files.
- -http_proxy <Hostname> <port>
-
Use specified proxy server for HTTP protocol.
- -gc
-
Running garbage collection, Section 5.4
and exit.
- -fakegc
-
Simulate Running garbage collection, Section
5.4 and exit.
- -export, -fullexport, -lruexport
-
See Exporting data from Smart Cache,
Section 7.16.
- -repair
-
Same as running recursive repair on cachedir. See Smart Cache repair utility, Chapter 9.
- -version
-
Print Smart Cache version to standard output and exit.
- -rebalance
-
Rehash directory structure. Run it after changing swapdir levels or when
moving by hand some server directories inside cache (If your brain has not
CRC32 built-in you probably move it into wrong subdirectory). It is a fast
operation. Also good for paranoid users.
- -local
-
Avoid DNS lookups and do not connect to ANY server. Including
server running on the same machine as Smart Cache.
- -direct
-
Bypass http_proxy and make direct connection to target server.
- -help
-
Prints short command line help summary.
[ previous ]
[ Abstract ]
[ Copyright Notice ]
[ Contents ]
[ next ]
Smart Cache Manual
0.49.1
Radim Kolar hsn@cybermail.net