(key string)
| 44 | } |
| 45 | |
| 46 | func (ac *ThreadCache) GetThreadStatus(key string) bool { |
| 47 | ctx, cancel := context.WithTimeout(context.Background(), ac.rt) |
| 48 | defer cancel() |
| 49 | |
| 50 | result := ac.client.Get(ctx, key) |
| 51 | |
| 52 | return result.Err() != redis.Nil |
| 53 | } |