memos/store/cache.go

16 lines
375 B
Go
Raw Normal View History

2022-08-07 03:09:43 +03:00
package store
import (
"fmt"
"github.com/usememos/memos/api"
2022-08-07 03:09:43 +03:00
)
func getUserSettingCacheKey(userSetting userSettingRaw) string {
return fmt.Sprintf("%d-%s", userSetting.UserID, userSetting.Key.String())
2022-08-07 03:09:43 +03:00
}
func getUserSettingFindCacheKey(userSettingFind *api.UserSettingFind) string {
return fmt.Sprintf("%d-%s", userSettingFind.UserID, userSettingFind.Key.String())
2022-08-07 03:09:43 +03:00
}