You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package bigcache
|
|
|
|
import "time"
|
|
|
|
type clock interface {
|
|
Epoch() int64
|
|
}
|
|
|
|
type systemClock struct {
|
|
}
|
|
|
|
func (c systemClock) Epoch() int64 {
|
|
return time.Now().Unix()
|
|
}
|