mirror of
https://github.com/usememos/memos.git
synced 2024-12-21 02:01:55 +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())
|
|
}
|