Add rcache => cache

This commit is contained in:
Asim Aslam
2019-05-31 00:22:43 +01:00
parent ddd08377e6
commit a353c83f47
3 changed files with 472 additions and 0 deletions

12
registry/cache/options.go vendored Normal file
View File

@@ -0,0 +1,12 @@
package cache
import (
"time"
)
// WithTTL sets the cache TTL
func WithTTL(t time.Duration) Option {
return func(o *Options) {
o.TTL = t
}
}