diff options
author | Marc Pervaz Boocha <marcpervaz@qburst.com> | 2025-02-19 18:28:03 +0530 |
---|---|---|
committer | Marc Pervaz Boocha <marcpervaz@qburst.com> | 2025-02-19 18:28:03 +0530 |
commit | 893b439ccb9511ed4a5595bdf8048bb637da1200 (patch) | |
tree | 5885be596e283a719166ba6af9339c3095bc471d /utils.go | |
parent | Bootstraped code for housekeeping operations (diff) | |
download | cache-893b439ccb9511ed4a5595bdf8048bb637da1200.tar cache-893b439ccb9511ed4a5595bdf8048bb637da1200.tar.gz cache-893b439ccb9511ed4a5595bdf8048bb637da1200.tar.bz2 cache-893b439ccb9511ed4a5595bdf8048bb637da1200.tar.lz cache-893b439ccb9511ed4a5595bdf8048bb637da1200.tar.xz cache-893b439ccb9511ed4a5595bdf8048bb637da1200.tar.zst cache-893b439ccb9511ed4a5595bdf8048bb637da1200.zip |
Added Eviction and Options setup
Diffstat (limited to '')
-rw-r--r-- | utils.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -22,6 +22,12 @@ func newPauseTimer(d time.Duration) *pauseTimer { return ret } +func newPauseTimerStopped(d time.Duration) *pauseTimer { + ret := newPauseTimer(d) + ret.Stop() + return ret +} + func (t *pauseTimer) Reset(d time.Duration) { t.duration = d if t.duration == 0 { |