aboutsummaryrefslogtreecommitdiffstats
path: root/utils.go
diff options
context:
space:
mode:
authorMarc Pervaz Boocha <marcpervaz@qburst.com>2025-02-19 18:28:03 +0530
committerMarc Pervaz Boocha <marcpervaz@qburst.com>2025-02-19 18:28:03 +0530
commit893b439ccb9511ed4a5595bdf8048bb637da1200 (patch)
tree5885be596e283a719166ba6af9339c3095bc471d /utils.go
parentBootstraped code for housekeeping operations (diff)
downloadcache-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.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils.go b/utils.go
index 9d1408e..dd8be5f 100644
--- a/utils.go
+++ b/utils.go
@@ -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 {