MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / getInstance

Method getInstance

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

Source from the content-addressed store, hash-verified

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

Callers 2

getQuotasMethod · 0.45

Calls 1

initializeMethod · 0.45

Tested by

no test coverage detected