...
Package cache
Overview ▹
Index ▹
Variables ¶
var ( DefaultTTL = time.Minute )
func NewSelector ¶
func NewSelector(opts ...selector.Option) selector.Selector
func TTL ¶
func TTL(t time.Duration) selector.Option
Set the cache ttl
var ( DefaultTTL = time.Minute )
func NewSelector(opts ...selector.Option) selector.Selector
func TTL(t time.Duration) selector.Option
Set the cache ttl