Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyPool ¶
type KeyPool[K comparable] interface { Get(key K) string }
KeyPool[K] key pool used for cache keys
func MustKeyPool ¶ added in v0.8.2
func MustKeyPool[K comparable](size int, newFn func(key K) string) KeyPool[K]
MustKeyPool[K] same as NewKeyPool[K] bug panic if occurs error
func NewKeyPool ¶
func NewKeyPool[K comparable](size int, newFn func(key K) string) (KeyPool[K], error)
NewKeyPool[K] create a new KeyPool[K] instance
Click to show internal directories.
Click to hide internal directories.