MCPcopy
hub / github.com/upper/db / Hashable

Interface Hashable

internal/cache/interface.go:26–28  ·  view source on GitHub ↗

Hashable types must implement a method that returns a key. This key will be associated with a cached value.

Source from the content-addressed store, hash-verified

24// Hashable types must implement a method that returns a key. This key will be
25// associated with a cached value.
26type Hashable interface {
27 Hash() uint64
28}
29
30// HasOnEvict type is (optionally) implemented by cache objects to clean after
31// themselves.

Callers 8

ReadRawMethod · 0.65
WriteMethod · 0.65
addToHashFunction · 0.65
BenchmarkColumnsHashFunction · 0.65
BenchmarkTableHashFunction · 0.65
BenchmarkSortColumnsHashFunction · 0.65
BenchmarkGroupByHashFunction · 0.65

Implementers 15

hasherinternal/cache/hash.go
cacheableTinternal/cache/cache_test.go
Whereinternal/sqladapter/exql/where.go
ValueGroupsinternal/sqladapter/exql/value.go
Valuesinternal/sqladapter/exql/value.go
Valueinternal/sqladapter/exql/value.go
Statementinternal/sqladapter/exql/statement.go
Databaseinternal/sqladapter/exql/database.go
Columninternal/sqladapter/exql/column.go
Tableinternal/sqladapter/exql/table.go
Returninginternal/sqladapter/exql/returning.go
Rawinternal/sqladapter/exql/raw.go

Calls

no outgoing calls

Tested by

no test coverage detected