1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-12 08:23:58 +02:00
go-micro/plugins/registry/cache/options.go
2021-01-20 21:01:10 +00:00

13 lines
184 B
Go

package cache
import (
"time"
"github.com/asim/go-micro/v3/registry/cache"
)
// WithTTL sets the cache TTL
func WithTTL(t time.Duration) cache.Option {
return cache.WithTTL(t)
}