int64 -> time.Duration (#1287)

This commit is contained in:
Jake Sanders
2020-03-03 13:15:26 +00:00
committed by GitHub
parent 89ba602e17
commit bc71989e2c
2 changed files with 7 additions and 3 deletions

View File

@@ -2,6 +2,7 @@ package cloudflare
import (
"context"
"time"
"github.com/micro/go-micro/v2/store"
)
@@ -53,7 +54,7 @@ func Namespace(ns string) store.Option {
}
// CacheTTL sets the timeout in nanoseconds of the read/write cache
func CacheTTL(ttl int64) store.Option {
func CacheTTL(ttl time.Duration) store.Option {
return func(o *store.Options) {
if o.Context == nil {
o.Context = context.Background()