(key string)
| 50 | } |
| 51 | |
| 52 | func (ac *AccessCache) GetAccessStatus(key string) bool { |
| 53 | ctx, cancel := context.WithTimeout(context.Background(), ac.rt) |
| 54 | defer cancel() |
| 55 | |
| 56 | result := ac.client.Get(ctx, key) |
| 57 | |
| 58 | return result.Err() != redis.Nil |
| 59 | } |