-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Added max_item_size to Memcached client #2304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
54a5e54
8942f04
3be38ab
cb222e1
3163aca
70761af
e37add1
8fa633a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,7 @@ import ( | |
| "github.com/prometheus/client_golang/prometheus" | ||
| "github.com/prometheus/client_golang/prometheus/promauto" | ||
| "github.com/prometheus/prometheus/pkg/labels" | ||
| "github.com/thanos-io/thanos/pkg/model" | ||
| "gopkg.in/yaml.v2" | ||
| ) | ||
|
|
||
|
|
@@ -52,9 +53,9 @@ type InMemoryIndexCache struct { | |
| // InMemoryIndexCacheConfig holds the in-memory index cache config. | ||
| type InMemoryIndexCacheConfig struct { | ||
| // MaxSize represents overall maximum number of bytes cache can contain. | ||
| MaxSize Bytes `yaml:"max_size"` | ||
| MaxSize model.Bytes `yaml:"max_size"` | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sorry for being late to the party, but why we are not using the same thing as Prometheus use, so
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| // MaxItemSize represents maximum size of single item. | ||
| MaxItemSize Bytes `yaml:"max_item_size"` | ||
| MaxItemSize model.Bytes `yaml:"max_item_size"` | ||
| } | ||
|
|
||
| // parseInMemoryIndexCacheConfig unmarshals a buffer into a InMemoryIndexCacheConfig with default values. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.