Files
EdgeNode/internal/utils/ttlcache/utils.go
2024-05-08 11:10:56 +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)
}