github.com/geph-official/geph2@v0.22.6-0.20210211030601-f527cb59b0df/cmd/geph-exit/sesscounter.go (about) 1 package main 2 3 import ( 4 "time" 5 6 "github.com/patrickmn/go-cache" 7 ) 8 9 // session counter by using a forgetful cache. counting the elements gives us the session count. 10 var freeSessCounter = cache.New(time.Minute*10, time.Second*10) 11 var paidSessCounter = cache.New(time.Minute*10, time.Second*10)