Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheWrapper ¶
func CacheWrapper[T comparable, R any](fn func(T) R) func(T) R
CacheWrapper is a non-thread-safe caching decorator.
func SafeCacheWrapper ¶
func SafeCacheWrapper[T comparable, R any](fn func(T) R) func(T) R
SafeCacheWrapper is a thread-safe caching decorator.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.