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

toInternalConfig() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  6b1b6075_1cea_b0cb_153b_1fcd11a7bf16["toInternalConfig()"]
  418ebf5b_65ad_1cd4_79ba_2c99e874ea49["UpstashCache"]
  6b1b6075_1cea_b0cb_153b_1fcd11a7bf16 -->|defined in| 418ebf5b_65ad_1cd4_79ba_2c99e874ea49
  3b21c2b9_2aa3_2033_cf1b_1f421845fa80["constructor()"]
  3b21c2b9_2aa3_2033_cf1b_1f421845fa80 -->|calls| 6b1b6075_1cea_b0cb_153b_1fcd11a7bf16
  style 6b1b6075_1cea_b0cb_153b_1fcd11a7bf16 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/cache/upstash/cache.ts lines 116–125

	private toInternalConfig(config?: CacheConfig): { seconds: number; hexOptions?: ExpireOptions } {
		return config
			? {
				seconds: config.ex!,
				hexOptions: config.hexOptions,
			}
			: {
				seconds: 1,
			};
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does toInternalConfig() do?
toInternalConfig() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/cache/upstash/cache.ts.
Where is toInternalConfig() defined?
toInternalConfig() is defined in drizzle-orm/src/cache/upstash/cache.ts at line 116.
What calls toInternalConfig()?
toInternalConfig() is called by 1 function(s): constructor.

Analyze Your Own Codebase

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

Try Supermodel Free