Instantiates a new AutoRefresh Cache that syncs items in batches.
(name string, createBatches CreateBatchesFunc, syncCb SyncFunc, syncRateLimiter workqueue.TypedRateLimiter[*Batch], resyncPeriod time.Duration, parallelizm, size uint, scope promutils.Scope)
| 405 | |
| 406 | // Instantiates a new AutoRefresh Cache that syncs items in batches. |
| 407 | func NewAutoRefreshBatchedCache(name string, createBatches CreateBatchesFunc, syncCb SyncFunc, syncRateLimiter workqueue.TypedRateLimiter[*Batch], |
| 408 | resyncPeriod time.Duration, parallelizm, size uint, scope promutils.Scope) (AutoRefresh, error) { |
| 409 | return NewInMemoryAutoRefresh(name, syncCb, syncRateLimiter, resyncPeriod, parallelizm, size, scope, WithCreateBatchesFunc(createBatches)) |
| 410 | } |
| 411 | |
| 412 | // Instantiates a new AutoRefresh Cache that syncs items periodically. |
| 413 | func NewAutoRefreshCache(name string, syncCb SyncFunc, syncRateLimiter workqueue.TypedRateLimiter[*Batch], resyncPeriod time.Duration, |
no test coverage detected