• Configure cache settings.

    Allows you to adjust cache behavior including maximum number of cached sessions and memory limits. Changes take effect immediately and affect future session creation.

    Parameters

    • options: {
          maxSessions?: number;
          maxMemoryMB?: number;
      }

      Cache configuration options

      • Optional maxSessions?: number
      • Optional maxMemoryMB?: number

    Returns void

    Example

    // Limit cache to 3 sessions
    configureCache({ maxSessions: 3 });

    // Set memory limit to 1GB
    configureCache({ maxMemoryMB: 1024 });

    // Configure both
    configureCache({
    maxSessions: 5,
    maxMemoryMB: 512
    });