2022-02-14 17:09:31 +08:00
|
|
|
package meta_cache
|
|
|
|
|
2022-07-29 15:17:28 +08:00
|
|
|
import "github.com/seaweedfs/seaweedfs/weed/util"
|
2022-02-14 17:09:31 +08:00
|
|
|
|
|
|
|
var (
|
|
|
|
_ = util.Configuration(&cacheConfig{})
|
|
|
|
)
|
|
|
|
|
2022-09-15 17:04:57 +08:00
|
|
|
// implementing util.Configuration
|
2022-02-14 17:09:31 +08:00
|
|
|
type cacheConfig struct {
|
|
|
|
dir string
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c cacheConfig) GetString(key string) string {
|
|
|
|
return c.dir
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c cacheConfig) GetBool(key string) bool {
|
|
|
|
panic("implement me")
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c cacheConfig) GetInt(key string) int {
|
|
|
|
panic("implement me")
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c cacheConfig) GetStringSlice(key string) []string {
|
|
|
|
panic("implement me")
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c cacheConfig) SetDefault(key string, value interface{}) {
|
|
|
|
panic("implement me")
|
|
|
|
}
|