mirror of
https://github.com/usememos/memos.git
synced 2024-12-27 15:42:51 +08:00
3590d3f8b6
* feat: update store cache * chore: update
15 lines
375 B
Go
15 lines
375 B
Go
package store
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/usememos/memos/api"
|
|
)
|
|
|
|
func getUserSettingCacheKey(userSetting userSettingRaw) string {
|
|
return fmt.Sprintf("%d-%s", userSetting.UserID, userSetting.Key.String())
|
|
}
|
|
|
|
func getUserSettingFindCacheKey(userSettingFind *api.UserSettingFind) string {
|
|
return fmt.Sprintf("%d-%s", userSettingFind.UserID, userSettingFind.Key.String())
|
|
}
|