mirror of
https://github.com/usememos/memos.git
synced 2024-12-24 11:44:44 +03:00
3590d3f8b6
* feat: update store cache * chore: update
16 lines
375 B
Go
16 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())
|
|
}
|