aa
This commit is contained in:
@@ -34,13 +34,10 @@ func DelKey(key string) error {
|
||||
return client.Del(key).Err()
|
||||
}
|
||||
|
||||
func GetKet(key string) interface{} {
|
||||
func GetKey(key string) string {
|
||||
result, err := client.Get(key).Result()
|
||||
if err == nil {
|
||||
var retVal interface{}
|
||||
if err = utils.UnmarshalUseNumber([]byte(result), &retVal); err == nil {
|
||||
return retVal
|
||||
}
|
||||
return result
|
||||
}
|
||||
return nil
|
||||
return ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user