Documentation ¶
Overview ¶
Package gache provides implementation of cache using gache
Package gache provides implementation of cache using gache
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option[V any] func(*cache[V])
Option represents the functional option for cache.
func WithExpireCheckDuration ¶
WithExpireCheckDuration returns Option after set expireCheckDur when dur is not 0.
func WithExpireDuration ¶
WithExpireDuration returns Option after set expireDur when dur is not 0.
func WithExpiredHook ¶
WithExpiredHook returns Option after set expiredHook when f is not nil.
Click to show internal directories.
Click to hide internal directories.