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