🎨 delete useless code

pull/548/head
微凉 2021-12-08 22:44:45 +08:00
parent 9b64e2e045
commit bb6e520ab5
1 changed files with 2 additions and 2 deletions

View File

@ -17,9 +17,9 @@ func SetCache(path string, obj interface{}, account *model.Account) error {
}
func GetCache(path string, account *model.Account) (interface{}, error) {
return conf.Cache.Get(conf.Ctx, fmt.Sprintf("%s", KeyCache(path, account)))
return conf.Cache.Get(conf.Ctx, KeyCache(path, account))
}
func DeleteCache(path string, account *model.Account) error {
return conf.Cache.Delete(conf.Ctx, fmt.Sprintf("%s", KeyCache(path, account)))
return conf.Cache.Delete(conf.Ctx, KeyCache(path, account))
}