Home / Class/ NoopCache Class — drizzle-orm Architecture

NoopCache Class — drizzle-orm Architecture

Architecture documentation for the NoopCache class in cache.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  9c7118d9_f56e_9840_88b1_ce7a774969b8["NoopCache"]
  7d233f23_2ad0_1787_1add_b603646ee5a1["cache.ts"]
  9c7118d9_f56e_9840_88b1_ce7a774969b8 -->|defined in| 7d233f23_2ad0_1787_1add_b603646ee5a1
  97639c00_aa31_3350_9c37_afac9415e98c["strategy()"]
  9c7118d9_f56e_9840_88b1_ce7a774969b8 -->|method| 97639c00_aa31_3350_9c37_afac9415e98c
  27d4bf31_5271_3dfd_44cd_51cfaf1f7062["get()"]
  9c7118d9_f56e_9840_88b1_ce7a774969b8 -->|method| 27d4bf31_5271_3dfd_44cd_51cfaf1f7062
  16287c0a_caf4_17e6_fef4_d84e408dedee["put()"]
  9c7118d9_f56e_9840_88b1_ce7a774969b8 -->|method| 16287c0a_caf4_17e6_fef4_d84e408dedee
  486c97d0_85d3_d4da_3ad9_7634cd5436ef["onMutate()"]
  9c7118d9_f56e_9840_88b1_ce7a774969b8 -->|method| 486c97d0_85d3_d4da_3ad9_7634cd5436ef

Relationship Graph

Source Code

drizzle-orm/src/cache/core/cache.ts lines 44–65

export class NoopCache extends Cache {
	override strategy() {
		return 'all' as const;
	}

	static override readonly [entityKind]: string = 'NoopCache';

	override async get(_key: string): Promise<any[] | undefined> {
		return undefined;
	}
	override async put(
		_hashedQuery: string,
		_response: any,
		_tables: string[],
		_config?: any,
	): Promise<void> {
		// noop
	}
	override async onMutate(_params: MutationOption): Promise<void> {
		// noop
	}
}

Domain

Frequently Asked Questions

What is the NoopCache class?
NoopCache is a class in the drizzle-orm codebase, defined in drizzle-orm/src/cache/core/cache.ts.
Where is NoopCache defined?
NoopCache is defined in drizzle-orm/src/cache/core/cache.ts at line 44.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free