Add run configs. Add redis for cache. Add cache-get in player-list.

This commit is contained in:
MaxJa4
2024-01-20 17:47:39 +01:00
parent 9e3e2723d3
commit 069d76520e
10 changed files with 124 additions and 9 deletions

View File

@@ -17,3 +17,8 @@ func StringToUint(val string) uint {
func FloatToString(val float32) string {
return fmt.Sprintf("%f", val)
}
func StringToFloat(val string) float32 {
res, _ := strconv.ParseFloat(val, 32)
return float32(res)
}