File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed
providers/go-feature-flag/pkg Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,9 @@ const defaultCacheSize = 10000
1212const defaultCacheTTL = 1 * time .Minute
1313
1414type Cache struct {
15- internalCache gcache.Cache
16- maxEventInMemory int64
17- ttl time.Duration
18- disabled bool
15+ internalCache gcache.Cache
16+ ttl time.Duration
17+ disabled bool
1918}
2019
2120// NewCache creates a new cache with the given options.
Original file line number Diff line number Diff line change @@ -42,13 +42,6 @@ type ProviderOptions struct {
4242 // default: 1 minute
4343 DataFlushInterval time.Duration
4444
45- // DataMaxEventInMemory (optional) maximum number of item we keep in memory before calling the API.
46- // If this number is reached before the DataFlushInterval we will call the API.
47- // The parameter is used only if the cache is enabled, otherwise the collection of the data is done directly
48- // when calling the evaluation API.
49- // default: 500
50- DataMaxEventInMemory int64
51-
5245 // DataCollectorMaxEventStored (optional) maximum number of event we keep in memory, if we reach this number it means
5346 // that we will start to drop the new events. This is a security to avoid a memory leak.
5447 // default: 100000
You can’t perform that action at this time.
0 commit comments