aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/allegro/bigcache/hash.go
blob: 5f8ade774daae7fa5beade0c01ecf14e895dfcc4 (plain) (blame)
1
2
3
4
5
6
7
8
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
}