github.com/leslie-fei/fastcache@v0.0.0-20240520092641-b7a9eb05711f/util_hash.go (about)

     1  package fastcache
     2  
     3  import "github.com/dolthub/maphash"
     4  
     5  var hasher = maphash.NewHasher[string]()
     6  
     7  var xxHashString = func(key string) uint64 {
     8  	return hasher.Hash(key)
     9  }