interface

RedisOptions

interface RedisOptions

  • autoReconnect?: boolean

    Whether to automatically reconnect

  • connectionTimeout?: number

    Connection timeout in milliseconds

  • enableAutoPipelining?: boolean

    Whether to enable auto-pipelining

  • enableOfflineQueue?: boolean

    Whether to queue commands when disconnected

  • idleTimeout?: number

    Idle timeout in milliseconds. Bun counts it from the last data the server sent. Sending does not reset it. When it fires, Bun closes the connection and runs onclose. Bun does not reconnect on its own, even with autoReconnect: true. Call connect() to reconnect.

  • maxRetries?: number

    Maximum number of reconnection attempts before the client gives up and runs onclose.

  • tls?: boolean | TLSOptions

    TLS options