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