Home / File/ types.ts — drizzle-orm Source File

types.ts — drizzle-orm Source File

Architecture documentation for types.ts, a typescript file in the drizzle-orm codebase. 0 imports, 2 dependents.

File typescript DrizzleORM 2 dependents

Entity Profile

Dependency Diagram

graph LR
  ce81fb60_5bfe_1801_89bb_8ae88028a0a7["types.ts"]
  7d233f23_2ad0_1787_1add_b603646ee5a1["cache.ts"]
  7d233f23_2ad0_1787_1add_b603646ee5a1 --> ce81fb60_5bfe_1801_89bb_8ae88028a0a7
  44f92f64_5c49_a0a8_3c18_2e6651af97f8["cache.ts"]
  44f92f64_5c49_a0a8_3c18_2e6651af97f8 --> ce81fb60_5bfe_1801_89bb_8ae88028a0a7
  style ce81fb60_5bfe_1801_89bb_8ae88028a0a7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

export type CacheConfig = {
	/**
	 * expire time, in seconds (a positive integer)
	 */
	ex?: number;
	/**
	 * expire time, in milliseconds (a positive integer).
	 */
	px?: number;
	/**
	 * Unix time at which the key will expire, in seconds (a positive integer).
	 */
	exat?: number;
	/**
	 * Unix time at which the key will expire, in milliseconds (a positive integer)
	 */
	pxat?: number;
	/**
	 * Retain the time to live associated with the key.
	 */
	keepTtl?: boolean;
	/**
	 * Set an expiration (TTL or time to live) on one or more fields of a given hash key.
	 * Used for HEXPIRE command
	 */
	hexOptions?: 'NX' | 'nx' | 'XX' | 'xx' | 'GT' | 'gt' | 'LT' | 'lt';
};

export type WithCacheConfig = { enable: boolean; config?: CacheConfig; tag?: string; autoInvalidate?: boolean };

Domain

Frequently Asked Questions

What does types.ts do?
types.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the DrizzleORM domain.
What files import types.ts?
types.ts is imported by 2 file(s): cache.ts, cache.ts.
Where is types.ts in the architecture?
types.ts is located at drizzle-orm/src/cache/core/types.ts (domain: DrizzleORM, directory: drizzle-orm/src/cache/core).

Analyze Your Own Codebase

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

Try Supermodel Free