mirror of
https://github.com/Xevion/r2park.git
synced 2025-12-09 02:08:13 -06:00
18 lines
288 B
Go
18 lines
288 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
func StoreCode(code string, location int64, member_id int) bool {
|
|
key := fmt.Sprintf("code:%d:%d", location, member_id)
|
|
|
|
val_exists := db.Exists(key).Val()
|
|
db.Set(key, code, 0)
|
|
val := db.Get(code).Val()
|
|
|
|
fmt.Println(val, val_exists)
|
|
|
|
return false
|
|
}
|