Skip to content

Commit 59ab3a9

Browse files
committed
feat(endpoint-cache): add has operation
1 parent bc9f054 commit 59ab3a9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/endpoint-cache/src/EndpointCache.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ export class EndpointCache {
5252
this.cache.set(key, []);
5353
}
5454

55+
has(key: string) {
56+
return this.cache.has(key);
57+
}
58+
5559
clear() {
5660
this.cache.clear();
5761
}

0 commit comments

Comments
 (0)