Fix cache default size and docs
This commit is contained in:
parent
35542e39d7
commit
9066f012a7
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue