Compare commits
1 commit
4474f052de
...
bfa9ae7937
Author | SHA1 | Date | |
---|---|---|---|
bfa9ae7937 |
2 changed files with 5 additions and 5 deletions
|
@ -343,10 +343,10 @@ cache:
|
||||||
lifetime: 1m
|
lifetime: 1m
|
||||||
```
|
```
|
||||||
|
|
||||||
| Parameter | Type | Default value | Description |
|
| Parameter | Type | Default value | Description |
|
||||||
|-----------|-----------------------------------|---------------------------------|-------------------------------------------------------------|
|
|-----------|-----------------------------------|---------------------------------|---------------------------------------------------------------------------|
|
||||||
| `buckets` | [Cache config](#cache-subsection) | `lifetime: 60s`<br>`size: 1000` | Cache which contains mapping of bucket name to bucket info. |
|
| `buckets` | [Cache config](#cache-subsection) | `lifetime: 60s`<br>`size: 1000` | Cache which contains mapping of bucket name to bucket info. |
|
||||||
| `netmap` | [Cache config](#cache-subsection) | `lifetime: 1m` | Cache which stores netmap. |
|
| `netmap` | [Cache config](#cache-subsection) | `lifetime: 1m` | Cache which stores netmap. `netmap.size` isn't applicable for this cache. |
|
||||||
|
|
||||||
|
|
||||||
#### `cache` subsection
|
#### `cache` subsection
|
||||||
|
|
2
internal/cache/netmap.go
vendored
2
internal/cache/netmap.go
vendored
|
@ -25,7 +25,7 @@ type (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
DefaultNetmapCacheLifetime = 1 * time.Minute
|
DefaultNetmapCacheLifetime = time.Minute
|
||||||
netmapCacheSize = 1
|
netmapCacheSize = 1
|
||||||
netmapKey = "netmap"
|
netmapKey = "netmap"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue