2022-08-07 03:09:43 +03:00
|
|
|
package store
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
2023-02-11 09:19:26 +03:00
|
|
|
"github.com/usememos/memos/api"
|
2022-08-07 03:09:43 +03:00
|
|
|
)
|
|
|
|
|
2023-02-11 09:19:26 +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
|
|
|
}
|
|
|
|
|
2023-02-11 09:19:26 +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
|
|
|
}
|