Versions in this module Expand all Collapse all v0 v0.3.0 Oct 23, 2024 v0.2.1 Oct 23, 2024 Changes in this version + type CBConfig struct + CloseFailureRatioThreshold float64 + CloseMinRequests int + HalfOpenMaxRequests int + OpenTimeoutSec int + WhitelistedErrors []error + type CallOption func(option *callOptions[any]) + func WithCacheTTL[T int | int32 | int64](TTLSec T) CallOption + func WithTimeoutDeadline[T int | int64](timeoutMs T) CallOption + type Config struct + CBConfig *CBConfig + CacheConfig *InMemCacheConfig + CallTimeout int64 + Singleflight bool + type InMemCacheConfig struct + Buckets int + GetsPerPromote int + ItemsToPrune int + MaxSize int + TTLSec int + type Wrapper struct + func New(cfg Config) *Wrapper + func (cw *Wrapper) Call(ctx context.Context, key string, ...) (interface{}, error)