Files
EdgeNode/internal/ttlcache/utils.go

8 lines
116 B
Go
Raw Normal View History

2020-11-21 21:43:03 +08:00
package ttlcache
2020-11-21 22:29:57 +08:00
import "github.com/cespare/xxhash"
func HashKey(key []byte) uint64 {
2020-11-21 22:29:57 +08:00
return xxhash.Sum64(key)
}