(key string)
| 18 | } |
| 19 | |
| 20 | func cacheDeleteToken(key string) error { |
| 21 | key = common.GenerateHMAC(key) |
| 22 | err := common.RedisDelKey(fmt.Sprintf("token:%s", key)) |
| 23 | if err != nil { |
| 24 | return err |
| 25 | } |
| 26 | return nil |
| 27 | } |
| 28 | |
| 29 | func cacheIncrTokenQuota(key string, increment int64) error { |
| 30 | key = common.GenerateHMAC(key) |
no test coverage detected