Files
EdgeNode/internal/ttlcache/utils.go
2024-04-18 18:25:33 +08:00

12 lines
199 B
Go

package ttlcache
import "github.com/cespare/xxhash/v2"
func HashKeyBytes(key []byte) uint64 {
return xxhash.Sum64(key)
}
func HashKeyString(key string) uint64 {
return xxhash.Sum64String(key)
}