blob: 45ef8c92e5aff412ea42299494bbeb8f5da8bb5c (
plain)
1
2
3
4
5
6
|
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) {}
|