MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / constructor

Function constructor

lib/cache/base.ts:57–65  ·  view source on GitHub ↗
(cacheName: string, details: string, type: string)

Source from the content-addressed store, hash-verified

55 protected countersEnabled: boolean;
56
57 protected constructor(cacheName: string, details: string, type: string) {
58 this.cacheName = cacheName;
59 this.details = details;
60 this.type = type;
61 this.gets = 0;
62 this.hits = 0;
63 this.puts = 0;
64 this.countersEnabled = true;
65 }
66
67 stats(): CacheStats {
68 return {hits: this.hits, puts: this.puts, gets: this.gets};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected