mirror of
https://github.com/arnaucube/go-ethereum.git
synced 2026-02-28 14:06:45 +01:00
9 lines
339 B
Go
9 lines
339 B
Go
package bigcache
|
|
|
|
// Hasher is responsible for generating unsigned, 64 bit hash of provided string. Hasher should minimize collisions
|
|
// (generating same hash for different strings) and while performance is also important fast functions are preferable (i.e.
|
|
// you can use FarmHash family).
|
|
type Hasher interface {
|
|
Sum64(string) uint64
|
|
}
|