🐛 fix cache bug
This commit is contained in:
parent
ee7c12c30f
commit
9b64e2e045
@ -17,9 +17,9 @@ func SetCache(path string, obj interface{}, account *model.Account) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func GetCache(path string, account *model.Account) (interface{}, error) {
|
func GetCache(path string, account *model.Account) (interface{}, error) {
|
||||||
return conf.Cache.Get(conf.Ctx, fmt.Sprintf("%s%s", KeyCache(path, account)))
|
return conf.Cache.Get(conf.Ctx, fmt.Sprintf("%s", KeyCache(path, account)))
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeleteCache(path string, account *model.Account) error {
|
func DeleteCache(path string, account *model.Account) error {
|
||||||
return conf.Cache.Delete(conf.Ctx, fmt.Sprintf("%s%s", KeyCache(path, account)))
|
return conf.Cache.Delete(conf.Ctx, fmt.Sprintf("%s", KeyCache(path, account)))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user