mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
build(deps): fix breaking chages.
Signed-off-by: junya koyama <arukiidou@yahoo.co.jp>
This commit is contained in:
parent
8dae42828d
commit
54fe9f3d04
|
@ -14,7 +14,7 @@
|
||||||
import { FetchFn } from './index';
|
import { FetchFn } from './index';
|
||||||
import { Matcher } from '../types';
|
import { Matcher } from '../types';
|
||||||
import { labelMatchersToString } from '../parser';
|
import { labelMatchersToString } from '../parser';
|
||||||
import LRUCache from 'lru-cache';
|
import { LRUCache } from 'lru-cache';
|
||||||
|
|
||||||
export interface MetricMetadata {
|
export interface MetricMetadata {
|
||||||
type: string;
|
type: string;
|
||||||
|
@ -292,7 +292,10 @@ class Cache {
|
||||||
private flags: Record<string, string>;
|
private flags: Record<string, string>;
|
||||||
|
|
||||||
constructor(config?: CacheConfig) {
|
constructor(config?: CacheConfig) {
|
||||||
const maxAge: LRUCache.LimitedByTTL = { ttl: config && config.maxAge ? config.maxAge : 5 * 60 * 1000 };
|
const maxAge = {
|
||||||
|
ttl: config && config.maxAge ? config.maxAge : 5 * 60 * 1000,
|
||||||
|
ttlAutopurge: false,
|
||||||
|
};
|
||||||
this.completeAssociation = new LRUCache<string, Map<string, Set<string>>>(maxAge);
|
this.completeAssociation = new LRUCache<string, Map<string, Set<string>>>(maxAge);
|
||||||
this.metricMetadata = {};
|
this.metricMetadata = {};
|
||||||
this.labelValues = new LRUCache<string, string[]>(maxAge);
|
this.labelValues = new LRUCache<string, string[]>(maxAge);
|
||||||
|
|
Loading…
Reference in a new issue