|
@@ -20,7 +20,11 @@ type CacheServiceImpl struct {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
func init() {
|
|
|
- registry.RegisterService(&CacheServiceImpl{})
|
|
|
|
|
|
|
+ registry.Register(®istry.Descriptor{
|
|
|
|
|
+ Name: "DatasourceCacheService",
|
|
|
|
|
+ Instance: &CacheServiceImpl{},
|
|
|
|
|
+ InitPriority: registry.Low,
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func (dc *CacheServiceImpl) Init() error {
|
|
func (dc *CacheServiceImpl) Init() error {
|