15 lines
168 B
Go
Raw Normal View History

2018-12-19 11:02:07 +01:00
package bigcache
import "time"
type clock interface {
epoch() int64
}
type systemClock struct {
}
func (c systemClock) epoch() int64 {
return time.Now().Unix()
}