Skip to content

Commit f361c81

Browse files
Rename profiling cache to generic fifo cache
1 parent 5e9300b commit f361c81

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import type { Event } from '@sentry/types';
2-
import { makeProfilingCache } from '@sentry/utils';
2+
import { makeFifoCache } from '@sentry/utils';
33

4-
export const PROFILING_EVENT_CACHE = makeProfilingCache<string, Event>(20);
4+
export const PROFILING_EVENT_CACHE = makeFifoCache<string, Event>(20);

packages/utils/src/cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Creates a cache that evicts keys in fifo order
33
* @param size {Number}
44
*/
5-
export function makeProfilingCache<Key extends string, Value>(
5+
export function makeFifoCache<Key extends string, Value>(
66
size: number,
77
): {
88
get: (key: Key) => Value | undefined;

0 commit comments

Comments
 (0)