Uses of Class
codes.grow.packages.vault.secrets.SecretCache.Options.Builder
Packages that use SecretCache.Options.Builder
-
Uses of SecretCache.Options.Builder in codes.grow.packages.vault.secrets
Methods in codes.grow.packages.vault.secrets that return SecretCache.Options.BuilderModifier and TypeMethodDescriptionstatic SecretCache.Options.BuilderSecretCache.Options.builder()Starts a builder with the defaults (ttl 60 s, 1000 entries, refresh ahead at 0.8, no stale serving).Injects the clock (tests).Sets the executor of background refreshes (tests may passRunnable::run).SecretCache.Options.Builder.maxEntries(int maxEntries) Sets the LRU limit.SecretCache.Options.Builder.refreshAheadFactor(double factor) Sets the refresh-ahead factor; 1 disables refresh-ahead.SecretCache.Options.Builder.staleWhileRevalidate(Duration window) Sets the stale-while-revalidate window.Sets the time to live.