1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-24 22:26:54 +02:00
Files
go-micro/plugins/registry/cache/options.go
2021-10-12 12:55:53 +01:00

13 lines
172 B
Go

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