mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-21 03:16:00 -08:00
set ttlAutopurge to true as ttl is set for codemirror prometheus client cache (#16024)
Signed-off-by: Gabriel Bernal <gbernal@redhat.com>
This commit is contained in:
parent
a944fa1e7a
commit
a323c23332
|
@ -294,7 +294,7 @@ class Cache {
|
|||
constructor(config?: CacheConfig) {
|
||||
const maxAge = {
|
||||
ttl: config && config.maxAge ? config.maxAge : 5 * 60 * 1000,
|
||||
ttlAutopurge: false,
|
||||
ttlAutopurge: true,
|
||||
};
|
||||
this.completeAssociation = new LRUCache<string, Map<string, Set<string>>>(maxAge);
|
||||
this.metricMetadata = {};
|
||||
|
|
Loading…
Reference in a new issue