mirror of
https://github.com/go-micro/go-micro.git
synced 2025-05-19 21:23:04 +02:00
13 lines
283 B
Go
13 lines
283 B
Go
|
// Package cache provides a registry cache
|
||
|
package cache
|
||
|
|
||
|
import (
|
||
|
"github.com/micro/go-micro/v2/registry"
|
||
|
"github.com/micro/go-micro/v2/registry/cache"
|
||
|
)
|
||
|
|
||
|
// New returns a new cache
|
||
|
func New(r registry.Registry, opts ...cache.Option) cache.Cache {
|
||
|
return cache.New(r, opts...)
|
||
|
}
|