1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-03-29 20:39:48 +02:00

13 lines
172 B
Go
Raw Normal View History

2020-12-26 15:32:45 +00:00
package cache
import (
"time"
2021-10-12 12:55:53 +01:00
"go-micro.dev/v4/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)
}