[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 10 ] [ 11 ] [ 12 ] [ 13 ] [ 14 ] [ 15 ] [ 16 ] [ A ] [ B ] [ 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.

-nocache

Do not save new objects to cache

-nofail

turn off URL filter

-nolog

turn off logging

-notrace

turn off console tracing messages

-online

disable offline hooks

-cookies

disable cookie filter

-fastrefresh

use standard web refresh policy

-killunref

Delete any unreferenced files in cache. See also Smart Cache maintenance, Section 5.5.

-p <port number>

Run SC on alternate port number.

-ui_port <port number>

Run SC UI on alternate port number. Use 0 to disable it.

-import <Directory>

Import files from directory into Smart Cache, see Importing files to Smart Cache, Section 7.6.

-importcache <Directory>

Import files from another Smart Cache, see Importing files to Smart Cache, Section 7.6. 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.

-ftp_proxy <Hostname> <port>

Use specified proxy server for FTP protocol.

-gc [minutes]

Running garbage collection, Section 5.4 and exit. If minutes are used, Smart Cache do not exits after GC is completed, but waits XX minutes and GC is repeated. You can use also strings instead of minutes (8h,1d,..).

-fakegc

Simulate Running garbage collection, Section 5.4 and exit.

-export, -fullexport, -lruexport

See Exporting data from Smart Cache, Section 7.7.

-repair

Same as running recursive repair on cachedir. See Smart Cache repair utility, Chapter 11.

-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. It is a fast operation. Also good for paranoid users, can not hurt any data.

-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 ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 10 ] [ 11 ] [ 12 ] [ 13 ] [ 14 ] [ 15 ] [ 16 ] [ A ] [ B ] [ next ]


Smart Cache Manual

0.94

Radim Kolar hsn_nospam_at.sendmail.dot.cz