Files
EdgeAdmin/internal/ttlcache/utils.go

8 lines
119 B
Go
Raw Permalink Normal View History

2020-12-02 16:09:23 +08:00
package ttlcache
import "github.com/cespare/xxhash/v2"
2020-12-02 16:09:23 +08:00
func HashKey(key []byte) uint64 {
return xxhash.Sum64(key)
}