ActiveConnectionGauge

public class ActiveConnectionGauge

A specialized wrapper class for working with Metrics.Gauge objects for the purpose of an incrementing or decrementing count of active Redis connections.

  • Increments the current count by the amount specified.

    Declaration

    Swift

    public func increment(by amount: Int = 1)

    Parameters

    amount

    The number to increase the current count by. Default is 1.

  • Decrements the current count by the amount specified.

    Declaration

    Swift

    public func decrement(by amount: Int = 1)

    Parameters

    amount

    The number to decrease the current count by. Default is 1.