Codebase list golang-github-karrick-goswarm / 6e6f329
removed latency; left just stats Karrick S. McDermott 5 years ago
2 changed file(s) with 0 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
4040
4141 // GCTimeout specifies how long the GC should wait for values to unlock.
4242 GCTimeout time.Duration
43
44 // StoreWhenLatencyExceeds specifies the threshold for storing key-value
45 // pairs. When not the default 0 value, if a Lookup for a particular key
46 // takes longer than the specified threshold, the key-value will be stored
47 // in the cache. Otherwise it will not be stored.
48 StoreWhenLatencyExceeds time.Duration
4943 }
5044
5145 const defaultGCTimeout = 10 * time.Second
2222 halt chan struct{}
2323 closeError chan error
2424 gcFlag int32
25
26 // latencyThreshold is optional parameter that, when not the default 0
27 // value, will only store a key-value pair if invocation of the Lookup took
28 // longer than the threshold.
29 latencyThreshold time.Duration
3025
3126 stats Stats
3227 }