MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / getInstance

Method getInstance

packages/server/src/UsageCacheManager.ts:30–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 private static instance: UsageCacheManager
29
30 public static async getInstance(): Promise<UsageCacheManager> {
31 if (!UsageCacheManager.instance) {
32 UsageCacheManager.instance = new UsageCacheManager()
33 await UsageCacheManager.instance.initialize()
34 }
35 return UsageCacheManager.instance
36 }
37
38 private async initialize(): Promise<void> {
39 if (process.env.MODE === MODE.QUEUE) {

Callers 2

getQuotasMethod · 0.45

Calls 1

initializeMethod · 0.45

Tested by

no test coverage detected