Home / Function/ put() — drizzle-orm Function Reference

put() — drizzle-orm Function Reference

Architecture documentation for the put() function in singlestore-cache.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  f05ed177_b65c_201b_b57c_661da19ad632["put()"]
  58fc1702_28d9_32ba_a090_d4044bb1b841["TestGlobalCache"]
  f05ed177_b65c_201b_b57c_661da19ad632 -->|defined in| 58fc1702_28d9_32ba_a090_d4044bb1b841
  style f05ed177_b65c_201b_b57c_661da19ad632 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

integration-tests/tests/singlestore/singlestore-cache.ts lines 35–51

	override async put(
		key: string,
		response: any,
		tables: string[],
		isTag: boolean,
		config?: CacheConfig,
	): Promise<void> {
		await this.kv.set(key, response, config ? config.ex : this.globalTtl);
		for (const table of tables) {
			const keys = this.usedTablesPerKey[table];
			if (keys === undefined) {
				this.usedTablesPerKey[table] = [key];
			} else {
				keys.push(key);
			}
		}
	}

Domain

Subdomains

Frequently Asked Questions

What does put() do?
put() is a function in the drizzle-orm codebase, defined in integration-tests/tests/singlestore/singlestore-cache.ts.
Where is put() defined?
put() is defined in integration-tests/tests/singlestore/singlestore-cache.ts at line 35.

Analyze Your Own Codebase

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

Try Supermodel Free