1
1
mirror of https://github.com/usememos/memos.git synced 2025-01-01 08:06:30 +03:00
memos/store/cache.go
2023-09-15 08:18:30 +08:00

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)
}