1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-04-17 11:06:19 +02:00

13 lines
184 B
Go
Raw Normal View History

2020-12-26 15:32:45 +00:00
package cache
import (
"time"
2021-01-20 21:01:10 +00:00
"github.com/asim/go-micro/v3/registry/cache"
2020-12-26 15:32:45 +00:00
)
// WithTTL sets the cache TTL
func WithTTL(t time.Duration) cache.Option {
return cache.WithTTL(t)
}