diff options
Diffstat (limited to 'vendor/codeberg.org/gruf/go-cache/v2/hook.go')
-rw-r--r-- | vendor/codeberg.org/gruf/go-cache/v2/hook.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/codeberg.org/gruf/go-cache/v2/hook.go b/vendor/codeberg.org/gruf/go-cache/v2/hook.go new file mode 100644 index 000000000..45ef8c92e --- /dev/null +++ b/vendor/codeberg.org/gruf/go-cache/v2/hook.go @@ -0,0 +1,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) {} |