int64 -> time.Duration (#1287)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user