memos/store/cache.go

14 lines
254 B
Go
Raw Normal View History

2022-08-07 08:09:43 +08:00
package store
import (
"fmt"
)
2023-08-04 21:55:07 +08:00
func getUserSettingCacheKey(userID int32, key string) string {
return fmt.Sprintf("%d-%s", userID, key)
2022-08-07 08:09:43 +08:00
}
2023-09-15 08:18:30 +08:00
func getUserSettingV1CacheKey(userID int32, key string) string {
return fmt.Sprintf("%d-%s-v1", userID, key)
}