mirror of
https://github.com/usememos/memos.git
synced 2024-12-24 03:33:52 +03:00
14 lines
254 B
Go
14 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)
|
|
}
|