put() — drizzle-orm Function Reference
Architecture documentation for the put() function in sqlite-common-cache.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD e8b0cfeb_03aa_ee48_7054_24caf684e6fe["put()"] 271b550c_f48f_806e_3db7_b135393b905d["TestGlobalCache"] e8b0cfeb_03aa_ee48_7054_24caf684e6fe -->|defined in| 271b550c_f48f_806e_3db7_b135393b905d style e8b0cfeb_03aa_ee48_7054_24caf684e6fe fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
integration-tests/tests/sqlite/sqlite-common-cache.ts lines 25–41
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
Source
Frequently Asked Questions
What does put() do?
put() is a function in the drizzle-orm codebase, defined in integration-tests/tests/sqlite/sqlite-common-cache.ts.
Where is put() defined?
put() is defined in integration-tests/tests/sqlite/sqlite-common-cache.ts at line 25.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free