(apiKey string)
| 52 | } |
| 53 | |
| 54 | func (ac *AuthCache) Get(apiKey string) (time.Time, bool) { |
| 55 | ac.mu.RLock() |
| 56 | expiration, exists := ac.APIKeys[apiKey] |
| 57 | ac.mu.RUnlock() |
| 58 | |
| 59 | return expiration, exists |
| 60 | } |
| 61 | |
| 62 | func (ac *AuthCache) Delete(apiKey string) { |
| 63 | ac.mu.Lock() |
no outgoing calls