Repository: prometheus/prometheus (language: go)

Issue:
lru cache throws a warning because the ttlAutopurge option is set to false in codemirror-promql
### What did you do?

Import  `@prometheus-io/codemirror-promql` in [Perses](https://github.com/perses/perses). 

### What did you expect to see?

No warning as the `ttlAutopurge` should be set to `true` when a `ttl` is set. According to the configuration docs https://github.com/isaacs/node-lru-cache/blob/65c9971e3fef123ff0f17d67add53b2d99b461b0/src/index.ts#L698

### What did you see instead? Under which circumstances?

We see the following warning when running the react app:

```
["[LRU_CACHE_UNBOUNDED] UnboundedCacheWarning: TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption."]
```

### System information

_No response_

### Prometheus version

```text

```

### Prometheus configuration file

```yaml

```

### Alertmanager version

```text

```

### Alertmanager configuration file

```yaml

```

### Logs

```text

```


Discussion / hints:

Fix patch:
diff --git a/web/ui/module/codemirror-promql/src/client/prometheus.ts b/web/ui/module/codemirror-promql/src/client/prometheus.ts
index 72e34d4ec59..7fce7f1a178 100644
--- a/web/ui/module/codemirror-promql/src/client/prometheus.ts
+++ b/web/ui/module/codemirror-promql/src/client/prometheus.ts
@@ -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 = {};


Test patch: