cache_config.go 586 B

1234567891011121314151617181920212223242526272829303132
  1. package meta_cache
  2. import "github.com/seaweedfs/seaweedfs/weed/util"
  3. var (
  4. _ = util.Configuration(&cacheConfig{})
  5. )
  6. // implementing util.Configuration
  7. type cacheConfig struct {
  8. dir string
  9. }
  10. func (c cacheConfig) GetString(key string) string {
  11. return c.dir
  12. }
  13. func (c cacheConfig) GetBool(key string) bool {
  14. panic("implement me")
  15. }
  16. func (c cacheConfig) GetInt(key string) int {
  17. panic("implement me")
  18. }
  19. func (c cacheConfig) GetStringSlice(key string) []string {
  20. panic("implement me")
  21. }
  22. func (c cacheConfig) SetDefault(key string, value interface{}) {
  23. panic("implement me")
  24. }