Versions in this module Expand all Collapse all v1 v1.1.2 Aug 14, 2026 v1.1.1 Jul 30, 2026 Changes in this version + var ErrUnresolvedSizes = errors.New("capacity eviction requires every active storage location size") + type Options struct + Config config.CacheConfig + DB *ent.Client + Lifecycle *storagelifecycle.Service + Logger *zerolog.Logger + Storage storage.Adapter + type Result struct + BudgetBytes int64 + Candidates int + ClaimedBytes int64 + ClaimedLocations int + Constrained bool + Mode string + PendingCreditBytes int64 + PinnedLocations int + StaleLocations int + TargetBytes int64 + UnresolvedLocations int + UsageAfterBytes int64 + UsageBeforeBytes int64 + type Service struct + func NewService(options Options) *Service + func (s *Service) Enforce(ctx context.Context) (Result, error) + func (s *Service) Run(ctx context.Context, ready <-chan struct{}) + func (s *Service) Trigger()