package
0.0.0-20240621141759-f9509b098ee8
Repository: https://github.com/datadog/attache.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
NewPercentageRemainingRefreshAt is a basic RefreshAtFunc for calculating the time.Time at which to fetch a ExpiringValue based on the remaining percentage of the lifetime of a ExpiringValue.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
If a value is not renewed prior to its expiration, the maintainer uses a linear retry with a default delay of 10s.
No description provided by the author

# Structs

No description provided by the author
Maintainer is a Refresh-Ahead Cache used to ensure that a ExpiringValue is kept valid for a given RefreshAtFunc.

# Interfaces

No description provided by the author

# Type aliases

CacheUpdateHandler is called every time the cached value is updated if requested as an option The value provided is the ExpiringValue construct which is itself containing the value within the cache The handler must not modify the value provided.
ErrorHandler is called every time an error is returned when attempting to update the cached value.
RefreshAtFunc returns the time.Time to re-fetch the ExpiringValue.