memos/store/cache.go

14 lines
254 B
Go
Raw Normal View History

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