mirror of
https://github.com/usememos/memos.git
synced 2024-11-16 03:34:33 +08:00
13 lines
254 B
Go
13 lines
254 B
Go
package store
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
func getUserSettingCacheKey(userID int32, key string) string {
|
|
return fmt.Sprintf("%d-%s", userID, key)
|
|
}
|
|
|
|
func getUserSettingV1CacheKey(userID int32, key string) string {
|
|
return fmt.Sprintf("%d-%s-v1", userID, key)
|
|
}
|