mirror of
1
Fork 0
gotosocial/vendor/codeberg.org/gruf/go-cache/v2/hook.go

7 lines
193 B
Go

package cache
// Hook defines a function hook that can be supplied as a callback.
type Hook[Key comparable, Value any] func(key Key, value Value)
func emptyHook[K comparable, V any](K, V) {}