mirror of
https://github.com/chrislusf/seaweedfs
synced 2024-09-06 00:50:37 +02:00
33 lines
585 B
Go
33 lines
585 B
Go
package meta_cache
|
|
|
|
import "github.com/chrislusf/seaweedfs/weed/util"
|
|
|
|
var (
|
|
_ = util.Configuration(&cacheConfig{})
|
|
)
|
|
|
|
// implementing util.Configuraion
|
|
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")
|
|
}
|