Documentation ¶
Overview ¶
Package cache provides implementation of cache
Package cache provides implementation of cache
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 cprrect param.
func WithExpireDuration ¶
WithExpireDuration returns Option after set expireDur when dur is cprrect param.
func WithExpiredHook ¶
WithExpiredHook returns Option after set expiredHook when f is not nil.
Click to show internal directories.
Click to hide internal directories.