You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
586 B

  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. }