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