Fix cache default size and docs

This commit is contained in:
Jeff Mitchell 2016-11-01 10:24:35 -04:00 committed by GitHub
parent 35542e39d7
commit 9066f012a7
2 changed files with 4 additions and 3 deletions

View file

@ -9,7 +9,7 @@ import (
const (
// DefaultCacheSize is used if no cache size is specified for NewCache
DefaultCacheSize = 1024 * 1024
DefaultCacheSize = 32 * 1024
)
// Cache is used to wrap an underlying physical backend

View file

@ -55,8 +55,9 @@ sending a SIGHUP to the server process. These are denoted below.
inner syntax is below.
* `cache_size` (optional) - If set, the size of the read cache used
by the physical storage subsystem will be set to this value, in bytes.
Defaults to 1048576 (1MB).
by the physical storage subsystem will be set to this value. The
value is in number of entries so the total cache size is dependent
on the entries being stored. Defaults to 32k entries.
* `disable_cache` (optional) - A boolean. If true, this will disable all caches
within Vault, including the read cache used by the physical storage