您最多选择25个标签 标签必须以中文、字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627
  1. package metacache
  2. import "time"
  3. type MetaCache interface {
  4. ClearOutdated()
  5. }
  6. type MetaCacheHost struct {
  7. caches []MetaCache
  8. }
  9. func NewHost() *MetaCacheHost {
  10. return &MetaCacheHost{}
  11. }
  12. func (m *MetaCacheHost) Serve() {
  13. ticker := time.NewTicker(time.Minute)
  14. for {
  15. select {
  16. case <-ticker.C:
  17. for _, cache := range m.caches {
  18. cache.ClearOutdated()
  19. }
  20. }
  21. }
  22. }

本项目旨在将云际存储公共基础设施化,使个人及企业可低门槛使用高效的云际存储服务(安装开箱即用云际存储客户端即可,无需关注其他组件的部署),同时支持用户灵活便捷定制云际存储的功能细节。