Interface CacheConfig

interface CacheConfig {
    enabled: boolean;
    type: "memory" | "redis";
    ttl: number;
    redis?: {
        host: string;
        port: number;
        password?: string;
    };
}

Properties

Properties

enabled: boolean
type: "memory" | "redis"
ttl: number
redis?: {
    host: string;
    port: number;
    password?: string;
}

Type declaration

  • host: string
  • port: number
  • Optional password?: string