Navigation Menu

Skip to content

Commit

Permalink
doc: document --cache-base-path
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 28, 2017
1 parent e736b5c commit 00258df
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/source/news.rst
Expand Up @@ -33,8 +33,8 @@ Improvements
* ``grn_persistent_cache_open()``
* ``grn_cache_default_open()``

* [:doc:`/reference/executables/groonga`] Supported
``--cache-base-path`` option to use persistent cache.
* [:doc:`/reference/executables/groonga`][:option:`--cache-base-path
<path>`] Added a new option to use persistent cache.

* [:doc:`/reference/executables/groonga-httpd`] Supported
``groonga_cache_base_path`` option to use persistent cache.
Expand Down
22 changes: 22 additions & 0 deletions doc/source/reference/executables/groonga.rst
Expand Up @@ -327,6 +327,28 @@ Options

.. seealso:: :doc:`/reference/command/request_timeout`

.. cmdoption:: --cache-base-path <path>

.. versionadded:: 7.0.2

Specifies the base path for cache. It enables persistent cache
feature.

You can get the following merits by persistent cache feature:

* You can reuse cache after ``groonga`` process is restarted. You
don't need to warm up your cache each restart.

* You can share cache with multiple ``groonga`` processes.

You must specify the base path on memory file system. If you
specify the base path on disk, your cache will be slow. It's not
make sense.

The default is nothing. It means that persistent cache is
disabled. On memory cache is used.


Command line parameters
-----------------------

Expand Down

0 comments on commit 00258df

Please sign in to comment.