ExponentialBackoff

Attributes
Methods
class zcached.ExponentialBackoff(initial, multiplier, max_value)[source]

Bases: object

Implementation of the exponential backoff algorithm.

Parameters:
  • initial (float) – The initial value for the exponential.

  • multiplier (float) – Value to multiply initial value.

  • max_value (float) – The maximum value of the exponential.

current

The current value of the exponential.

Type:

float

property next: float

Next value of exponential.

reset()[source]

Method to reset the exponential backoff.

Return type:

None

property total: float

Total value of exponential.